first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Conditions
|
||||
{
|
||||
|
||||
[Name("Check Parameter Bool")]
|
||||
[Category("Animator")]
|
||||
public class MecanimCheckBool : ConditionTask<Animator>
|
||||
{
|
||||
|
||||
[RequiredField]
|
||||
public BBParameter<string> parameter;
|
||||
public BBParameter<bool> value;
|
||||
|
||||
protected override string info {
|
||||
get { return "Mec.Bool " + parameter.ToString() + " == " + value; }
|
||||
}
|
||||
|
||||
protected override bool OnCheck() {
|
||||
|
||||
return agent.GetBool(parameter.value) == value.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf588be4d9b24174ba3690e0805bf1b3
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 14914
|
||||
packageName: NodeCanvas
|
||||
packageVersion: 3.3.1
|
||||
assetPath: Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Animator/MecanimCheckBool.cs
|
||||
uploadId: 704937
|
||||
@@ -0,0 +1,32 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Conditions
|
||||
{
|
||||
|
||||
[Name("Check Parameter Float")]
|
||||
[Category("Animator")]
|
||||
public class MecanimCheckFloat : ConditionTask<Animator>
|
||||
{
|
||||
|
||||
[RequiredField]
|
||||
public BBParameter<string> parameter;
|
||||
public CompareMethod comparison = CompareMethod.EqualTo;
|
||||
public BBParameter<float> value;
|
||||
|
||||
protected override string info {
|
||||
get
|
||||
{
|
||||
return "Mec.Float " + parameter.ToString() + OperationTools.GetCompareString(comparison) + value;
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool OnCheck() {
|
||||
|
||||
return OperationTools.Compare((float)agent.GetFloat(parameter.value), (float)value.value, comparison, 0.1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b063638c9788c6429686913f6b07da6
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 14914
|
||||
packageName: NodeCanvas
|
||||
packageVersion: 3.3.1
|
||||
assetPath: Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Animator/MecanimCheckFloat.cs
|
||||
uploadId: 704937
|
||||
@@ -0,0 +1,31 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Conditions
|
||||
{
|
||||
|
||||
[Name("Check Parameter Int")]
|
||||
[Category("Animator")]
|
||||
public class MecanimCheckInt : ConditionTask<Animator>
|
||||
{
|
||||
|
||||
[RequiredField]
|
||||
public BBParameter<string> parameter;
|
||||
public CompareMethod comparison = CompareMethod.EqualTo;
|
||||
public BBParameter<int> value;
|
||||
|
||||
protected override string info {
|
||||
get
|
||||
{
|
||||
return "Mec.Int " + parameter.ToString() + OperationTools.GetCompareString(comparison) + value;
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool OnCheck() {
|
||||
return OperationTools.Compare((int)agent.GetInteger(parameter.value), (int)value.value, comparison);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d28b74746be3b404fb036f7a373bc625
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 14914
|
||||
packageName: NodeCanvas
|
||||
packageVersion: 3.3.1
|
||||
assetPath: Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Animator/MecanimCheckInt.cs
|
||||
uploadId: 704937
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4ddce33a9d165c45a2f13d9d647b36d
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 14914
|
||||
packageName: NodeCanvas
|
||||
packageVersion: 3.3.1
|
||||
assetPath: Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Animator/MecanimIsInTransition.cs
|
||||
uploadId: 704937
|
||||
Reference in New Issue
Block a user