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