From 14c568b29b15b1e71c9c1db493b33ad438811106 Mon Sep 17 00:00:00 2001 From: NTG Date: Thu, 14 Aug 2025 14:56:12 +0900 Subject: [PATCH] =?UTF-8?q?complete=20holding=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RestaurantManagementUi.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Assets/_DDD/_Scripts/GameUi/RestaurantManagementUi/RestaurantManagementUi.cs b/Assets/_DDD/_Scripts/GameUi/RestaurantManagementUi/RestaurantManagementUi.cs index bf850249a..5a3199b43 100644 --- a/Assets/_DDD/_Scripts/GameUi/RestaurantManagementUi/RestaurantManagementUi.cs +++ b/Assets/_DDD/_Scripts/GameUi/RestaurantManagementUi/RestaurantManagementUi.cs @@ -25,9 +25,22 @@ protected override void Update() if (_isHolding) { + if (_holdCompleteTime <= 0f) + { + _elapsedTime = 0f; + HandleInteract2Canceled(); + var evt = GameEvents.OpenPopupUiEvent; + evt.UiType = typeof(ConfirmUi); + evt.IsCancelButtonVisible = true; + evt.NewMessageKey = "Global_Message_001"; + evt.OnConfirm = ClosePanel; + EventBus.Broadcast(evt); + return; + } + _completeBatchFilledImage.fillAmount = _elapsedTime; - var multiply = _holdCompleteTime / 1f; + var multiply = 1f / _holdCompleteTime; if (_elapsedTime >= 1f) { // TODO : 추후에 체크리스트와 비교해서 팝업 띄울지 말지 결정