Esempio n. 1
0
    public void RemoveChangeState(ChangeStateEnumForPokemon state)
    {
        if (ChangeStateForPokemonEnums.Contains(state))

        {
            ChangeStateForPokemonEnums.Remove(state);
        }

    }
Esempio n. 2
0
    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);
        }
       
    }