Example #1
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.name != "Holes" && col.name != "MapCollider")
     {
         _healthBehaviour.GetHit(1);
     }
 }
Example #2
0
 private void OnTriggerEnter2D(Collider2D col)
 {
     //DIE OR LOWER HEALTH
     if (col.name == "attackbox")
     {
         _audio.PlayOneShot(AudioList.Instance.die, 1f);
         _healthBehaviour.GetHit(1);
     }
 }