Ejemplo n.º 1
0
 public void Hit()
 {
     AudioSource.PlayClipAtPoint(hitSound, transform.position, hitSoundVolume);
     FindObjectOfType <GameManager>().AddToWinnings(targetWorth);
     gameObject.SetActive(false);
     targetManager.CheckForGameOver();
 }