UnityGame/Library/PackageCache/com.unity.visualscripting/Editor/VisualScripting.Flow/Options/UnitOptionProvider.cs
2024-10-27 10:53:47 +03:00

16 lines
444 B
C#

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);
}
}
}