From 9498d3767315e7326e35c7bc9d03ebc5ee76bbfb Mon Sep 17 00:00:00 2001 From: jaysunxiao Date: Sun, 2 Jan 2022 20:00:16 +0800 Subject: [PATCH] doc --- script/demo02_base/base1.gd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/demo02_base/base1.gd b/script/demo02_base/base1.gd index 0b64902..36d2bf5 100644 --- a/script/demo02_base/base1.gd +++ b/script/demo02_base/base1.gd @@ -10,8 +10,13 @@ export(String, FILE, "*.txt") var d export(Resource) var f export(Color, RGB) var g +func _init(): + print("init") + + # Called when the node enters the scene tree for the first time. func _ready(): + print("ready") print("new一个对象--------------------------------") var myClass = MyClass.new() print(myClass.to_string())