Update certain example code snippets to use the new syntax

This commit is contained in:
Kongfa Waroros
2024-08-22 21:59:03 +07:00
parent e98b2c77c2
commit f27d12979d
6 changed files with 7 additions and 7 deletions

View File

@@ -131,7 +131,7 @@ It uses the NavigationServer2D and a NavigationAgent2D for path movement.
navigation_agent.target_desired_distance = 4.0
# Make sure to not await during _ready.
call_deferred("actor_setup")
actor_setup.call_deferred()
func actor_setup():
# Wait for the first physics frame so the NavigationServer can sync.

View File

@@ -132,7 +132,7 @@ It uses the NavigationServer3D and a NavigationAgent3D for path movement.
navigation_agent.target_desired_distance = 0.5
# Make sure to not await during _ready.
call_deferred("actor_setup")
actor_setup.call_deferred()
func actor_setup():
# Wait for the first physics frame so the NavigationServer can sync.

View File

@@ -97,7 +97,7 @@ Afterwards the function waits for the next physics frame before continuing with
func _ready():
# Use call deferred to make sure the entire scene tree nodes are setup
# else await on 'physics_frame' in a _ready() might get stuck.
call_deferred("custom_setup")
custom_setup.call_deferred()
func custom_setup():