private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.layer == golfHoleLayer) { EventHoleCollision?.Invoke(true); } else { EventCollision?.Invoke(); } }
private void OnCollisionExit(Collision collision) { onCollisionExit.Invoke(collision); }
private void OnCollisionEnter(Collision collision) { onCollisionEnter.Invoke(collision); }