public void Show(UnityAction onBackPressed) { editModeButton.gameObject.SetActive(NetworkServer.active); loadGameButton.gameObject.SetActive(NetworkServer.active); editModeManager = EditModeManager.Instance; this.onBackPressed = onBackPressed; gameObject.SetActive(true); }
private void Awake() { if (instance != null) { Debug.LogWarning("More than 1 IngameUIManager instance exists!"); } instance = this; m_EditModeManager = m_EditModeMenu.GetComponent <EditModeManager>(); }
private void OnDestroy() { Instance = null; }
void Awake() { Instance = this; }