person interaction update
This commit is contained in:
9
Scripts/person_action.gd
Normal file
9
Scripts/person_action.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user