mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Replace XML codeblock spaces with tabs
This commit is contained in:
parent
5dd76968d8
commit
13f642d959
122 changed files with 2407 additions and 2432 deletions
|
|
@ -33,8 +33,8 @@
|
|||
[codeblock]
|
||||
# Calls "hide" to all nodes of the "enemies" group, at the end of the frame and in reverse tree order.
|
||||
get_tree().call_group_flags(
|
||||
SceneTree.GROUP_CALL_DEFERRED | SceneTree.GROUP_CALL_REVERSE,
|
||||
"enemies", "hide")
|
||||
SceneTree.GROUP_CALL_DEFERRED | SceneTree.GROUP_CALL_REVERSE,
|
||||
"enemies", "hide")
|
||||
[/codeblock]
|
||||
[b]Note:[/b] In C#, [param method] must be in snake_case when referring to built-in Godot methods. Prefer using the names exposed in the [code]MethodName[/code] class to avoid allocating a new [StringName] on each call.
|
||||
</description>
|
||||
|
|
@ -76,16 +76,16 @@
|
|||
[codeblocks]
|
||||
[gdscript]
|
||||
func some_function():
|
||||
print("start")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
print("end")
|
||||
print("start")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
print("end")
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
public async Task SomeFunction()
|
||||
{
|
||||
GD.Print("start");
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), SceneTreeTimer.SignalName.Timeout);
|
||||
GD.Print("end");
|
||||
GD.Print("start");
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), SceneTreeTimer.SignalName.Timeout);
|
||||
GD.Print("end");
|
||||
}
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue