- Introduced explicit typing to variables and functions across multiple scripts for better code clarity. - Specified 'void' as the return type for functions that do not return a value. - Removed redundant code in some scripts.
17 lines
357 B
GDScript
17 lines
357 B
GDScript
extends State
|
|
class_name SnailSleeping
|
|
|
|
@onready var snail : Snail = get_parent().get_parent() as Snail # I think this is bad but I dont care it works
|
|
|
|
func enter(_msg : Dictionary = {}) -> void:
|
|
Log.pr("I am a snail asleep...")
|
|
|
|
func exit() -> void:
|
|
pass
|
|
|
|
func update(_delta : float) -> void:
|
|
pass
|
|
|
|
func physics_update(_delta : float) -> void:
|
|
pass
|
|
|