コード例 #1
0
 void TakeDmg(Vector3 expPos)
 {
     if (canTakeDmg)
     {
         StartCoroutine(BlinkEffect(3, 0.3f));
         GetComponent <AudioSource>().pitch = 1;
         playerSound.PlaySound(takeDmgSound, false, 0.5f);
         StartCoroutine(ImmuneToDmg());
     }
     Instantiate(boom, expPos, boom.transform.rotation);
 }
コード例 #2
0
ファイル: PlayerMove.cs プロジェクト: SeasterSwe/Unity
 void Fire()
 {
     playerSound.PlaySound(shootSound, true);
     MutliShoot(amountOfBullets);
     //StartCoroutine(FireBurst(bullet, 3, 0.1f));
 }