public void SetLobby(bool isHost, NetworkRoomPlayerExt myNetwork) { roomManager = NetworkRoomManagerExt.singleton as NetworkRoomManagerExt; myPlayerNetwork = myNetwork; myPlayerLobby = GetMyPlayerLobby(); playersCount.text = GetPlayerCount().ToString(); SetLobbyCode(roomManager.networkAddress); ready.onClick.AddListener(GetReady); if (isHost) { startGame.gameObject.SetActive(true); startGame.onClick.AddListener(delegate { roomManager.ServerChangeScene(roomManager.GameplayScene); }); startGameUpdate = isStartInteractable; } else { startGame.gameObject.SetActive(false); } }
public void ChangeToGame() { networkRoom.ServerChangeScene(networkRoom.GameplayScene); }