void OnCollisionEnter2D(Collision2D collision) { if (_isInvulnerable) { return; } if (collision.gameObject.GetComponent <Bullet>() != null) { _myHealthHaver.HealthDelta(-1); Directory.Instance.explosionPool.SetExplosion(1, collision.contacts[0].point); } }
void OnCollisionEnter2D(Collision2D c) { _myHealth.HealthDelta(-1); }