public void QueueChild(Activity activity) { if (ChildActivity != null) { ChildActivity.Queue(activity); } else { ChildActivity = activity; } }
public virtual void QueueChild(Actor self, Activity activity, bool pretick = false) { if (ChildActivity != null) { ChildActivity.Queue(self, activity); } else { ChildActivity = pretick ? ActivityUtils.RunActivity(self, activity) : activity; } }