doc
parent
43d8d57ae4
commit
9716a9b934
|
@ -40,13 +40,13 @@ process方法执行的优先级,对于子节点依然有效
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
# Called when the node enters the scene tree for the first time.
|
# 脚本初始化会首先调用这个方法,会在_process()方法之前调用
|
||||||
func _ready():
|
func _ready():
|
||||||
# get_tree().paused = true
|
# get_tree().paused = true
|
||||||
pass
|
pass
|
||||||
|
|
||||||
var count = 0
|
var count = 0
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# 每一帧都会调用这个方法
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue