Exemple #1
0
    IEnumerator CoroutineATTACK1()
    {
        anim.SetBool("attack_1", true);

        yield return(new WaitForSeconds(1.0f));

        bullet.bulletFir("A1", new Vector3(-9.58f, 0.75f, 88.0f), new Vector3(0, 0, -1));
        bulletCount++;
        NextState = ENEMY_STATE.ATTACK_IDLE;

        changeCoroutine(NextState);
    }
Exemple #2
0
    IEnumerator CoroutineTric()
    {
        int y = 0;

        while (true)
        {
            int TricIndex = Random.Range(0, 4);
            for (int i = 0; i < 4; i++)
            {
                if (TricIndex == i)
                {
                    _MANAGER.bulletFir("A4", position + new Vector3(i * 3.5f, 0, y * 7.2f), Vector3.up);
                }
            }

            yield return(new WaitForSeconds(1));

            y++;
            if (y == 37)
            {
                break;
            }
        }
        yield return(new WaitForSeconds(7));

        _MANAGER.bulletrest("A4");
    }