add more asserts
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user