void OnCollisionEnter(Collision collision) { if (collision.gameObject.CompareTag("Projectile")) { healthSystem.Damge(damge); Debug.Log("hit"); Debug.Log("Health: " + healthSystem.GetHealth()); } }