protected override void NetworkStart()
    {
        base.NetworkStart();

        if (networkObject.IsServer)
        {
            Debug.Log("Network Server started");
            networkObject.Networker.playerAccepted     += PlayerAcceptedSetup;
            networkObject.Networker.playerDisconnected += PlayerDisconnectedHandler;
            contexts      = Contexts.sharedInstance;
            _inputsystems = new InputFeature(contexts);
            _inputsystems.Initialize();
            gameController         = FindObjectOfType <GameController>();
            gameController.enabled = true;
        }
        else
        {
            Debug.Log("Network Client started");
            testClient         = FindObjectOfType <TestClient>();
            testClient.enabled = true;
        }
    }
Exemplo n.º 2
0
 void IModuleBase.OnConstruct()
 {
     _feature = world.GetFeature <InputFeature>();
 }
Exemplo n.º 3
0
 void ISystemBase.OnConstruct()
 {
     this.feature = this.world.GetFeature <InputFeature>();
 }
Exemplo n.º 4
0
 void IModuleBase.OnConstruct()
 {
     this.feature = this.world.GetFeature <InputFeature>();
 }