Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

My Scripted "Quit" Function seems to keep the Game Scene open??

$
0
0
Hello,
This might be a little lengthy but it's an interesting problem I'm having.

For my game I scripted a pause button to stop everything, and a "Quit" option to pop up once pause is pressed. Once the person presses "Quit", the game loads up the main menu. This all works beautifully.

The code attached to this "Quit" text is as such:

Code (CSharp):
  1. foreach (Touch touch in Input.touches){
  2.             if (touch.phase == TouchPhase.Began && guiText.HitTest(Input.touches[0].position)){...
My Scripted "Quit" Function seems to keep the Game Scene open??

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>