ChronoChamber/Commands/command_pedestal.gd

22 lines
476 B
GDScript3
Raw Normal View History

2024-08-10 21:55:26 +10:00
extends Node3D
class_name Pedestal
@export var placed_command : Node3D
@export var has_command : bool = false
@export var slot : Node3D
2024-08-10 22:24:26 +10:00
@export var mesh :MeshInstance3D
2024-08-10 21:55:26 +10:00
# Called when the node enters the scene tree for the first time.
func _ready():
2024-08-10 22:24:26 +10:00
2024-08-10 21:55:26 +10:00
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if(slot.get_child_count() == 0):
placed_command = null
has_command = false
2024-08-10 21:55:26 +10:00
pass