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