예제 #1
0
    /// <summary>
    /// Wait for amount of time then move the Ball_Container object dow and create a ball.
    /// </summary>
    /// <returns></returns>
    private IEnumerator CRWaitAndCreateBall()
    {
        listStageControl[0].OnSetup();
        yield return(new WaitForSeconds(1f));

        listBallContainerControl[0].MoveDownAndUp();
        previousStageControl.DisableObject();
        yield return(new WaitForSeconds(0.55f));

        listStageControl[0].CreateBall();
        previousStageControl = listStageControl[0];
        listStageControl.RemoveAt(0);
        listBallContainerControl.RemoveAt(0);
        ForceDir           = 0;
        ForceTurn         *= -1;
        cRCheckingGameOver = StartCoroutine(CRCheckingGameOver());
    }