public override void DoCommand(AdvEngine engine) { AdvCommandJumpSubroutineRandom randomJumpCommand = base.CurrentTread.JumpManager.GetRandomJumpCommand() as AdvCommandJumpSubroutineRandom; if (randomJumpCommand != null) { randomJumpCommand.DoRandomEnd(base.CurrentTread, engine); } }
public override void DoCommand(AdvEngine engine) { AdvCommandJumpSubroutineRandom command = engine.ScenarioPlayer.JumpManager.GetRandomJumpCommand() as AdvCommandJumpSubroutineRandom; if (command != null) { command.DoRandomEnd(engine); } }