IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Animator/MecanimIsInTransition.cs

25 lines
520 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Conditions
{
[Name("Is In Transition")]
[Category("Animator")]
public class MecanimIsInTransition : ConditionTask<Animator>
{
public BBParameter<int> layerIndex;
protected override string info {
get { return "Mec.Is In Transition"; }
}
protected override bool OnCheck() {
return agent.IsInTransition(layerIndex.value);
}
}
}