Singularity/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.Flow/Options/UnitOptionProvider.cs

16 lines
444 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
namespace Unity.VisualScripting
{
public static class XUnitOptionProvider
{
public static IUnitOption Option(this IUnit unit)
{
return FuzzyOptionProvider.instance.GetDecorator<IUnitOption>(unit);
}
public static IUnitOption Option<TOption>(this IUnit unit) where TOption : IUnitOption
{
return FuzzyOptionProvider.instance.GetDecorator<TOption>(unit);
}
}
}