- Home /
Question by
AmbitiousSerif · Jun 22, 2013 at 03:08 PM ·
c#errorpauseparsing
I am having a parsing error in a C# pause script, can anyone help?
using UnityEngine; using System.Collections;
public class pause2 : MonoBehaviour {
void Start () {
}
bool paused;
void OnPauseGame ()
{
paused = true;
}
void OnResumeGame ()
{
paused = false; } } }
public class pause2 : MonoBehaviour {
void Update () {
if (!paused) {
}
}
}
note I am fairly new to unity and very new to C#
Comment
Answer by kilian277 · Jun 22, 2013 at 03:38 PM
You have three squirly brackets at "paused = false;" remove one of them