17 lines
658 B
C#
17 lines
658 B
C#
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public class RestaurantManagementUiEventSolver : MonoBehaviour, IInteractionSolver
|
|
{
|
|
public bool ExecuteInteraction(IInteractor interactor, IInteractable interactable, ScriptableObject interactionPayloadSo = null)
|
|
{
|
|
GameFlowState currentGameFlowState = GameFlowManager.Instance.GameFlowDataSo.CurrentGameState;
|
|
if (currentGameFlowState != GameFlowState.ReadyForRestaurant) return false;
|
|
var evt = GameEvents.OpenPopupUiEvent;
|
|
evt.UiType = typeof(RestaurantManagementUi);
|
|
EventBus.Broadcast(evt);
|
|
return true;
|
|
}
|
|
}
|
|
} |