mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Merge pull request #1480 from theuserbl/patch-2
Changed *_scene() to *_tree() in the time-example
This commit is contained in:
commit
a8f55d11d3
@ -21,12 +21,12 @@ func _init():
|
||||
timer.set_one_shot(false)
|
||||
timer.connect("timeout",self,"_timeout")
|
||||
|
||||
func _enter_scene():
|
||||
func _enter_tree():
|
||||
label = Label.new()
|
||||
add_custom_control(CONTAINER_TOOLBAR,label)
|
||||
timer.start()
|
||||
|
||||
func _exit_scene():
|
||||
func _exit_tree():
|
||||
timer.stop()
|
||||
label.free()
|
||||
label=null
|
||||
|
Loading…
Reference in New Issue
Block a user