/// <summary> /// Invoke join callback /// </summary> public void JoinRoom() { if (isLAN) { OxyniteNetworkManager.GetInstance().StartGame(ipAddress); } else { joinRoomCallback.Invoke(match); } }
/// <summary> /// Gets nickname or asks for new one /// </summary> void Start() { networkManager = OxyniteNetworkManager.GetInstance(); networkDiscovery = OxyniteNetworkDiscovery.GetInstance(); networkManager.StartMatchMaker(); RefreshRoomList(); if (PlayerPrefs.HasKey("nickname")) { nicknamePanel.gameObject.SetActive(false); nicknameText.text = PlayerPrefs.GetString("nickname"); } else { nicknamePanel.gameObject.SetActive(true); } }
void Start() { s_Instance = this; networkDiscovery = OxyniteNetworkDiscovery.GetInstance(); }