- 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.
16 lines
No EOL
330 B
GDScript
16 lines
No EOL
330 B
GDScript
extends State
|
|
class_name BeeDeath
|
|
|
|
@onready var bee : Bee = get_parent().get_parent() as Bee
|
|
|
|
|
|
func enter(_msg : Dictionary = {}) -> void:
|
|
GameState.bee_died()
|
|
bee.bee_position_animation.play("Death")
|
|
bee.bee_wing_animation.stop()
|
|
|
|
func update(_delta : float) -> void:
|
|
pass
|
|
|
|
func physics_update(_delta : float) -> void:
|
|
pass |