示例#1
0
        public override void Update(Rumor rumor, double delta)
        {
            base.Update(rumor, delta);

            if (Timeout.HasValue)
            {
                Finished = Elapsed >= Timeout.Value;
                if (Finished)
                {
                    switch (moveType)
                    {
                    case MoveType.Jump:
                        rumor.Jump(label);
                        break;

                    case MoveType.Call:
                        rumor.Call(label);
                        break;
                    }
                    rumor.State.ClearChoices();
                }
            }
        }
示例#2
0
 public override Yield Execute(Rumor rumor)
 {
     rumor.Jump(Label);
     return(null);
 }