From 50b56449287f2b20990fb05b0de1387f2c239665 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leevi=20Gr=C3=B6nlund?= <lejugr@utu.fi>
Date: Sun, 3 Mar 2019 20:22:39 +0200
Subject: [PATCH] Win music changed

---
 Assets/Scripts/GameEnd/WinGame.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/GameEnd/WinGame.cs b/Assets/Scripts/GameEnd/WinGame.cs
index 8f95214..a1e68bf 100644
--- a/Assets/Scripts/GameEnd/WinGame.cs
+++ b/Assets/Scripts/GameEnd/WinGame.cs
@@ -26,7 +26,7 @@ public class WinGame : MonoBehaviour
 
     private IEnumerator EndGame()
     {
-        EventSystem.EventHappened(EventType.WinMusic);
+        EventSystem.EventHappened(EventType.TimePeriodChanged);
         float spawnRate = 5f;
         int count = 0;
         while (count < 9)
@@ -45,7 +45,7 @@ public class WinGame : MonoBehaviour
             yield return new WaitForSeconds(spawnRate);
         }
         count = 0;
-        EventSystem.EventHappened(EventType.TimePeriodChanged);
+        EventSystem.EventHappened(EventType.WinMusic);
         while (count < 150)
         {
             GameObject go = Instantiate<GameObject>(workerPrefab);
-- 
GitLab