25 lines
637 B
GDScript
25 lines
637 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_top = $CellTop
|
|
@onready var cell_bot = $CellBot
|
|
@onready var cell_animation = $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_top, cell_bot]:
|
|
node.hide()
|
|
for node in [glass, room, backwall]:
|
|
node.show()
|