private IEnumerator PlayWinSceneCoRoutine() { SoundManager.PlayOneShotSoundAt(SoundNames.WinChord, Camera.main.transform.position, 0.2f); yield return(new WaitForSeconds(2.5f)); for (int i = 0; i < realHexes.Length; i++) { realHexes[i].WinFill(); } for (int i = 0; i < enemies.Length; i++) { enemies[i].CheckForDeathFromBelow(true); } BallHexPainter ballHexPainter = FindObjectOfType <BallHexPainter>(); if (ballHexPainter != null) { Destroy(ballHexPainter.gameObject); } yield return(null); }
private void Awake() { if (instance == null) { instance = this; } else { Debug.LogError("Tried to instantiate more than one Bee!"); return; } }