移除 bd
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
#if GRAPH_DESIGNER
|
||||
/// ---------------------------------------------
|
||||
/// Behavior Designer
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math
|
||||
{
|
||||
using Opsive.GraphDesigner.Runtime;
|
||||
using Opsive.GraphDesigner.Runtime.Variables;
|
||||
using UnityEngine;
|
||||
|
||||
[Opsive.Shared.Utility.Description("Compares two boolean values.")]
|
||||
[Shared.Utility.Category("Math")]
|
||||
public class BoolComparison : Conditional
|
||||
{
|
||||
[Tooltip("The first boolean.")]
|
||||
[SerializeField] protected SharedVariable<bool> m_Bool1;
|
||||
[Tooltip("The second boolean.")]
|
||||
[SerializeField] protected SharedVariable<bool> m_Bool2;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the task.
|
||||
/// </summary>
|
||||
/// <returns>The execution status of the task.</returns>
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
return m_Bool1.Value == m_Bool2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 20df1d25d6eab8b429d6c8fe6af5a87a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,60 +0,0 @@
|
||||
#if GRAPH_DESIGNER
|
||||
/// ---------------------------------------------
|
||||
/// Behavior Designer
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math
|
||||
{
|
||||
using Opsive.GraphDesigner.Runtime.Variables;
|
||||
using UnityEngine;
|
||||
|
||||
[Opsive.Shared.Utility.Description("Compares two float values.")]
|
||||
[Shared.Utility.Category("Math")]
|
||||
public class FloatComparison : Conditional
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the type of comparison that should be performed.
|
||||
/// </summary>
|
||||
protected enum Operation
|
||||
{
|
||||
LessThan,
|
||||
LessThanOrEqualTo,
|
||||
EqualTo,
|
||||
NotEqualTo,
|
||||
GreaterThanOrEqualTo,
|
||||
GreaterThan
|
||||
}
|
||||
|
||||
[Tooltip("The operation that should be performed.")]
|
||||
[SerializeField] protected SharedVariable<Operation> m_Operation;
|
||||
[Tooltip("The first float.")]
|
||||
[SerializeField] protected SharedVariable<float> m_Float1;
|
||||
[Tooltip("The second float.")]
|
||||
[SerializeField] protected SharedVariable<float> m_Float2;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the task.
|
||||
/// </summary>
|
||||
/// <returns>The execution status of the task.</returns>
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
switch (m_Operation.Value) {
|
||||
case Operation.LessThan:
|
||||
return m_Float1.Value < m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.LessThanOrEqualTo:
|
||||
return m_Float1.Value <= m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.EqualTo:
|
||||
return m_Float1.Value == m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.NotEqualTo:
|
||||
return m_Float1.Value != m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.GreaterThanOrEqualTo:
|
||||
return m_Float1.Value >= m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.GreaterThan:
|
||||
return m_Float1.Value > m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
return TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a440ba0c2e06f5c4aaeaf7921c721c69
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,32 +0,0 @@
|
||||
#if GRAPH_DESIGNER
|
||||
/// ---------------------------------------------
|
||||
/// Behavior Designer
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math
|
||||
{
|
||||
using Opsive.GraphDesigner.Runtime;
|
||||
using Opsive.GraphDesigner.Runtime.Variables;
|
||||
using UnityEngine;
|
||||
|
||||
[Opsive.Shared.Utility.Description("Compares two GameObject values.")]
|
||||
[Shared.Utility.Category("Math")]
|
||||
public class GameObjectComparison : Conditional
|
||||
{
|
||||
[Tooltip("The first GameObject.")]
|
||||
[SerializeField] protected SharedVariable<GameObject> m_GameObject1;
|
||||
[Tooltip("The second GameObject.")]
|
||||
[SerializeField] protected SharedVariable<GameObject> m_GameObject2;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the task.
|
||||
/// </summary>
|
||||
/// <returns>The execution status of the task.</returns>
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
return m_GameObject1.Value == m_GameObject2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3462716a0f02f06448a43ed06afe8ea8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,61 +0,0 @@
|
||||
#if GRAPH_DESIGNER
|
||||
/// ---------------------------------------------
|
||||
/// Behavior Designer
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math
|
||||
{
|
||||
using Opsive.GraphDesigner.Runtime;
|
||||
using Opsive.GraphDesigner.Runtime.Variables;
|
||||
using UnityEngine;
|
||||
|
||||
[Opsive.Shared.Utility.Description("Compares two integer values.")]
|
||||
[Shared.Utility.Category("Math")]
|
||||
public class IntComparison : Conditional
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the type of comparison that should be performed.
|
||||
/// </summary>
|
||||
protected enum Operation
|
||||
{
|
||||
LessThan,
|
||||
LessThanOrEqualTo,
|
||||
EqualTo,
|
||||
NotEqualTo,
|
||||
GreaterThanOrEqualTo,
|
||||
GreaterThan
|
||||
}
|
||||
|
||||
[Tooltip("The operation that should be performed.")]
|
||||
[SerializeField] protected SharedVariable<Operation> m_Operation;
|
||||
[Tooltip("The first integer.")]
|
||||
[SerializeField] protected SharedVariable<int> m_Integer1;
|
||||
[Tooltip("The second integer.")]
|
||||
[SerializeField] protected SharedVariable<int> m_Integer2;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the task.
|
||||
/// </summary>
|
||||
/// <returns>The execution status of the task.</returns>
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
switch (m_Operation.Value) {
|
||||
case Operation.LessThan:
|
||||
return m_Integer1.Value < m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.LessThanOrEqualTo:
|
||||
return m_Integer1.Value <= m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.EqualTo:
|
||||
return m_Integer1.Value == m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.NotEqualTo:
|
||||
return m_Integer1.Value != m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.GreaterThanOrEqualTo:
|
||||
return m_Integer1.Value >= m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
case Operation.GreaterThan:
|
||||
return m_Integer1.Value > m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
return TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a375a939d653fe147a5a14a0c2bef1ff
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,32 +0,0 @@
|
||||
#if GRAPH_DESIGNER
|
||||
/// ---------------------------------------------
|
||||
/// Behavior Designer
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math
|
||||
{
|
||||
using Opsive.GraphDesigner.Runtime;
|
||||
using Opsive.GraphDesigner.Runtime.Variables;
|
||||
using UnityEngine;
|
||||
|
||||
[Opsive.Shared.Utility.Description("Compares two Vector2 values.")]
|
||||
[Shared.Utility.Category("Math")]
|
||||
public class Vector2Comparison : Conditional
|
||||
{
|
||||
[Tooltip("The first Vector2.")]
|
||||
[SerializeField] protected SharedVariable<Vector2> m_Vector1;
|
||||
[Tooltip("The second Vector2.")]
|
||||
[SerializeField] protected SharedVariable<Vector2> m_Vector2;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the task.
|
||||
/// </summary>
|
||||
/// <returns>The execution status of the task.</returns>
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
return m_Vector1.Value == m_Vector2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c2b3d80126bb1f4d861fd3179310f4e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,32 +0,0 @@
|
||||
#if GRAPH_DESIGNER
|
||||
/// ---------------------------------------------
|
||||
/// Behavior Designer
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math
|
||||
{
|
||||
using Opsive.GraphDesigner.Runtime;
|
||||
using Opsive.GraphDesigner.Runtime.Variables;
|
||||
using UnityEngine;
|
||||
|
||||
[Opsive.Shared.Utility.Description("Compares two Vector3 values.")]
|
||||
[Shared.Utility.Category("Math")]
|
||||
public class Vector3Comparison : Conditional
|
||||
{
|
||||
[Tooltip("The first Vector3.")]
|
||||
[SerializeField] protected SharedVariable<Vector3> m_Vector1;
|
||||
[Tooltip("The second Vector3.")]
|
||||
[SerializeField] protected SharedVariable<Vector3> m_Vector2;
|
||||
|
||||
/// <summary>
|
||||
/// Executes the task.
|
||||
/// </summary>
|
||||
/// <returns>The execution status of the task.</returns>
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
return m_Vector1.Value == m_Vector2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56a06b56642c23e41be3a6ed24331bc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user