Esempio n. 1
0
 void OnEnable()
 {
     try
     {
         //结束画面开始前结束普通攻击
         UnityEngine.GameObject go = UIManager.Instance.GetWindowGoByName("FightUI");
         if (go != null)
         {
             SkillBar sBar = go.GetComponent <SkillBar>();
             if (sBar != null)
             {
                 sBar.StopAttack();
                 if (ArkCrossEngine.LogicSystem.PlayerSelf != null)
                 {
                     GfxModule.Skill.GfxSkillSystem.Instance.StopAttack(ArkCrossEngine.LogicSystem.PlayerSelf);
                 }
             }
         }
         //UIManager.Instance.HideWindowByName("MpveCombatFail");
     }
     catch (System.Exception ex)
     {
         ArkCrossEngine.LogicSystem.LogErrorFromGfx("[Error]:Exception:{0}\n{1}", ex.Message, ex.StackTrace);
     }
 }