コード例 #1
0
        public override void OnStartClient(NetworkClient client)
        {
            base.OnStartClient(client);

            if (!NetworkServer.active)
            {
                StartLoading();

                Lobby = new LobbyManager(_clientMessaging, Players);
            }

            var op = SceneManager.LoadSceneAsync("Lobby");

            op.completed += (aop) => { NetworkServer.SpawnObjects(); };
        }
コード例 #2
0
        public override void OnStartServer()
        {
            base.OnStartServer();

            Lobby = new LobbyManager(_serverMessaging, Players);
        }