public void GameWon() { gameOverText.text = "You Win! Game created by Steven Ulloa!"; gameWon = true; HappyMusic(); particles.UpdateSpeed(speed); particles2.UpdateSpeed2(speed2); bG_Scroller.UpdateScrollSpeed(newScrollSpeed); lighting.UpdateLights(activateLights); }
public void GameWon() { gameOverText.text = "You Win! Game created by Steven Ulloa!"; gameWon = true; GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemy"); foreach (GameObject enemy in enemies) { GameObject.Destroy(enemy); } HappyMusic(); particles.UpdateSpeed(speed); particles2.UpdateSpeed2(speed2); bG_Scroller.UpdateScrollSpeed(newScrollSpeed); lighting.UpdateLights(activateLights); }