private void FixedUpdate() { if (player.IsTouching(collider) && player.transform.position.y < transform.position.y && content) { content = false; food.Yeet(); } }
void FixedUpdate() { if (Vector2.Distance(transform.position, Player.position) < distance && content) { content = false; food.Yeet(); } }