コード例 #1
0
ファイル: PlayerMobility2.cs プロジェクト: VeRTeXR/untyproj
    IEnumerator attk2()
    {
        yield return(new WaitForSeconds(0.1f));

        spaceship = GetComponent <pSpaceship2>();
        spaceship.shot2(transform);

        StopCoroutine("attk2");
        yield return(new WaitForSeconds(0.5f));
    }
コード例 #2
0
ファイル: PlayerMobility2.cs プロジェクト: VeRTeXR/untyproj
    IEnumerator attk3()
    {
        yield return(new WaitForSeconds(0.1f));

        spaceship = GetComponent <pSpaceship2>();
        spaceship.Shot3(transform);
        AudioSource.PlayClipAtPoint(shoot, transform.position);
        StopCoroutine("attk3");
        yield return(new WaitForSeconds(0.5f));
    }