Open smileyface12349 opened 1 year ago
NOTE: This issue does only involve the explosion animation. The restarting of the level will be handled by #15
There is a function called Explode() in FollowWaypoints ready for the code (I put it here so you can reference the train with just gameObject)
After doing this, you will probably want to delay the UI change for a couple seconds to allow the player to appreciate the animation.
I thought I put in the right code but clearly not. I will investigate further soon if there is time
Explosion animation if it derails.
Then wait about 2 seconds before restarting the level. Ideally, display a button for the user to press restart, but even this is not strictly necessary.