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