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)