コード例 #1
0
    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);
        }
    }
コード例 #2
0
 public void ChangeToGame()
 {
     networkRoom.ServerChangeScene(networkRoom.GameplayScene);
 }