26 lines
690 B
GDScript
26 lines
690 B
GDScript
extends Control
|
|
|
|
@onready var glass = $Glass
|
|
@onready var cell_wall = $CellWall
|
|
@onready var room = $Room
|
|
@onready var backwall = $Backwall
|
|
@onready var backwall_animation = $Backwall/BackwallAnimation
|
|
@onready var cell_door = $CellDoor
|
|
@onready var cell_top = $CellDoor/CellTop
|
|
@onready var cell_bot = $CellDoor/CellBot
|
|
@onready var cell_animation = $CellDoor/CellAnimation
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
#Resets to initial state
|
|
func reset():
|
|
cell_wall.modulate = Patient.original_color
|
|
for node in [cell_wall, cell_door]:
|
|
node.hide()
|
|
for node in [glass, room, backwall]:
|
|
node.show()
|