Exemple #1
0
        public void ClickSkillHandler()
        {
            IllustrationSkillDisplayView skillDisplayView = UIMgr.instance.Get <IllustrationSkillDisplayView>(IllustrationSkillDisplayView.PREFAB_PATH);

            if (_isClick && !skillDisplayView.isClickSkill)
            {
                skillDisplayView.isClickSkill = true;
                skillDisplayView.SetBackBtnStatus(false);
                Canvas canvas = skillDisplayView.GetComponent <Canvas>();
                EffectController.instance.PlayUIEffect(Logic.Effect.Controller.EffectController.EFFECT_CLICKSKILL, Vector3.zero, Quaternion.identity, Vector3.one, 2f, canvas.sortingOrder, transform);
                Logic.Character.Controller.PlayerController.instance.SetHerosCD2Zero();
                //                if (_skillInfo.skillData.skillType == Enums.SkillType.Aeon)
                //                    //Fight.Controller.FightController.instance.OrderAeonSkill((uint)_characterId, (uint)_skillInfo.skillData.skillId);
                //                else
                Fight.Controller.FightController.instance.OrderPlayerSkill((uint)_characterId, (uint)_skillInfo.skillData.skillId, false);
                StartCoroutine(SelectCoroutine());
                AudioController.instance.PlayAudio(AudioController.SKILL_CLICK, false);
            }
        }
Exemple #2
0
        public static IllustrationSkillDisplayView Open()
        {
            IllustrationSkillDisplayView view = UIMgr.instance.Open <IllustrationSkillDisplayView>(PREFAB_PATH, EUISortingLayer.MainUI, UIOpenMode.Replace);

            return(view);
        }