StateMachine.CharacterStateMachine.RemoveSimilarStates C# (CSharp) Method

RemoveSimilarStates() public method

public RemoveSimilarStates ( States stateType, States stateToIgnore ) : void
stateType States
stateToIgnore States
return void
        public void RemoveSimilarStates( States[] stateType, States stateToIgnore )
        {
            foreach(States state in stateType)
            {
                if(state == stateToIgnore)
                    continue;
                RemoveState(state);
            }
        }