EDIT:
corrected code looks like this:
if (player.gameObject.tag == "Player" && player.relativeVelocity.y SMALLERTHAN 0)
animator.Play("Pressed_Mushroom");
//as said in the video - i need to play my animation ONLY when collider is touching by character on the top. i ve got no idea on how to do this. im a graphic, im just a beginner in c# and unity
More about the project:
/ the-world-of-shania-11...
Негізгі бет How to play animation when player collides with an object on the top ONLY (Unity, C#)
Пікірлер