private void SetBehaviour(PlayerBehaviour behaviour) { if (IsPlayerBehaviourSet()) { _currentBehaviour.Disable(); } _currentBehaviour = behaviour; _currentBehaviour.Enable(); }
private void SetBehaviour(PlayerBehaviour behaviour) { if (IsPlayerBehaviourSet()) { _currentBehaviour.Disable(); } _currentBehaviour = behaviour; _currentBehaviour.Enable(); }