private void Awake()
        {
            speed         = initialSpeed;
            networkEntity = GetComponent <ServerNetworkEntity>();
            controller    = GetComponent <PlayerControllableEntity>();


            networkEntity.OnEnteredRoom += RegisterListeners;
            networkEntity.OnLeftRoom    += RemoveListeners;
        }
Пример #2
0
 private void Awake()
 {
     networkEntity = GetComponent <ServerNetworkEntity>();
     networkEntity.OnEnteredRoom += AddListeners;
     networkEntity.OnLeftRoom    += RemoveListeners;
 }