- Home /
Question by
Sophia Isabella · Sep 23, 2012 at 06:11 AM ·
c#colliderpause
Pausing a game using colliders
How can I paused my game including the music that is playing when two objects collide. I tried setting Time.timeScale to 0 in the OnTriggerEnter function but it is not working. My game is still running. Can anyone please tell me how to do it? Thanks a bunch! Sorry I am such a newbie.
Edited:
I just read this from another post:
" Time.timeScale doesn't affect movements like transform.Translate(0,40,0) as they don't really on the time scale."
I'm afraid my application has movements stated above. Does anyone knows how can I paused and quit my application then? Thanks a lot.
Comment