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#