public void Startup() { if (!active) { LightGroup.SetActive(true); BaseLight.GetComponent <Light>().color = Color.white; active = true; levelDj.StartSongForLevel(2); if (BlockersOnStartup.Length != 0) { foreach (var block in BlockersOnStartup) { if (block != null) { block.transform.position = Vector3.zero; } } } } }
public void Startup() { if (!active) { LightGroup.SetActive(true); StartCoroutine(AnimateStartup(StartupDuration)); active = true; levelDj.StartSongForLevel(1); if (BlockersOnStartup.Length != 0) { foreach (var block in BlockersOnStartup) { if (block != null) { block.transform.position = Vector3.zero; } } } } }