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