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); }
void Fire() { playerSound.PlaySound(shootSound, true); MutliShoot(amountOfBullets); //StartCoroutine(FireBurst(bullet, 3, 0.1f)); }