private void Awake() { audioSource = GetComponent <AudioSource>(); damageSound = AudioManager.current.fleshShotHit; deathSounds = AudioManager.current.humanDeathGrunts; CurrentHealth = maxHealth; healthBar.minValue = 0; healthBar.maxValue = maxHealth; UpdateBar(); }
private void Awake() { audioSource = GetComponent <AudioSource>(); shotSound = AudioManager.current.assaultRifleShots; muzzleFlash = GetComponentInChildren <ParticleSystem>(); }