Updated main scene with all the stations
This commit is contained in:
1 parent
a22589b998
commit
db7ecf5ed1
9 files changed
+191
-53
No files matched your search
@@ -39,8 +39,8 @@ func _ready():
|
||||
state.enter_from(null)
|
||||
print("crafting_station: NULL -> ", state.NAME)
|
||||
|
||||
if start_broken:
|
||||
item_holder.spawn_item(RepairKit)
|
||||
#if start_broken:
|
||||
# item_holder.spawn_item(RepairKit)
|
||||
|
||||
func _process(delta):
|
||||
state.update(delta)
|
||||
|
||||
@@ -14,12 +14,11 @@ func enter_from(state):
|
||||
ctx.get_node("item_holder").add_enabled = false
|
||||
ctx.get_node("item_holder").remove_enabled = false
|
||||
ctx.get_node("grow_timer").start()
|
||||
ctx.get_node("MeshInstance").set_surface_material(0, mat)
|
||||
ctx.status_light.activate()
|
||||
ctx.item_dump.enabled = false
|
||||
|
||||
func exit_to(state):
|
||||
ctx.get_node("MeshInstance").set_surface_material(0, null)
|
||||
pass
|
||||
|
||||
func on_coin_machine_coin_requirement_met(player):
|
||||
assert(false, "coin machine should be disabled while growing")
|
||||
|
||||
Reference in new issue
Block a user