add more asserts

This commit is contained in:
2024-10-06 19:40:26 +10:00
parent ab17b3489f
commit 78cb85eb92
5 changed files with 11 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ func _ready() -> void:
assert(camera != null, "camera missing!")
assert(selection_sprite != null, "selection_sprite missing!")
set_selected(false)
if spawn_pos != null and spawn_pos != Vector3.ZERO:
global_position = spawn_pos
super._ready()

View File

@@ -20,7 +20,6 @@ var wandering_center: Vector3 = Vector3.ZERO
func _ready() -> void:
assert(hover_sprite != null, "hover_sprite missing!")
assert(nav_agent != null, "nav_agent missing!")
assert(animation_tree != null, "animation_tree missing!")
assert(visibility_notifier != null, "visibility_notifier missing!")