I want to add a member to a Node!
I thought that would work:
extension SKNode    {  
    var obstacleType:String =   ""  
}
But it didn't!
And I wanted to add the member like this: 
ANode.obstacleType == "Stone" 
And cola it like this:
if ANode.name == "Obstacle" && ANode.obstacleType == "Stone" {  
    /* Do Something */  
}  
Is there a simple way to do it?
 
    