Add @ to onready annotated variables in docs

This commit is contained in:
Markus Sauermann
2022-02-04 19:52:43 +01:00
committed by Rémi Verschelde
parent d091995e05
commit 70da14db68
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@
[codeblocks]
[gdscript]
var _can_shoot = true
onready var _cool_down = $CoolDownTimer
@onready var _cool_down = $CoolDownTimer
func shoot():
if _can_shoot and Input.is_action_pressed("shoot"):