Firstborn/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.State/Transitions/StateTransitionAnalyser.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

28 lines
776 B
C#

using System.Collections.Generic;
namespace Unity.VisualScripting
{
public abstract class StateTransitionAnalyser<TStateTransition> : Analyser<TStateTransition, StateTransitionAnalysis>
where TStateTransition : IStateTransition
{
protected StateTransitionAnalyser(GraphReference reference, TStateTransition target) : base(reference, target) { }
public TStateTransition transition => target;
[Assigns]
protected virtual bool IsTraversed()
{
return true;
}
[Assigns]
protected virtual IEnumerable<Warning> Warnings()
{
if (!IsTraversed())
{
yield return Warning.Info("Transition is never traversed.");
}
}
}
}