41 lines
900 B
C#
41 lines
900 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
[Flags]
|
|
public enum RestaurantCookType : uint
|
|
{
|
|
OpenCookUi = 0,
|
|
}
|
|
|
|
public class RestaurantCookInteractionSubsystem : MonoBehaviour, IInteractionSubsystemObject<RestaurantCookType>
|
|
{
|
|
[SerializeField] protected RestaurantCookType _cookType = RestaurantCookType.OpenCookUi;
|
|
|
|
public RestaurantCookType GetInteractionSubsystemType()
|
|
{
|
|
return _cookType;
|
|
}
|
|
|
|
public virtual void InitializeSubsystem()
|
|
{
|
|
|
|
}
|
|
|
|
public virtual bool CanInteract()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public virtual bool OnInteracted(IInteractor interactor, ScriptableObject payloadSo = null)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public ScriptableObject GetPayload()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
} |