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