Hi,
I need to get the name of a current SKSpriteNode texture and I can not find how to access.
My code:
let push:String = cyanNode.description // Fail
if(push == "cyanSelect" ){
cyanNode.texture = SKTexture(imageNamed: "cyan")
}else{
cyanNode.texture = SKTexture(imageNamed: "cyanSelect")
}
Could you help me?
Thanks.