How do you make the game stop running if the player is killed?

I want my game to stop running when the player gets killed. Does anyone know how to do
that? Thanks.

Hello.


Don’t post 3 times the same post. Posts must go through moderation before beeing relased, so dont spam posts please.


Yous post i poor, you give 0 context. What means “stop” for you? Stop mouse detection? stop Interactiopn of keyboard? Stop Time? Stop collisions? Stop what?


I suggest you to google this kind of questions before coming here, because normally have multiple solutions for each interpretation, and depending on how is your project you need one thing or another.


Investigate about Time, Time.deltaTime and Time.timeScale


Bye.