Assets.Scripts.CharacterControl.CharacterStateController.RemoveState C# (CSharp) Method

RemoveState() public method

public RemoveState ( CharacterState state ) : void
state CharacterState
return void
        public void RemoveState(CharacterState state)
        {
            if (states.Contains(state))
            {
                state.Deactivate();
                states.Remove(state);
            }
        }