Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Error in a really short script

$
0
0
when using this it says: Assets/Scripts/pause atm.js(1,5): UCE0001: ';' expected. Insert a semicolon at the end. also this works on mobile too right? bool isPaused; void Start () { isPaused = false; } void OnGUI () { if (!isPaused) { if (GUI.Button(Rect(10,10,50,50), "Pause")) { Time.timeScale = 0f; isPaused = true; } } if (isPaused) { if (GUI.Button(Rect(10,10,50,50), "Play")) { Time.timeScale = 1.0f; isPaused = false; } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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