Files
CartoonRPG/Assets/KINEMATION/MotionWarping/Runtime/Core/WarpProviderInterface.cs

24 lines
554 B
C#
Raw Normal View History

2025-06-05 22:59:18 +01:00
// Designed by KINEMATION, 2024.
using Kinemation.MotionWarping.Runtime.Utility;
using UnityEngine;
namespace Kinemation.MotionWarping.Runtime.Core
{
public struct WarpInteractionResult
{
public WarpPoint[] points;
public MotionWarpingAsset asset;
public bool success;
public bool IsValid()
{
return success && points != null && asset != null;
}
}
public interface IWarpPointProvider
{
public WarpInteractionResult Interact(GameObject instigator);
}
}