Exemplo n.º 1
0
    IEnumerator StartInitermission()
    {
        while (!sc_GameController.hasGameStarted)
        {
            yield return(null);
        }

        sc_BallController.SET_BallToGameField();

        sc_BoundaryManager.Open_TopBoundary();

        float time = 0;

        while (time < 1)
        {
            time += Time.deltaTime / IntermissionTimes[CurrentLevel];
            yield return(null);
        }

        LevelIntermission = false;

        // Spawn a new row
        sc_RowManager.StartCoroutine("CreateRow");
    }