1 2 3 4 5 6 7 8 9 10 11 12 13 14
class_name FoodSpecial extends Food enum Type { BUNNY, TURTLE, FROG } func _ready(): texture[Type.BUNNY] = preload("res://entities/food/sprites/bunny.png") texture[Type.FROG] = preload("res://entities/food/sprites/frog.png") texture[Type.TURTLE] = preload("res://entities/food/sprites/turtle.png")