소스 검색

Merge pull request #469 from toger5/patch-3

use new get_node ($) in intro
Chris Bradfield 8 년 전
부모
커밋
c77dcf8e2c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      about/introduction.rst

+ 1 - 1
about/introduction.rst

@@ -6,7 +6,7 @@ Introduction
 ::
 
     func _ready():
-        get_node("Label").set_text("Hello world!")
+        $Label.text = "Hello world!"
 
 Welcome to the official documentation of Godot Engine, the free and open source
 community-driven 2D and 3D game engine! Behind this mouthful, you will find a