Exemplo n.º 1
0
        private void ShowSkillButtonFlowEffect(bool show)
        {
            if (Singleton <CBattleSystem> .GetInstance().FightForm == null || Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager == null)
            {
                return;
            }
            CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

            SkillSlotType skillSlotType;

            if (skillButtonManager.HasMapSlectTargetSkill(out skillSlotType))
            {
                SkillButton button = skillButtonManager.GetButton(skillSlotType);
                if (button != null && button.m_button != null)
                {
                    skillButtonManager.SetButtonFlowLight(button.m_button, show);
                }
            }
        }