ProjectDDD/Assets/_DDD/_Scripts/GameEvent/IInteractable.cs
2025-07-22 20:15:20 +09:00

30 lines
756 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace DDD
{
public enum InteractionType
{
None,
RestaurantManagement,
Count
}
public interface IInteractable
{
bool CanInteract();
bool OnInteracted(IInteractor interactor, ScriptableObject interactionPayloadSo = null);
InteractionType GetInteractionType();
GameObject GetInteractableGameObject();
void InitializeInteraction(InteractionType interactionType);
}
public interface IInteractor
{
GameObject GetInteractorGameObject();
}
public interface IInteractionSolver
{
bool ExecuteInteraction(IInteractor interactor, ScriptableObject interactionPayloadSo = null);
}
}