Files
VRyHungry1/helper.gd
T
2026-07-31 14:03:53 +02:00

11 lines
248 B
GDScript

class_name Helper
# Find a FoodItem among the direct children of [param node].
static func find_food_item(node: Node) -> FoodItem:
if not node:
return null
for child in node.get_children():
if child is FoodItem:
return child
return null