Exemple #1
0
        void RepeatAttack()
        {
            if (m_isPressing)
            {
                if (m_mormalAttackTouchFeedbackEff == null)
                {
                    m_mormalAttackTouchFeedbackEff = NGUITools.AddChild(AttackBtn.gameObject, NormalAttackTouchFeedbackEff);
                    m_mormalAttackTouchFeedbackEff.transform.localPosition = new Vector3(0, 0, -100);
                }
                else
                {
                    m_mormalAttackTouchFeedbackEff.SetActive(false);
                    m_mormalAttackTouchFeedbackEff.SetActive(true);
                }

                UIEventManager.Instance.TriggerUIEvent(UIEventType.AddAPMNumber, null);
                UIEventManager.Instance.TriggerUIEvent(UIEventType.AddBattleButtonClickNumber, UI.Battle.SpecialSkillType.NormalBtn);
            }
            if (!PlayerManager.Instance.OnNormalSkillButtonPress(m_isPressing))
            {
                //如果施放不成功,进入记忆
                var clickBtn = AttackBtn.GetComponent <SkillBtnRemember> ();
                if (clickBtn != null)
                {
                    clickBtn.OnSkillBtnClicked(false);
                }
            }
        }
Exemple #2
0
 void Start()
 {
     //引导
     TaskContinueBtn.gameObject.RegisterBtnMappingId(UI.MainUI.UIType.NewbieGuide, BtnMapId_Sub.Empty);
     TaskContinueBtn.GetComponent <GuideBtnBehaviour>().ResponseOnClickEvent = false;  //不会触发ClickTheGuideBtn和ClickOtherButton消息
 }