public void Start(AGE.Action _action) { if (this.enabled) { if (!this.isCondition) { _action.SetCondition(this, true); } this.curTime = 0; this.preExcuteTime = 0; this.started = true; this.startCount++; } }
public override void Process(AGE.Action _action, Track _track, int _localTime) { if ((this.PeriodicInterval > 0) && base.bInit) { int num = _localTime - this.lastTime; this.lastTime = _localTime; this.intervalTimer += num; if (this.intervalTimer >= this.PeriodicInterval) { this.intervalTimer = 0; base.DoSkillFuncShared(ESkillFuncStage.Update); bool flag = this.Check(_action, _track); _action.SetCondition(_track, flag); } } }
public void Stop(AGE.Action _action) { if (this.started) { for (int i = 0; i < this.activeEvents.Count; i++) { this.activeEvents[i].Leave(this.action, this); } this.activeEvents.Clear(); if (!this.isCondition) { _action.SetCondition(this, false); } this.started = false; } }
public override void Process(AGE.Action _action, Track _track) { _action.SetCondition(_track, this.Check(_action, _track)); }
public override void Process(AGE.Action _action, Track _track, int _localTime) { bool flag = this.Check(_action, _track); _action.SetCondition(_track, flag); }
public override void Leave(AGE.Action _action, Track _track) { bool flag = this.Check(_action, _track); _action.SetCondition(_track, flag); }