15 lines
495 B
C#
15 lines
495 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace DDD.Restaurant
|
||
|
{
|
||
|
public class RestaurantEnvironmentPointQueryEvent : RestaurantEventBase<PointType>
|
||
|
{
|
||
|
protected override bool EventSolve(GameObject causer, GameObject target, PointType eventType, ScriptableObject payload)
|
||
|
{
|
||
|
if (!target.TryGetComponent(out IEnvironmentPointProvider provider)) return false;
|
||
|
if (!provider.IsSupportsType(eventType)) return false;
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|