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