public override Activity Tick(Actor self) { if (inner == null) { if (transportable != null) { transportable.MovementCancelled(self); } return(NextActivity); } inner = ActivityUtils.RunActivity(self, inner); return(this); }
public override Activity Tick(Actor self) { if (ChildActivity != null) { ChildActivity = ActivityUtils.RunActivity(self, ChildActivity); if (ChildActivity != null) { return(this); } } if (transportable != null) { transportable.MovementCancelled(self); } return(NextActivity); }