2 answers ·
asked April 9, 2018 9:31pm
· Lesson: Animated Spike Traps · Course: Game C# Programming Bootcamp
Well it could be a few things. First, I would ensure that your OnTriggerEnter is being called properly. Add something like this
Debug.Log("Player entered trigger zone")
within the OnTriggerEnter "if statement". This will appear in the console if it's properly detecting the player entering. Note for this to work properly, it needs three things:
I may have figured it out , didnt know that when you tag something it doesnt tag the children , may have caused the animation not to play .