2025-08-07 04:12:02 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace DDD
|
|
|
|
{
|
|
|
|
public class RestaurantOpenEventSolver : MonoBehaviour, IInteractionSolver
|
|
|
|
{
|
|
|
|
public bool ExecuteInteraction(IInteractor interactor, IInteractable interactable, ScriptableObject interactionPayloadSo = null)
|
|
|
|
{
|
|
|
|
if (CanInteract() == false) return false;
|
|
|
|
|
|
|
|
GameFlowManager.Instance.ChangeFlow(GameFlowState.RunRestaurant);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool CanInteract()
|
|
|
|
{
|
2025-08-07 04:15:52 +00:00
|
|
|
// TODO : 영업 가능한 상태인지 조건 추가 (최소 요리, 요리도구 배치 등)
|
|
|
|
|
2025-08-07 04:12:02 +00:00
|
|
|
GameFlowState currentGameFlowState = GameFlowManager.Instance.GameFlowDataSo.CurrentGameState;
|
|
|
|
return currentGameFlowState == GameFlowState.ReadyForRestaurant;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|