Kill Controller

This commit is contained in:
Paul Chote
2010-07-25 19:21:53 +12:00
parent e677be7908
commit 305fa03355
31 changed files with 208 additions and 234 deletions

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA
protected override void OnActivate()
{
Game.controller.orderGenerator =
Game.world.OrderGenerator =
new GenericSelectTargetWithBuilding<NukeSilo>(Owner.PlayerActor, "NuclearMissile", "nuke");
}
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.RA
silo.traits.Get<NukeSilo>().Attack(order.TargetLocation);
Game.controller.CancelInputMode();
self.World.CancelInputMode();
FinishActivate();
}
}