diff --git a/Assets/Scripts/Health.cs b/Assets/Scripts/Health.cs index 0e8ae50..b5e79a8 100644 --- a/Assets/Scripts/Health.cs +++ b/Assets/Scripts/Health.cs @@ -14,12 +14,12 @@ public class Health : MonoBehaviour public GameObject player; public GameObject hitParticles; public float minStrength; - Sounds sounds; + //Sounds sounds; // Start is called before the first frame update void Start() { - sounds = GameObject.Find("SoundManager").GetComponent(); + //sounds = GameObject.Find("SoundManager").GetComponent(); } // Update is called once per frame @@ -36,7 +36,7 @@ void OnCollisionEnter(Collision collision) //Debug.Log(strength); //Debug.Log(strength); if(strength > minStrength){ - sounds.hitSounds(); + //sounds.hitSounds(); Instantiate(hitParticles, collision.contacts[0].point, healthBarCanvas.transform.rotation); health -= strength/resistance;