From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Runtime/Basic Tasks/Rigidbody2D/AddForce.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/AddForce.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/AddForceAtPosition.cs | 47 ---------------------- .../Rigidbody2D/AddForceAtPosition.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/AddTorque.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/GetAngularDrag.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/GetAngularVelocity.cs | 45 --------------------- .../Rigidbody2D/GetAngularVelocity.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetDrag.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/GetGravtyScale.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/GetIsKinematic.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/GetMass.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetMass.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetPosition.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetRotation.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/GetVelocity.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs | 39 ------------------ .../Basic Tasks/Rigidbody2D/IsKinematic.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs | 39 ------------------ .../Basic Tasks/Rigidbody2D/IsSleeping.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/MovePosition.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/MovePosition.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/MoveRotation.cs | 45 --------------------- .../Basic Tasks/Rigidbody2D/MoveRotation.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/SetAngularDrag.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/SetAngularVelocity.cs | 44 -------------------- .../Rigidbody2D/SetAngularVelocity.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/SetDrag.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/SetGravityScale.cs | 44 -------------------- .../Rigidbody2D/SetGravityScale.cs.meta | 8 ---- .../Basic Tasks/Rigidbody2D/SetIsKinematic.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/SetMass.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/SetMass.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs | 44 -------------------- .../Basic Tasks/Rigidbody2D/SetVelocity.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/Sleep.cs | 41 ------------------- .../Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta | 8 ---- .../Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs | 41 ------------------- .../Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta | 8 ---- 50 files changed, 1298 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D') diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs deleted file mode 100644 index bc084e41..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Applies a force to the Rigidbody2D. Returns Success.")] - public class AddForce : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The amount of force to apply")] - public SharedVector2 force; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.AddForce(force.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - force = Vector2.zero; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta deleted file mode 100644 index 3f52d151..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9ea79154ee01cf441a9744c877542a1f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs deleted file mode 100644 index c1a187c6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Applies a force at the specified position to the Rigidbody2D. Returns Success.")] - public class AddForceAtPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The amount of force to apply")] - public SharedVector2 force; - [Tooltip("The position of the force")] - public SharedVector2 position; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.AddForceAtPosition(force.Value, position.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - force = Vector2.zero; - position = Vector2.zero; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta deleted file mode 100644 index e1edb20c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: dd82f0f77306bad46bae7944a5c66664 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs deleted file mode 100644 index 9f065e34..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Applies a torque to the Rigidbody2D. Returns Success.")] - public class AddTorque : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The amount of torque to apply")] - public SharedFloat torque; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.AddTorque(torque.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - torque = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta deleted file mode 100644 index d79e4975..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cc561d806d4518044becff628e148424 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs deleted file mode 100644 index 17080d53..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the angular drag of the Rigidbody2D. Returns Success.")] - public class GetAngularDrag : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular drag of the Rigidbody2D")] - [RequiredField] - public SharedFloat storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.angularDrag; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta deleted file mode 100644 index 4aefa782..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 10833270578d69041b561c5126bb31f2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs deleted file mode 100644 index 17be28db..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the angular velocity of the Rigidbody2D. Returns Success.")] - public class GetAngularVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular velocity of the Rigidbody2D")] - [RequiredField] - public SharedFloat storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.angularVelocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta deleted file mode 100644 index 15cae45b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 68ac62a9384c11245a850220f1bc72b8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs deleted file mode 100644 index b01bf9a2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the drag of the Rigidbody2D. Returns Success.")] - public class GetDrag : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The drag of the Rigidbody2D")] - [RequiredField] - public SharedFloat storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.drag; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta deleted file mode 100644 index 872fb557..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6e39198e5d65d514185f2816cced7c7b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs deleted file mode 100644 index 9b1ef3a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the gravity scale of the Rigidbody2D. Returns Success.")] - public class GetGravityScale : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The gravity scale of the Rigidbody2D")] - [RequiredField] - public SharedFloat storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.gravityScale; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta deleted file mode 100644 index ee205b51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e2d17fb9baea6554082f2edc46483e8c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs deleted file mode 100644 index 94221a04..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the is kinematic value of the Rigidbody2D. Returns Success.")] - public class GetIsKinematic : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The is kinematic value of the Rigidbody2D")] - [RequiredField] - public SharedBool storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.isKinematic; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta deleted file mode 100644 index 10f9161a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 66c6175d42bd49e48be458378e0a7875 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs deleted file mode 100644 index 245f2b9e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the mass of the Rigidbody2D. Returns Success.")] - public class GetMass : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The mass of the Rigidbody2D")] - [RequiredField] - public SharedFloat storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.mass; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta deleted file mode 100644 index d9588541..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 72d52ef5efe5e974994c91279536555e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs deleted file mode 100644 index b22333ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the position of the Rigidbody2D. Returns Success.")] - public class GetPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The velocity of the Rigidbody2D")] - [RequiredField] - public SharedVector2 storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.position; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta deleted file mode 100644 index 00083e0e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 98dff23734f3a834cbf5ccf87c9904f7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs deleted file mode 100644 index 061646e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the rotation of the Rigidbody2D. Returns Success.")] - public class GetRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The rotation of the Rigidbody2D")] - [RequiredField] - public SharedFloat storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.rotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta deleted file mode 100644 index 6be4219c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a7d82ab7ef780f34cb5df06366b0bdbf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs deleted file mode 100644 index bbba8a51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Stores the velocity of the Rigidbody2D. Returns Success.")] - public class GetVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The velocity of the Rigidbody2D")] - [RequiredField] - public SharedVector2 storeValue; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody2D.velocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector2.zero; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta deleted file mode 100644 index d92cc9fd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 13009f7b6ee1bc04884442484a065cc3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs deleted file mode 100644 index 9bccbaef..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Returns Success if the Rigidbody2D is kinematic, otherwise Failure.")] - public class IsKinematic : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - return rigidbody2D.isKinematic ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta deleted file mode 100644 index edf168f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 47d2e6e60a2251c41a2c548dc9a8c922 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs deleted file mode 100644 index d010d1cc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Returns Success if the Rigidbody2D is sleeping, otherwise Failure.")] - public class IsSleeping : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - return rigidbody2D.IsSleeping() ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta deleted file mode 100644 index 3b38a447..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 52859810158277a4a917e70a834a82a5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs deleted file mode 100644 index 5ce7edbc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Moves the Rigidbody2D to the specified position. Returns Success.")] - public class MovePosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The new position of the Rigidbody")] - public SharedVector2 position; - - // cache the rigidbody component - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody2D.MovePosition(position.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta deleted file mode 100644 index 79762af7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3e72fab171287194ea2d8eb2aa239cd4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs deleted file mode 100644 index e0b221a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Rotates the Rigidbody2D to the specified rotation. Returns Success.")] - public class MoveRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The new rotation of the Rigidbody")] - public SharedFloat rotation; - - // cache the rigidbody component - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody2D.MoveRotation(rotation.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rotation = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta deleted file mode 100644 index 09bb16a9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 38b0095c420511f4b9ed263b1b5c6054 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs deleted file mode 100644 index 3bb17e07..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the angular drag of the Rigidbody2D. Returns Success.")] - public class SetAngularDrag : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular drag of the Rigidbody2D")] - public SharedFloat angularDrag; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.angularDrag = angularDrag.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularDrag = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta deleted file mode 100644 index 1ec92fe3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1717a737318274e4caa244f86c908851 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs deleted file mode 100644 index 9fc45f3d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the angular velocity of the Rigidbody2D. Returns Success.")] - public class SetAngularVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular velocity of the Rigidbody2D")] - public SharedFloat angularVelocity; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.angularVelocity = angularVelocity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularVelocity = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta deleted file mode 100644 index a559685e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c73dfb332d90cbe4280c21fafa59e2fa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs deleted file mode 100644 index 1530cc07..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the drag of the Rigidbody2D. Returns Success.")] - public class SetDrag : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The drag of the Rigidbody2D")] - public SharedFloat drag; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.drag = drag.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - drag = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta deleted file mode 100644 index 96d06ce2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3148efd94c23d634a9f02cc9c808de80 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs deleted file mode 100644 index a6ce28a4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the gravity scale of the Rigidbody2D. Returns Success.")] - public class SetGravityScale : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The gravity scale of the Rigidbody2D")] - public SharedFloat gravityScale; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.gravityScale = gravityScale.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - gravityScale = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta deleted file mode 100644 index 516e6ac5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ac896135858701649bcaffc7ef00637f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs deleted file mode 100644 index c8e2563e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the is kinematic value of the Rigidbody2D. Returns Success.")] - public class SetIsKinematic : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The is kinematic value of the Rigidbody2D")] - public SharedBool isKinematic; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.isKinematic = isKinematic.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - isKinematic = false; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta deleted file mode 100644 index ff7f5f2c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b7c96d64d821e304a8c67c031565d902 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs deleted file mode 100644 index c218e087..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the mass of the Rigidbody2D. Returns Success.")] - public class SetMass : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The mass of the Rigidbody2D")] - public SharedFloat mass; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.mass = mass.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - mass = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta deleted file mode 100644 index 042c36e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: facbfd14ece02214889d587f06215105 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs deleted file mode 100644 index 7f1f782a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Sets the velocity of the Rigidbody2D. Returns Success.")] - public class SetVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The velocity of the Rigidbody2D")] - public SharedVector2 velocity; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.velocity = velocity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - velocity = Vector2.zero; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta deleted file mode 100644 index a78bc24c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5830960da4f9a3148ba5d8cd87228748 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs deleted file mode 100644 index 9357826c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Forces the Rigidbody2D to sleep at least one frame. Returns Success.")] - public class Sleep : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.Sleep(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta deleted file mode 100644 index 9e50b4e1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7e24fd00ca72fda48a132dc9bfa71070 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs deleted file mode 100644 index 66a3318d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D -{ - [TaskCategory("Basic/Rigidbody2D")] - [TaskDescription("Forces the Rigidbody2D to wake up. Returns Success.")] - public class WakeUp : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Rigidbody2D rigidbody2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody2D == null) { - Debug.LogWarning("Rigidbody2D is null"); - return TaskStatus.Failure; - } - - rigidbody2D.WakeUp(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta deleted file mode 100644 index ce6821bb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 954f1f9c196c39345b2fd389516ad613 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -- cgit v1.1-26-g67d0