Exemplo n.º 1
0
    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();
    }
Exemplo n.º 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();
    }