Question by
aadarsh-ram · Aug 06, 2016 at 02:00 PM ·
animationbuttonsprite
How to check that a sprite button is the same as another sprite button?
Hello,
I am making a memory game. This memory game has 10 cards which are buttons, and play an animation when clicked. The animation [SpriteFlipCard] makes the cards flip and changes the sprite of the image and does not loop. I also have an animation [SpriteRevFlipCard] which changes the same card to the sprite it was first in.
In a memory game, the card chosen should be the same card in the deck. Coming to the question, how to check that the sprite button clicked is the same sprite button that the player clicks next? How to play the SpriteRevFlipCard if the card clicked doesn't match the player clicks next?
PS: I am using Unity Version 5.3.4f1.
Cheers
Aadarsh..
Comment