public void RemoveChangeState(ChangeStateEnumForPokemon state) { if (ChangeStateForPokemonEnums.Contains(state)) { ChangeStateForPokemonEnums.Remove(state); } }
public void AddChangeState(ChangeStateEnumForPokemon state) { bool canAddState = true; //考虑特性 if (AbilityManager.AbilityImpacts.ContainsKey(ShowAbility)) AbilityManager.AbilityImpacts[ShowAbility] .OnGetChangeState ( this, state, ref canAddState ); if (!canAddState) return; if(!ChangeStateForPokemonEnums.Contains(state)) { ChangeStateForPokemonEnums.Add(state); ChangeStateForPokemon.ChangeStateForPokemons[state].Init(this); } }