- Home /
Pause script errror.
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;}
}
}
}
Comment
Your answer
Follow this Question
Related Questions
Audio problem 1 Answer
Delay between animations 1 Answer
I am having a parsing error in a C# pause script, can anyone help? 1 Answer
How do I fix this error? 1 Answer
Script Errors Not Sure Why 0 Answers