Example #1
0
 void Awake()
 {
     if (instance != null)             //if we find another instance
     {
         Destroy(instance.gameObject); //destroy the other menu
     }
     instance = this;                  //there can only be one!
 }
Example #2
0
 public void Awake()
 {
     interactionMenu = new InteractableMenu();
 }