I want to game over when Player death blast complete after explosion, but when I call Game Over function then my game over complete like this, but I want to player death complete after explosion.
Cool. Start with any of the ten billion Youtube tutorials already out there.
If you are unable to figure it out from there, anything we write here will be even less useful.
I like this guy’ approach:
Imphenzia: How Did I Learn To Make Games:
If you wrote a bug that means… time to start debugging!
By debugging you can find out exactly what your program is doing so you can fix it.
Use the above techniques to get the information you need in order to reason about what the problem is.
You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.
Once you understand what the problem is, you may begin to reason about a solution to the problem.
You may want to look into using Animation Events for this purpose.
You can add an animation event at the end of the death explosion to call a function in your script to trigger the Game Over screen.
