コード例 #1
0
 private void StartAsClient()
 {
     NetworkInfos.IsServer = false;
     clientHandler         = ClientHandler.Get();
     clientHandler.Start(serverDatas, mmServerDatas, CreateClientGameMaster, debug);
     _world = World.DefaultGameObjectInjectionWorld;
     StartCoroutine(clientHandler.Client.GetDatas(clientHandler.OnReceiveData));
 }
コード例 #2
0
 protected override void OnCreate()
 {
     base.OnCreate();
     if (NetworkInfos.IsServer)
     {
         _isServer      = true;
         _serverHandler = GameServerHandler.Get();
     }
     else
     {
         _isServer      = false;
         _clientHandler = ClientHandler.Get();
     }
 }