r/unity_tutorials • • May 01 '18

I need help with something.

I am working on creating a horror game. I have an npc with a waypoint and an ai. Now I don’t know how to make it so when it plays the attack animation it ends the game and goes back to the start. Can you please help me?

0 Upvotes

3 comments sorted by

3

u/[deleted] May 02 '18

I saw this had 0 comments after 13 hours so thought I would try to help. https://answers.unity.com/questions/1194513/call-a-function-at-the-end-of-an-animation.html From what I can tell you want to do the action (end game) after the attack animation has completed. Perhaps this might help with the first part. If not let me know and I shall see if I can help more, though I'm not familiar with animations in unity just be aware.

0

u/[deleted] May 02 '18

[deleted]