mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
classref: Sync with latest 4.0-alpha
This commit is contained in:
@@ -80,7 +80,7 @@ The following code will set ``can_shoot`` to ``false`` and start a timer. This w
|
||||
.. code-tab:: 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"):
|
||||
|
||||
Reference in New Issue
Block a user