diff --git a/script/demo02_base/base4.gd b/script/demo02_base/base4.gd index 6a28ab7..f511a48 100644 --- a/script/demo02_base/base4.gd +++ b/script/demo02_base/base4.gd @@ -2,11 +2,6 @@ extends Node2D func _ready(): - createNodeByScript() - pass - - -func createNodeByScript(): # new一个Sprite节点 var sprite = Sprite.new() @@ -23,8 +18,8 @@ func createNodeByScript(): # 添加到当前的场景中 add_child(sprite) - pass # Replace with function body. - + pass + func _process(delta):