private void Awake() { speed = initialSpeed; networkEntity = GetComponent <ServerNetworkEntity>(); controller = GetComponent <PlayerControllableEntity>(); networkEntity.OnEnteredRoom += RegisterListeners; networkEntity.OnLeftRoom += RemoveListeners; }
private void Awake() { networkEntity = GetComponent <ServerNetworkEntity>(); networkEntity.OnEnteredRoom += AddListeners; networkEntity.OnLeftRoom += RemoveListeners; }