Exemplo n.º 1
0
        private void FillActions()
        {
            InitSpellView(EQuickActionType.ATTACK);
            InitSpellView(EQuickActionType.ATTACKRANGED);
            InitSpellView(EQuickActionType.DEFEND);
            InitSpellView(EQuickActionType.USE_BEST_HEALTHPOTION);
            InitSpellView(EQuickActionType.USE_BEST_MANAPOTION);
            CharacterClass @class = m_party.SelectedCharacter.Class;
            List <RacialAbilitiesStaticData> racialAbilities = @class.GetRacialAbilities();

            foreach (RacialAbilitiesStaticData p_rsd in racialAbilities)
            {
                InitSpellView(p_rsd);
            }
            List <ParagonAbilitiesStaticData> paragonAbilities = @class.GetParagonAbilities(m_checkBox.isChecked);

            foreach (ParagonAbilitiesStaticData paragonAbilitiesStaticData in paragonAbilities)
            {
                if (paragonAbilitiesStaticData.Passive)
                {
                    InitSpellView(paragonAbilitiesStaticData);
                }
            }
        }