pollen-not-included/entities/snail/states/snail_eating.gd
Dan 908f834181 Update flower entity to spawn snails based on game state.
- Added Snail entity with states for eating and sleeping.
- Modified Flowers script to handle snail spawning logic.
2024-05-14 14:51:01 +01:00

18 lines
341 B
GDScript

extends State
class_name SnailEating
@onready var snail = get_parent().get_parent() as Snail # I think this is bad but I dont care it works
func enter(_msg := {}):
Log.pr("I am a snail...")
snail.eating = true
func exit():
snail.eating = false
func update(_delta : float):
pass
func physics_update(_delta : float) -> void:
pass