From 9fc80f90172c9e7af6994b3f5e0a8450929ef06b Mon Sep 17 00:00:00 2001 From: NTG_Lenovo Date: Thu, 7 Aug 2025 13:16:25 +0900 Subject: [PATCH] =?UTF-8?q?so=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_Scripts/GameState/RestaurantManagementSo.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Assets/_DDD/_Scripts/GameState/RestaurantManagementSo.cs b/Assets/_DDD/_Scripts/GameState/RestaurantManagementSo.cs index 2a1bf989c..2dc40859a 100644 --- a/Assets/_DDD/_Scripts/GameState/RestaurantManagementSo.cs +++ b/Assets/_DDD/_Scripts/GameState/RestaurantManagementSo.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Threading.Tasks; using Sirenix.OdinInspector; @@ -11,8 +10,6 @@ public class RestaurantManagementSo : GameFlowTask { // TODO : 체크리스트 기능 - // TODO : 조리도구 등록, 해제 기능 - public ItemSlotUi ItemSlotUiPrefab; [Title("선택된 메뉴 상세 내용")] @@ -37,13 +34,21 @@ public class RestaurantManagementSo : GameFlowTask public IReadOnlyList TodayCookwareIds => _todayCookwareIds; public override Task OnReadyNewFlow(GameFlowState newFlowState) + { + if (newFlowState == GameFlowState.ReadyForRestaurant) + { + InitializeReadyForRestaurant(); + } + + return Task.CompletedTask; + } + + private void InitializeReadyForRestaurant() { _todayFoodRecipeIds.Clear(); _todayDrinkRecipeIds.Clear(); _todayWorkerIds.Clear(); _todayCookwareIds.Clear(); - - return Task.CompletedTask; } public bool TryAddTodayMenu(ItemSlotUi itemSlotUi)