示例#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();
    }