10 lines
213 B
GDScript
10 lines
213 B
GDScript
extends Node
|
|
|
|
|
|
func sleep(person, object, action):
|
|
person.action = action
|
|
person.timer.wait_time = 2.0
|
|
person.timer.one_shot = true
|
|
person.timer.start()
|
|
person.timer.timeout.connect(person._on_timer_timeout)
|