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