"Fix debug message for oven state change")
This commit is contained in:
parent
92a9d4664d
commit
830b78cf77
@ -13,10 +13,10 @@ func _ready():
|
|||||||
state = StateIdle.new()
|
state = StateIdle.new()
|
||||||
state.ctx = self
|
state.ctx = self
|
||||||
state.enter_from(null)
|
state.enter_from(null)
|
||||||
print("hydroponics_station: NULL -> ", state.NAME)
|
print("oven: NULL -> ", state.NAME)
|
||||||
|
|
||||||
func change_state(new_state):
|
func change_state(new_state):
|
||||||
print("hydroponics_station: ", state.NAME, " -> ", new_state.NAME)
|
print("oven: ", state.NAME, " -> ", new_state.NAME)
|
||||||
new_state.ctx = self
|
new_state.ctx = self
|
||||||
state.exit_to(new_state)
|
state.exit_to(new_state)
|
||||||
new_state.enter_from(state)
|
new_state.enter_from(state)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user