public void BreakSkill(GameEntity entity, SkillBreakType breakType) { float time = Contexts.sharedInstance.input.time.Value; if (CanBreakCurSkill(entity, (int)breakType, (long)(time * 1000))) { BreakSkill(entity); } }
public void SetBreak(SkillBreakType type, bool force = true) { mBreak |= (1 << (int)type); if (force) { DoEvent(this, SkillEventTriggerType.ExeptEnd); mSkill.mSkillState = SkillState.Break; SetVanish(); } }
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; } } }