Add Yak harrassment

This commit is contained in:
Scott_NZ
2012-10-02 21:51:23 +13:00
parent 7e376330d0
commit 0524708e05
6 changed files with 323 additions and 176 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
objectivesButton.IsHighlighted = () => Game.LocalTick % 60 <= 30 && objectivesButton.Highlighted;
objectivesButton.OnClick += () => objectivesButton.Highlighted = false;
objectives.ObjectivesUpdated += UpdateObjectives;
objectives.OnObjectivesUpdated += UpdateObjectives;
UpdateObjectives();
Game.ConnectionStateChanged += RemoveHandlers;
}
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (!orderManager.GameStarted)
{
Game.ConnectionStateChanged -= RemoveHandlers;
objectives.ObjectivesUpdated -= UpdateObjectives;
objectives.OnObjectivesUpdated -= UpdateObjectives;
}
}