/// <summary> /// Call this method when the action is done. /// Will call the DoneAction. /// </summary> /// <param name="args">The argument pass to the DoneAction.</param> protected virtual void Done(Object args) { IsDone = true; Stop(); if (DoneAction != null) { DoneAction(args); } if (Target != null) { Target.ActionDone(this, args); } if (DoneActionForSequence != null) { DoneActionForSequence(this); } }