public override Activity Tick(Actor self)
        {
            if (inner == null)
            {
                if (transportable != null)
                {
                    transportable.MovementCancelled(self);
                }

                return(NextActivity);
            }

            inner = ActivityUtils.RunActivity(self, inner);
            return(this);
        }
Exemple #2
0
        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);
        }