game loop improvement
This commit is contained in:
17
scenes/table/table.gd
Normal file
17
scenes/table/table.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user