Example #1
0
 /// <summary>
 /// Disables the UIMode in the GameModeManager and enables the SelectionMode.
 /// </summary>
 public virtual void hideInterface()
 {
     canvas.SetActive(false);
     if (gameMode is GameModeManager)
     {
         (gameMode as GameModeManager).enableSelectionMode();
     }
     else
     {
         GameModeManager instigator = GameObject.Find("Player").GetComponent <GameModeManager>();
         instigator.enableSelectionMode();
     }
 }