From f19f66fdb1daa044da6e8f614fc653f7ce73db55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=82=B0?= Date: Mon, 1 Sep 2025 18:21:08 +0900 Subject: [PATCH] =?UTF-8?q?CustomerPatienceUiComponent=20=EC=88=98?= =?UTF-8?q?=EC=A0=95:=20PatienceSlider=20=ED=99=9C=EC=84=B1=ED=99=94=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EA=B0=9C=EC=84=A0=20(enabled=20=E2=86=92?= =?UTF-8?q?=20SetActive),=20RemainingPatienceTime=20=EC=8B=9C=EA=B0=81?= =?UTF-8?q?=ED=99=94=20=EC=B6=94=EA=B0=80,=20Prefab=20=EB=B0=8F=20?= =?UTF-8?q?=EB=B8=94=EB=9E=99=EB=B3=B4=EB=93=9C=20Key=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8.=20TimeLimiter=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20=ED=98=B8=EC=B6=9C=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/_DDD/_Addressables/Prefabs/CustomerNpc.prefab | 6 +++--- .../Character/AI/Common/Decorator/TimeLimiter.cs | 1 - .../AI/Customer/Decorator/CustomerTimeLimiter.cs | 1 + .../Ui/OrderUi/CustomerPatienceUiComponent.cs | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/_DDD/_Addressables/Prefabs/CustomerNpc.prefab b/Assets/_DDD/_Addressables/Prefabs/CustomerNpc.prefab index ae9e28304..830102b1c 100644 --- a/Assets/_DDD/_Addressables/Prefabs/CustomerNpc.prefab +++ b/Assets/_DDD/_Addressables/Prefabs/CustomerNpc.prefab @@ -33,8 +33,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.25} m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: -5, y: 0} - m_SizeDelta: {x: -20, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &6108830054777696831 GameObject: @@ -71,7 +71,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 10, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5096550498312619918 CanvasRenderer: diff --git a/Assets/_DDD/_Scripts/Restaurant/Character/AI/Common/Decorator/TimeLimiter.cs b/Assets/_DDD/_Scripts/Restaurant/Character/AI/Common/Decorator/TimeLimiter.cs index 332990eb1..f9a4f62e0 100644 --- a/Assets/_DDD/_Scripts/Restaurant/Character/AI/Common/Decorator/TimeLimiter.cs +++ b/Assets/_DDD/_Scripts/Restaurant/Character/AI/Common/Decorator/TimeLimiter.cs @@ -268,7 +268,6 @@ public TaskStatus TimeoutStatus public override void OnStart() { - base.OnStart(); _startTime = Time.time; } diff --git a/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Decorator/CustomerTimeLimiter.cs b/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Decorator/CustomerTimeLimiter.cs index 94d38de25..57f635efc 100644 --- a/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Decorator/CustomerTimeLimiter.cs +++ b/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Decorator/CustomerTimeLimiter.cs @@ -15,6 +15,7 @@ public override void OnStart() Debug.LogError($"[{GetType().Name}] 블랙보드를 찾을 수 없습니다. 게임오브젝트 해시코드: {gameObject.GetHashCode()}"); } _blackboard.SetBlackboardValue(_maxTimeblackboardKey, TimeLimit.Value); + _blackboard.SetBlackboardValue(_remainTimeblackboardKey, TimeLimit.Value); } public override TaskStatus OnUpdate() diff --git a/Assets/_DDD/_Scripts/Restaurant/Ui/OrderUi/CustomerPatienceUiComponent.cs b/Assets/_DDD/_Scripts/Restaurant/Ui/OrderUi/CustomerPatienceUiComponent.cs index cdc6560c2..8c793b571 100644 --- a/Assets/_DDD/_Scripts/Restaurant/Ui/OrderUi/CustomerPatienceUiComponent.cs +++ b/Assets/_DDD/_Scripts/Restaurant/Ui/OrderUi/CustomerPatienceUiComponent.cs @@ -57,7 +57,7 @@ private void Start() _currentOrderType = _subsystem.GetInteractionSubsystemType(); _initialized = true; - _patienceSlider.enabled = false; + _patienceSlider.gameObject.SetActive(false); } private void Update() @@ -66,7 +66,7 @@ private void Update() _currentOrderType = _subsystem.GetInteractionSubsystemType(); if (!_targetOrderType.Contains(_currentOrderType)) { - _patienceSlider.enabled = false; + _patienceSlider.gameObject.SetActive(false); return; } @@ -74,12 +74,12 @@ private void Update() { SetPatience(); } - + _patienceSlider.maxValue = _blackboard.GetBlackboardValue(RestaurantCustomerBlackboardKey.MaxPatienceTime); _patienceSlider.value = _blackboard.GetBlackboardValue(RestaurantCustomerBlackboardKey.RemainingPatienceTime); if (_patienceSlider.value <= 0) { - _patienceSlider.enabled = false; + _patienceSlider.gameObject.SetActive(false); } } @@ -88,7 +88,7 @@ private void SetPatience() _prevOrderType = _currentOrderType; _patienceSlider.maxValue = _blackboard.GetBlackboardValue(RestaurantCustomerBlackboardKey.MaxPatienceTime); _patienceSlider.value = _patienceSlider.maxValue; - _patienceSlider.enabled = true; + _patienceSlider.gameObject.SetActive(true); } } } \ No newline at end of file