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

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