Example #1
0
    IEnumerator CountDownStageOverTime()
    {
        float timer = StageOverWaitTime;

        while (timer > 0.0f)
        {
            timer -= Time.deltaTime;
            yield return(null);
        }

        AudioManager.Instance.PlayGhostSound(false);

        foreach (var child in GhostList)
        {
            child.gameObject.SetActive(false);
        }

        CurrentStage.SetActiveWallTwinkle(true);

        StartCoroutine(CountDownGoToNextStage());
    }