Пример #1
0
        public void BreakSkill(GameEntity entity, SkillBreakType breakType)
        {
            float time = Contexts.sharedInstance.input.time.Value;

            if (CanBreakCurSkill(entity, (int)breakType, (long)(time * 1000)))
            {
                BreakSkill(entity);
            }
        }
Пример #2
0
 public void SetBreak(SkillBreakType type, bool force = true)
 {
     mBreak |= (1 << (int)type);
     if (force)
     {
         DoEvent(this, SkillEventTriggerType.ExeptEnd);
         mSkill.mSkillState = SkillState.Break;
         SetVanish();
     }
 }
Пример #3
0
 public void SetBreak(SkillBreakType type, bool force = true, SkillHandle.OnStageEnd callback = null)
 {
     mBreak |= (1 << (int)type);
     if (force)
     {
         DoEvent(this, SkillEventTriggerType.ExeptEnd);
         if (callback != null)
         {
             callback(mSkill.SkillID, mStageInfo.id);
         }
         SetVanish();
     }
     else
     {
         if (callback != null)
         {
             mStageEnd = callback;
         }
     }
 }