public virtual void Create(Gem.PropertyBag Properties) { CurrentAction = null; NextAction = null; this.Properties = Properties.Clone(); }
public virtual void Update(World World, float ElapsedTime) { if (NextAction != null) { if (CurrentAction != null) CurrentAction.End(World, this); CurrentAction = NextAction; NextAction = null; CurrentAction.Begin(World, this); } if (CurrentAction != null) CurrentAction.Update(World, this, ElapsedTime); }
public void StepAction() { if (CurrentAction != null) if (CurrentAction.Step(this)) CurrentAction = null; }