// Use this for initialization
 void Start()
 {
     if (gm == null)
     {
         gm = this.gameObject.GetComponent <GameManagerMainMenu>();
     }
 }
Beispiel #2
0
 private void OnEnable()
 {
     gameManagerRef = GetComponent <GameManagerMainMenu>();
     gameManagerRef.ExitGameEvent += Quit;
 }
Beispiel #3
0
 private void OnEnable()
 {
     gameManagerRef = GetComponent <GameManagerMainMenu>();
     gameManagerRef.StartGameEvent += LoadMainScreen;
 }