예제 #1
0
    IEnumerator GoingToGame()
    {
        yield return(new WaitForSeconds(wallDelay));

        Walls.SetActive(true);
        walls.SetParams(true, wallSpeed, gameStartDelay);
        yield return(new WaitForSeconds(leavesFallDelay));

        //leaves.SetParams(true, leavesDrops);
        cont = false;
        //inside.SetActive(true);


        Destroy(this.gameObject);
        //Debug.Log("suppose to be dead");
        gameObject.SetActive(false);
    }