41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
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()
|
|
{
|
|
// TODO : TODO_IMPLEMENT_ME
|
|
return InteractionType.None;
|
|
}
|
|
|
|
public GameObject GetInteractableGameObject()
|
|
{
|
|
// TODO : TODO_IMPLEMENT_ME
|
|
return null;
|
|
}
|
|
|
|
public void InitializeInteraction(InteractionType interactionType)
|
|
{
|
|
// TODO : TODO_IMPLEMENT_ME
|
|
}
|
|
}
|
|
} |