コード例 #1
0
        public override void OnStopServer()
        {
            OnServerStopped?.Invoke();

            RoomPlayers.Clear();
            GamePlayers.Clear();
        }
コード例 #2
0
    public void EndGame()
    {
        if ("Assets/Scenes/" + SceneManager.GetActiveScene().name + ".unity" == gameScene)
        {
            ServerChangeScene("EndScene");

            for (int i = 0; i < Players.Count; i++)
            {
                NetworkServer.Destroy(Players[i].gameObject);
                NetworkServer.DestroyPlayerForConnection(Players[i].connectionToClient);
            }
            RoomPlayers.Clear();
            GamePlayers.Clear();
            Players.Clear();
        }
    }
コード例 #3
0
 public override void OnStopServer()
 {
     RoomPlayers.Clear();
     GamePlayers.Clear();
     Players.Clear();
 }
コード例 #4
0
 public override void OnStopServer()
 {
     LobbyPlayers.Clear();
     GamePlayers.Clear();
 }