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

Pause script errror.

$
0
0
I get this error: Assets/My Scripts/Pauser.js(3,18): BCE0044: expecting (, found 'Pause'. function Start() { function Pause(); } function Pause() { while (true) { if (Input.GetKeyDown(KeyCode.P)) { if (Time.timeScale == 0){ Time.timeScale = 1;} else{ Time.timeScale = 0;} } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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