mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #7012 from jwmcgettigan/onready-patch
Updated instances of onready to @onready.
This commit is contained in:
@@ -78,7 +78,7 @@ released.
|
||||
|
||||
extends CharacterBody2D
|
||||
|
||||
onready var _animated_sprite = $AnimatedSprite2D
|
||||
@onready var _animated_sprite = $AnimatedSprite2D
|
||||
|
||||
func _process(_delta):
|
||||
if Input.is_action_pressed("ui_right"):
|
||||
@@ -219,7 +219,7 @@ released.
|
||||
|
||||
extends CharacterBody2D
|
||||
|
||||
onready var _animation_player = $AnimationPlayer
|
||||
@onready var _animation_player = $AnimationPlayer
|
||||
|
||||
func _process(_delta):
|
||||
if Input.is_action_pressed("ui_right"):
|
||||
|
||||
Reference in New Issue
Block a user