item art
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user