update
This commit is contained in:
@@ -4,11 +4,12 @@ func _init() -> void:
|
||||
can_pick = false
|
||||
can_store = false
|
||||
max_person_using = 2
|
||||
|
||||
build_name = "bed"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
persons_position.append($PersonPos1)
|
||||
persons_position.append($PersonPos2)
|
||||
|
||||
func start_action(person, object):
|
||||
person.visible = false
|
||||
|
||||
17
Scripts/objects/pot_object.gd
Normal file
17
Scripts/objects/pot_object.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends Interactable
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
max_person_using = 1
|
||||
build_name = "pot"
|
||||
|
||||
func _ready() -> void:
|
||||
persons_position.append($PersonPos1)
|
||||
|
||||
|
||||
func start_action(person, object):
|
||||
person.action = self
|
||||
person.set_timer(5)
|
||||
|
||||
func stop_action(person, object):
|
||||
print("action stoped")
|
||||
1
Scripts/objects/pot_object.gd.uid
Normal file
1
Scripts/objects/pot_object.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cpg631v6q60xo
|
||||
@@ -10,6 +10,7 @@ var item_poses: Array
|
||||
func _init() -> void:
|
||||
max_person_using = 1
|
||||
can_store = true
|
||||
build_name = "shelf"
|
||||
func _ready() -> void:
|
||||
self.owner = $".."
|
||||
#object_placed.connect(_on_object_placed.bind(self))
|
||||
|
||||
Reference in New Issue
Block a user