Skip to content
Snippets Groups Projects
Commit 50b56449 authored by Leevi Grönlund's avatar Leevi Grönlund
Browse files

Win music changed

parent 45f5daf9
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment