Hi guys! Quick question from a beginner. I want to play an animation every time my enemy hits the player. I have done it, but it only plays once. How can i make so the animation plays every time the player gets hit? i will leave picture attached
I solved this, the problem was I had to introduce this:
gameObject.GetComponent<Animator>().Play("C4D Animation Take", -1, 0);
In stead of anim.Play("hit");
Hope that helps someone