Skip to content

Commit

Permalink
stopbutton listening to reset event
Browse files Browse the repository at this point in the history
  • Loading branch information
YoupKuiper committed Apr 19, 2018
1 parent 4728f6b commit a261b45
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Assets/Prefabs/UI/CommandController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Assets.Data.Command;
using System.Linq;
using Assets.Data.Command;
using Assets.Data.Levels;
using Assets.Scripts;
using UnityEngine.Assertions;
using Assets.Scripts.Lib.Helpers;
Expand Down Expand Up @@ -46,6 +48,11 @@ public override void Awake() {
{
SetReadyButtonState(ReadyButtonState.StopButton);
};

EventManager.LevelReset += (levelData, players) =>
{
SetReadyButtonState(ReadyButtonState.ReadyButton);
};
}


Expand Down

0 comments on commit a261b45

Please sign in to comment.