コード例 #1
0
ファイル: ShipAttacks.cs プロジェクト: wjacquet/Recoil
 IEnumerator FireThreeWaveBurstCenter()
 {
     for (int i = 0; i < 3; i++)
     {
         tempProj = Instantiate(proj, blasterPos, transform.rotation);
         StandardFireFunctions.FireDegreeOffsetFromPlayerSpeed(tempProj, 20, 100);
         tempProj = Instantiate(proj, blasterPos, transform.rotation);
         StandardFireFunctions.FireDegreeOffsetFromPlayerSpeed(tempProj, -20, 100);
         tempProj = Instantiate(proj, blasterPos, transform.rotation);
         StandardFireFunctions.FireAtPlayerWithSetSpeed(tempProj, 100);
         yield return(new WaitForSeconds(0.75f));
     }
 }