18 lines
360 B
GDScript
18 lines
360 B
GDScript
extends Node2D
|
|
class_name Table
|
|
|
|
signal seat_clicked(Seat)
|
|
|
|
@onready var seat_1: Seat = $Seat1
|
|
@onready var seat_2: Seat = $Seat2
|
|
@onready var seat_3: Seat = $Seat3
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
func on_seat_clicked(seat: Seat) -> void:
|
|
seat_clicked.emit(seat)
|