added pause menu
This commit is contained in:
@@ -39,8 +39,7 @@ func _on_switch_changed() -> void:
|
||||
else:
|
||||
if door.door_open == true:
|
||||
door.close()
|
||||
|
||||
#Otherwise follow standard switches
|
||||
#Otherwise follow standard switches
|
||||
elif switches_on == switches_needed:
|
||||
print("switch check run with " + str(switches_on) + "switches on")
|
||||
if door.door_open == false:
|
||||
@@ -49,3 +48,13 @@ func _on_switch_changed() -> void:
|
||||
print("switch check run with " + str(switches_on) + "switches on")
|
||||
if door.door_open == true:
|
||||
door.close()
|
||||
|
||||
#Otherwise follow standard switches
|
||||
elif switches_on == switches_needed:
|
||||
print("switch check run with " + str(switches_on) + "switches on")
|
||||
if door.door_open == false:
|
||||
door.open()
|
||||
else:
|
||||
print("switch check run with " + str(switches_on) + "switches on")
|
||||
if door.door_open == true:
|
||||
door.close()
|
||||
|
||||
Reference in New Issue
Block a user