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