示例#1
0
 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>();
    }
示例#3
0
 private void OnDestroy()
 {
     Instance = null;
 }
示例#4
0
 void Awake()
 {
     Instance = this;
 }