Fix all tables consumed the same customer.
This commit is contained in:
@@ -74,6 +74,7 @@ mass = 0.004
|
||||
gravity_scale = 0.5
|
||||
linear_damp = 100.0
|
||||
script = ExtResource("2_tbkb3")
|
||||
picked_up_layer = 64
|
||||
release_mode = 1
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MoveHandle" unique_id=1692047616]
|
||||
|
||||
+3
-2
@@ -96,11 +96,12 @@ func clearAllFood() -> void:
|
||||
|
||||
|
||||
# Group called from Queue when trying to assign customers to tables
|
||||
func try_consume_customer():
|
||||
func try_consume_customer() -> bool:
|
||||
if _state == TableState.EMPTY:
|
||||
print("Table try_consume_customer, consumed a customer")
|
||||
_state_end(TableState.EMPTY)
|
||||
Signals.consumed_customer.emit()
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
||||
@@ -141,6 +141,7 @@ size = Vector3(0.05, 0.6713196, 0.05)
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Table" unique_id=662960977]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8263302, 0)
|
||||
pixel_size = 0.003
|
||||
billboard = 2
|
||||
text = "table state"
|
||||
vertical_alignment = 0
|
||||
@@ -148,6 +149,7 @@ line_spacing = -15.0
|
||||
|
||||
[node name="Label3DTime" type="Label3D" parent="Table" unique_id=1534849507]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.0147986, 0)
|
||||
visible = false
|
||||
pixel_size = 0.003
|
||||
billboard = 2
|
||||
text = "20.1s"
|
||||
|
||||
Reference in New Issue
Block a user