Exemple #1
0
 // Use this for initialization
 internal void OnCollisionEnter(Collision collision)
 {
     if (collision.collider.GetComponent <Enemy>())
     {
         SliderManager.DeductHealth(collision.collider.GetComponent <Enemy>().Damage);
     }
 }