Added Damageable class that crating_station inherits from. Added new broken state to crafting_station with status light
This commit is contained in:
1 parent
63c0199d77
commit
7289eba670
15 files changed
+180
-72
No files matched your search
@@ -16,7 +16,6 @@ func enter_from(state):
|
||||
ctx.get_node("%item_holder").remove_enabled = false
|
||||
|
||||
ctx.get_node("cook_timer").start()
|
||||
ctx.get_node("status_light").light_color = Color.green
|
||||
ctx.get_node("status_light").activate()
|
||||
|
||||
func exit_to(state):
|
||||
|
||||
@@ -12,7 +12,7 @@ func enter_from(state):
|
||||
ctx.get_node("coin_machine").enabled = false
|
||||
ctx.get_node("%item_holder").add_enabled = true
|
||||
ctx.get_node("%item_holder").remove_enabled = false # not possible
|
||||
ctx.get_node("status_light").light_color = Color.white
|
||||
ctx.get_node("status_light").idle()
|
||||
|
||||
func exit_to(state):
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user