first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user