예제 #1
0
 private void Awake()
 {
     Instance            = this;
     this.networkManager = this.GetComponent <NetworkManager>();
     IP = "192.168.13.121";
     IP = "192.168.13.91";
     ShowReadyUI(false);
     ShowReadyUI(false);
 }
예제 #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("Instance already exists");
         Destroy(this);
     }
 }
예제 #3
0
    public void Toggle()
    {
        if (ui == null)
        {
            ui = FindObjectOfType <NetworkUI>();
        }

        if (ui != null)
        {
            ui.gameObject.SetActive(!ui.gameObject.activeSelf);
        }
    }