Beispiel #1
0
    private void SetBehaviour(PlayerBehaviour behaviour)
    {
        if (IsPlayerBehaviourSet())
        {
            _currentBehaviour.Disable();
        }

        _currentBehaviour = behaviour;
        _currentBehaviour.Enable();
    }