Hello everybody,
I have everything set up properly, but when I hit a button set up to execute the GamePaused() class, it doesn’t work. I know I’m probably not seeing something really obvious right now. Thanks in advanced!
Nick
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Pause : MonoBehaviour {
public Canvas paused;
void Start(){
paused.GetComponent ("Paused");
}
public void GamePause(){
Time.timeScale = 0;
paused.enabled = true;
}
}