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