This commit is contained in:
dingo
2025-12-23 08:32:22 -05:00
parent 7c29268fa4
commit 6a4a64e39e
6 changed files with 195 additions and 41 deletions
+5
View File
@@ -18,6 +18,8 @@ var _current_state: String = "idle"
var _facing_direction: String = "down" # down, up, left, right, front, back
func _ready():
print("[MobVisual] _ready called!")
# Try to find child nodes (they may not exist in all mob scenes)
fallback_sprite = get_node_or_null("Sprite2D")
name_label = get_node_or_null("NameLabel")
@@ -50,6 +52,9 @@ func _ready():
# Connect to UpdateManager for async texture loading
if UpdateManager:
UpdateManager.file_downloaded.connect(_on_file_downloaded)
print("[MobVisual] Connected to UpdateManager")
else:
print("[MobVisual] WARNING: UpdateManager is null!")
func update_data(data: Dictionary):
mob_data = data