예제 #1
0
파일: Cow.cs 프로젝트: uabhanu/Nappyville
    IEnumerator BottleTimer(spawnStruct spawn)
    {
        yield return new WaitForSeconds(3);
        Spawn();

        yield return new WaitForSeconds(1);
        SetState(0);

        yield return new WaitForSeconds(spawn.timer);
        Debug.Log("Cow Bottle");
        StartBottles();
    }
예제 #2
0
    IEnumerator BottleTimer(spawnStruct spawn)
    {
        if(gameSpawnScript.level == 1)
        {
            yield return new WaitForSeconds(3);

            BottleSpawn(spawn.Location);
        }

        if(!inGameUI.isLevel1)
        {
            yield return new WaitForSeconds(3);

            BottleSpawn(spawn.Location);
        }

        yield return new WaitForSeconds(spawn.timer);

        StartBottles();
    }