2025-07-22 11:15:20 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace DDD.RestaurantEvent
|
|
|
|
{
|
|
|
|
public class RestaurantInteractionComponent : MonoBehaviour, IInteractable
|
|
|
|
{
|
|
|
|
public bool CanInteract()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool OnInteracted(IInteractor interactor, ScriptableObject interactionPayloadSo = null)
|
|
|
|
{
|
|
|
|
if (CanInteract() == false)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool interactionResult = RestaurantEvents.RestaurantInteraction.RequestInteraction(interactor.GetInteractorGameObject(),
|
|
|
|
GetInteractableGameObject(), GetInteractionType(), interactionPayloadSo, true);
|
|
|
|
return interactionResult;
|
|
|
|
}
|
|
|
|
|
|
|
|
public InteractionType GetInteractionType()
|
|
|
|
{
|
2025-07-24 08:43:39 +00:00
|
|
|
// TODO : TODO_IMPLEMENT_ME
|
|
|
|
return InteractionType.None;
|
2025-07-22 11:15:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public GameObject GetInteractableGameObject()
|
|
|
|
{
|
2025-07-24 08:43:39 +00:00
|
|
|
// TODO : TODO_IMPLEMENT_ME
|
|
|
|
return null;
|
2025-07-22 11:15:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void InitializeInteraction(InteractionType interactionType)
|
|
|
|
{
|
2025-07-24 08:43:39 +00:00
|
|
|
// TODO : TODO_IMPLEMENT_ME
|
2025-07-22 11:15:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|