Esempio n. 1
0
    IEnumerator attk()
    {
        yield return(new WaitForSeconds(0.1f));


        spaceship = GetComponent <pSpaceship2> ();
        spaceship.Shot(transform);
        if (gunUpgradeCount > 1)
        {
            spaceship.Shot3(transform);
        }
        AudioSource.PlayClipAtPoint(shoot, transform.position);
        StopCoroutine("attk");
        yield return(new WaitForSeconds(0.5f));
    }