doc
parent
f159790fa1
commit
120c9cb3cc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue