Exemple #1
0
    public IEnumerator Shoot()
    {
        shot = true;
        yield return(new WaitForSeconds(2));

        anim.SetTrigger("doShoot");
        yield return(new WaitForSeconds(2));

        eye.ShootProjectile();
        bossEye = GameObject.FindGameObjectWithTag("projectile").transform;
        if (isLastShot)
        {
            anim.SetTrigger("doTransform");
            yield return(new WaitForSeconds(2.5f));

            anim.speed = 0;
        }
        StartCoroutine(missedAttackTimer);
    }
    public IEnumerator EyeAttackTimer(GameObject TempEnemy)
    {
        yield return(new WaitForSeconds(3.5f));

        eyeAttack.ShootProjectile();
    }