Quantcast
Viewing latest article 7
Browse Latest Browse All 70

Mecanim when call setTrigger, plays next clip twice

I am working on a simple 2D matching game. The facedown state is a simple animation that is 1 second long and loops. The idle state is for the card when it is face up. A 2 second animation loop plays here for the character on the card. The flip state is an animation that rotates the card, simulating a flip. I have a simple state machine: ![alt text][1] [1]: /storage/temp/20763-statemachine.png Transitions: ------------ - faceDown -> Flip transition when the flipTrigger(Trigger) event is called - Flip -> Idle transition on Exit and if isFaceDown(boolean) = false - Idle -> Flip transitions when the flipTrigger event is called - flip -> faceDown transition on Exit and if isFaceDown = true The problem though is that from both the faceDown and Idle states, when I call the flipTrigger, the flip state actually plays through the animation twice. Loop Time for the flip animation clip is toggled off. I'm really at a loss here. Any help would be much appreciated! Thanks!

Viewing latest article 7
Browse Latest Browse All 70

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>