HALP MEH

SITUATION: I am new to Unity. I have a gameObject that needs to disappear when the player touches it– but ONLY when the player gameObject is playing a certain animation state. I haven’t figured out how to get the colliding player’s animation state. Anyone experienced with Unity can help?

Comments

Vantaug
23. Aug 2015 · 22:40 UTC
Use Animation.IsPlaying to check if the animation is playing.
folex70
23. Aug 2015 · 22:43 UTC
Or