summaryrefslogtreecommitdiff
path: root/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables')
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs30
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs33
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs30
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs33
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs30
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs33
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs25
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs27
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs28
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs32
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs41
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs32
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs41
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta8
72 files changed, 1320 insertions, 0 deletions
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs
new file mode 100644
index 00000000..a1695f2e
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedBool : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedBool variable;
+ [Tooltip("The variable to compare to")]
+ public SharedBool compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = false;
+ compareTo = false;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta
new file mode 100644
index 00000000..1e856966
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ba0766a97c2e5c94fbc49d8cb1dea8e3
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs
new file mode 100644
index 00000000..58e23442
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedColor : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedColor variable;
+ [Tooltip("The variable to compare to")]
+ public SharedColor compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = Color.black;
+ compareTo = Color.black;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta
new file mode 100644
index 00000000..2a8f288a
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c9e83747d98bd064b9a5ad62b36d7657
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs
new file mode 100644
index 00000000..a2434fe0
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedFloat : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedFloat variable;
+ [Tooltip("The variable to compare to")]
+ public SharedFloat compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = 0;
+ compareTo = 0;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta
new file mode 100644
index 00000000..42430338
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 6925a99e92b6d804db1f4b607e7501d3
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs
new file mode 100644
index 00000000..fda37a7e
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs
@@ -0,0 +1,30 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedGameObject : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedGameObject variable;
+ [Tooltip("The variable to compare to")]
+ public SharedGameObject compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (variable.Value == null && compareTo.Value != null)
+ return TaskStatus.Failure;
+ if (variable.Value == null && compareTo.Value == null)
+ return TaskStatus.Success;
+
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ compareTo = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta
new file mode 100644
index 00000000..b0e3b516
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: daa5c3b8a325bcd4bb3da10a6715f6d0
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs
new file mode 100644
index 00000000..b483e9a1
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs
@@ -0,0 +1,33 @@
+using UnityEngine;
+using System.Linq;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedGameObjectList : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedGameObjectList variable;
+ [Tooltip("The variable to compare to")]
+ public SharedGameObjectList compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (variable.Value == null && compareTo.Value != null)
+ return TaskStatus.Failure;
+ if (variable.Value == null && compareTo.Value == null)
+ return TaskStatus.Success;
+ if (variable.Value.Count != compareTo.Value.Count)
+ return TaskStatus.Failure;
+
+ return variable.Value.Except(compareTo.Value).Count() > 0 ? TaskStatus.Failure : TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ compareTo = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta
new file mode 100644
index 00000000..6db560f6
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: a2b81932d36a0be4fba0868f7ed3e53c
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs
new file mode 100644
index 00000000..65841a88
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedInt : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedInt variable;
+ [Tooltip("The variable to compare to")]
+ public SharedInt compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = 0;
+ compareTo = 0;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta
new file mode 100644
index 00000000..0ea01290
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 40307a4117777b4479a1402fd67811ff
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs
new file mode 100644
index 00000000..b53daf88
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs
@@ -0,0 +1,30 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedObject : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedObject variable;
+ [Tooltip("The variable to compare to")]
+ public SharedObject compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (variable.Value == null && compareTo.Value != null)
+ return TaskStatus.Failure;
+ if (variable.Value == null && compareTo.Value == null)
+ return TaskStatus.Success;
+
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ compareTo = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta
new file mode 100644
index 00000000..08e55c50
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 66a9105498519ae4082d9ac7adcf5da4
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs
new file mode 100644
index 00000000..aa3bdd2c
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs
@@ -0,0 +1,33 @@
+using UnityEngine;
+using System.Linq;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedObjectList : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedObjectList variable;
+ [Tooltip("The variable to compare to")]
+ public SharedObjectList compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (variable.Value == null && compareTo.Value != null)
+ return TaskStatus.Failure;
+ if (variable.Value == null && compareTo.Value == null)
+ return TaskStatus.Success;
+ if (variable.Value.Count != compareTo.Value.Count)
+ return TaskStatus.Failure;
+
+ return variable.Value.Except(compareTo.Value).Count() > 0 ? TaskStatus.Failure : TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ compareTo = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta
new file mode 100644
index 00000000..0183b3f4
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ac4cab9acc737904885d379388e83950
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs
new file mode 100644
index 00000000..9a17ec10
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedQuaternion : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedQuaternion variable;
+ [Tooltip("The variable to compare to")]
+ public SharedQuaternion compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = Quaternion.identity;
+ compareTo = Quaternion.identity;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta
new file mode 100644
index 00000000..a5b7ad50
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 101b2ac215bf58149ab91be3b55d5145
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs
new file mode 100644
index 00000000..ccbe413b
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedRect : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedRect variable;
+ [Tooltip("The variable to compare to")]
+ public SharedRect compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = new Rect();
+ compareTo = new Rect();
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta
new file mode 100644
index 00000000..975e83ed
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: d73d97622bbe61d4c91f9b4cacb3e0c2
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs
new file mode 100644
index 00000000..9d9bd961
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedString : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedString variable;
+ [Tooltip("The variable to compare to")]
+ public SharedString compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = "";
+ compareTo = "";
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta
new file mode 100644
index 00000000..19000027
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 8b1a3248c84732345914404e47a55fcc
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs
new file mode 100644
index 00000000..34c35cf2
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs
@@ -0,0 +1,30 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedTransform : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedTransform variable;
+ [Tooltip("The variable to compare to")]
+ public SharedTransform compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (variable.Value == null && compareTo.Value != null)
+ return TaskStatus.Failure;
+ if (variable.Value == null && compareTo.Value == null)
+ return TaskStatus.Success;
+
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ compareTo = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta
new file mode 100644
index 00000000..ecaf052e
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: a21f70566ff2afc4e95454d3d658c1fa
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs
new file mode 100644
index 00000000..b245b344
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs
@@ -0,0 +1,33 @@
+using UnityEngine;
+using System.Linq;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedTransformList : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedTransformList variable;
+ [Tooltip("The variable to compare to")]
+ public SharedTransformList compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (variable.Value == null && compareTo.Value != null)
+ return TaskStatus.Failure;
+ if (variable.Value == null && compareTo.Value == null)
+ return TaskStatus.Success;
+ if (variable.Value.Count != compareTo.Value.Count)
+ return TaskStatus.Failure;
+
+ return variable.Value.Except(compareTo.Value).Count() > 0 ? TaskStatus.Failure : TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ compareTo = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta
new file mode 100644
index 00000000..fb7a667a
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 8ea22243f4fc22946a0033142f3a2380
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs
new file mode 100644
index 00000000..c419b558
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedVector2 : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedVector2 variable;
+ [Tooltip("The variable to compare to")]
+ public SharedVector2 compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = Vector2.zero;
+ compareTo = Vector2.zero;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta
new file mode 100644
index 00000000..1952f213
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ce90fa6ac7a64b044936fa647e5f0e80
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs
new file mode 100644
index 00000000..03c89378
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedVector3 : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedVector3 variable;
+ [Tooltip("The variable to compare to")]
+ public SharedVector3 compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = Vector3.zero;
+ compareTo = Vector3.zero;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta
new file mode 100644
index 00000000..b9ea65fc
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 617192db87511d844940d400c960d13d
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs
new file mode 100644
index 00000000..e502fe99
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
+ public class CompareSharedVector4 : Conditional
+ {
+ [Tooltip("The first variable to compare")]
+ public SharedVector4 variable;
+ [Tooltip("The variable to compare to")]
+ public SharedVector4 compareTo;
+
+ public override TaskStatus OnUpdate()
+ {
+ return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
+ }
+
+ public override void OnReset()
+ {
+ variable = Vector4.zero;
+ compareTo = Vector4.zero;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta
new file mode 100644
index 00000000..119336b2
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 9738be23ad39d2c4ba8adc018b545ece
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs
new file mode 100644
index 00000000..4f5566ac
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedBool variable to the specified object. Returns Success.")]
+ public class SetSharedBool : Action
+ {
+ [Tooltip("The value to set the SharedBool to")]
+ public SharedBool targetValue;
+ [RequiredField]
+ [Tooltip("The SharedBool to set")]
+ public SharedBool targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = false;
+ targetVariable = false;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta
new file mode 100644
index 00000000..251b180c
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 54f63c79d78692a4e84e502f7cd705a6
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs
new file mode 100644
index 00000000..120bdb1a
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedColor variable to the specified object. Returns Success.")]
+ public class SetSharedColor : Action
+ {
+ [Tooltip("The value to set the SharedColor to")]
+ public SharedColor targetValue;
+ [RequiredField]
+ [Tooltip("The SharedColor to set")]
+ public SharedColor targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = Color.black;
+ targetVariable = Color.black;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta
new file mode 100644
index 00000000..7132dddb
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 48c49264be0e7244ba46b8c970027a20
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs
new file mode 100644
index 00000000..49ed89a4
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedFloat variable to the specified object. Returns Success.")]
+ public class SetSharedFloat : Action
+ {
+ [Tooltip("The value to set the SharedFloat to")]
+ public SharedFloat targetValue;
+ [RequiredField]
+ [Tooltip("The SharedFloat to set")]
+ public SharedFloat targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = 0;
+ targetVariable = 0;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta
new file mode 100644
index 00000000..5f1588ba
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 4d5b15c88fb154446b9b1ad90cb3987f
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs
new file mode 100644
index 00000000..7db27528
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedGameObject variable to the specified object. Returns Success.")]
+ public class SetSharedGameObject : Action
+ {
+ [Tooltip("The value to set the SharedGameObject to. If null the variable will be set to the current GameObject")]
+ public SharedGameObject targetValue;
+ [RequiredField]
+ [Tooltip("The SharedGameObject to set")]
+ public SharedGameObject targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = (targetValue.Value != null ? targetValue.Value : gameObject);
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = null;
+ targetVariable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta
new file mode 100644
index 00000000..859f7776
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: bf4af224a0ebd5946bc4f01f18d0627b
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs
new file mode 100644
index 00000000..d9633d7c
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedGameObjectList variable to the specified object. Returns Success.")]
+ public class SetSharedGameObjectList : Action
+ {
+ [Tooltip("The value to set the SharedGameObjectList to.")]
+ public SharedGameObjectList targetValue;
+ [RequiredField]
+ [Tooltip("The SharedGameObjectList to set")]
+ public SharedGameObjectList targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = null;
+ targetVariable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta
new file mode 100644
index 00000000..f5b14ddc
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: b02b163c1dc1b894ca53f80378e39b26
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs
new file mode 100644
index 00000000..712bf26e
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedInt variable to the specified object. Returns Success.")]
+ public class SetSharedInt : Action
+ {
+ [Tooltip("The value to set the SharedInt to")]
+ public SharedInt targetValue;
+ [RequiredField]
+ [Tooltip("The SharedInt to set")]
+ public SharedInt targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = 0;
+ targetVariable = 0;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta
new file mode 100644
index 00000000..279e8dba
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 742d2b1426f291e45b03bcf845c53a67
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs
new file mode 100644
index 00000000..19bf9a50
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedObject variable to the specified object. Returns Success.")]
+ public class SetSharedObject : Action
+ {
+ [Tooltip("The value to set the SharedObject to")]
+ public SharedObject targetValue;
+ [RequiredField]
+ [Tooltip("The SharedTransform to set")]
+ public SharedObject targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = null;
+ targetVariable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta
new file mode 100644
index 00000000..f779b22c
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: f80da138a03cfdd4e98af96ed5f6681b
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs
new file mode 100644
index 00000000..d74ffa45
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedObjectList variable to the specified object. Returns Success.")]
+ public class SetSharedObjectList : Action
+ {
+ [Tooltip("The value to set the SharedObjectList to.")]
+ public SharedObjectList targetValue;
+ [RequiredField]
+ [Tooltip("The SharedObjectList to set")]
+ public SharedObjectList targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = null;
+ targetVariable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta
new file mode 100644
index 00000000..0a74168d
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: b5c211b64a2cf364e99b99dab3ce3c87
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs
new file mode 100644
index 00000000..7f4e95da
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs
@@ -0,0 +1,27 @@
+using UnityEngine;
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedQuaternion variable to the specified object. Returns Success.")]
+ public class SetSharedQuaternion : Action
+ {
+ [Tooltip("The value to set the SharedQuaternion to")]
+ public SharedQuaternion targetValue;
+ [RequiredField]
+ [Tooltip("The SharedQuaternion to set")]
+ public SharedQuaternion targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = Quaternion.identity;
+ targetVariable = Quaternion.identity;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta
new file mode 100644
index 00000000..c5975461
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 42f84705fc5571e4088098d1239b5f46
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs
new file mode 100644
index 00000000..bcef0665
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedRect variable to the specified object. Returns Success.")]
+ public class SetSharedRect : Action
+ {
+ [Tooltip("The value to set the SharedRect to")]
+ public SharedRect targetValue;
+ [RequiredField]
+ [Tooltip("The SharedRect to set")]
+ public SharedRect targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = new Rect();
+ targetVariable = new Rect();
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta
new file mode 100644
index 00000000..97568cdc
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 7313c7640a9d92b4294a7702b3c5339b
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs
new file mode 100644
index 00000000..b824735f
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedString variable to the specified object. Returns Success.")]
+ public class SetSharedString : Action
+ {
+ [Tooltip("The value to set the SharedString to")]
+ public SharedString targetValue;
+ [RequiredField]
+ [Tooltip("The SharedString to set")]
+ public SharedString targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = "";
+ targetVariable = "";
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta
new file mode 100644
index 00000000..c36a773e
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 92060068b2f07c54f930e1b8a8976c11
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs
new file mode 100644
index 00000000..e1f46c80
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedTransform variable to the specified object. Returns Success.")]
+ public class SetSharedTransform : Action
+ {
+ [Tooltip("The value to set the SharedTransform to. If null the variable will be set to the current Transform")]
+ public SharedTransform targetValue;
+ [RequiredField]
+ [Tooltip("The SharedTransform to set")]
+ public SharedTransform targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = (targetValue.Value != null ? targetValue.Value : transform);
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = null;
+ targetVariable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta
new file mode 100644
index 00000000..dee1b887
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 78e7da45e8b6c2e4cbbf4fdf474070e5
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs
new file mode 100644
index 00000000..382de932
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedTransformList variable to the specified object. Returns Success.")]
+ public class SetSharedTransformList : Action
+ {
+ [Tooltip("The value to set the SharedTransformList to.")]
+ public SharedTransformList targetValue;
+ [RequiredField]
+ [Tooltip("The SharedTransformList to set")]
+ public SharedTransformList targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = null;
+ targetVariable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta
new file mode 100644
index 00000000..11b0bb2a
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: fae9cd59e50283949a2cc8ec460ffafe
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs
new file mode 100644
index 00000000..6c086a23
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedVector2 variable to the specified object. Returns Success.")]
+ public class SetSharedVector2 : Action
+ {
+ [Tooltip("The value to set the SharedVector2 to")]
+ public SharedVector2 targetValue;
+ [RequiredField]
+ [Tooltip("The SharedVector2 to set")]
+ public SharedVector2 targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = Vector2.zero;
+ targetVariable = Vector2.zero;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta
new file mode 100644
index 00000000..b9b672f9
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c70cf248c723950409d74c11d0781c06
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs
new file mode 100644
index 00000000..ef2ae959
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedVector3 variable to the specified object. Returns Success.")]
+ public class SetSharedVector3 : Action
+ {
+ [Tooltip("The value to set the SharedVector3 to")]
+ public SharedVector3 targetValue;
+ [RequiredField]
+ [Tooltip("The SharedVector3 to set")]
+ public SharedVector3 targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = Vector3.zero;
+ targetVariable = Vector3.zero;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta
new file mode 100644
index 00000000..6b80394d
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 281820e8b30038d48b4fa8f25728e6c3
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs
new file mode 100644
index 00000000..a9a97753
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs
@@ -0,0 +1,28 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedVector4 variable to the specified object. Returns Success.")]
+ public class SetSharedVector4 : Action
+ {
+ [Tooltip("The value to set the SharedVector4 to")]
+ public SharedVector4 targetValue;
+ [RequiredField]
+ [Tooltip("The SharedVector4 to set")]
+ public SharedVector4 targetVariable;
+
+ public override TaskStatus OnUpdate()
+ {
+ targetVariable.Value = targetValue.Value;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ targetValue = Vector4.zero;
+ targetVariable = Vector4.zero;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta
new file mode 100644
index 00000000..501d083c
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 5ca30d99da0685a4fa32d79624a5c0a0
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs
new file mode 100644
index 00000000..e24d8835
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs
@@ -0,0 +1,32 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Gets the Transform from the GameObject. Returns Success.")]
+ public class SharedGameObjectToTransform : Action
+ {
+ [Tooltip("The GameObject to get the Transform of")]
+ public SharedGameObject sharedGameObject;
+ [RequiredField]
+ [Tooltip("The Transform to set")]
+ public SharedTransform sharedTransform;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (sharedGameObject.Value == null) {
+ return TaskStatus.Failure;
+ }
+
+ sharedTransform.Value = sharedGameObject.Value.GetComponent<Transform>();
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ sharedGameObject = null;
+ sharedTransform = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta
new file mode 100644
index 00000000..58b9caa8
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c08dcd1e915bef6448649ffe4d3bef3d
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs
new file mode 100644
index 00000000..5849ac45
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs
@@ -0,0 +1,41 @@
+using UnityEngine;
+using System.Collections.Generic;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedGameObjectList values from the GameObjects. Returns Success.")]
+ public class SharedGameObjectsToGameObjectList : Action
+ {
+ [Tooltip("The GameObjects value")]
+ public SharedGameObject[] gameObjects;
+ [RequiredField]
+ [Tooltip("The SharedTransformList to set")]
+ public SharedGameObjectList storedGameObjectList;
+
+ public override void OnAwake()
+ {
+ storedGameObjectList.Value = new List<GameObject>();
+ }
+
+ public override TaskStatus OnUpdate()
+ {
+ if (gameObjects == null || gameObjects.Length == 0) {
+ return TaskStatus.Failure;
+ }
+
+ storedGameObjectList.Value.Clear();
+ for (int i = 0; i < gameObjects.Length; ++i) {
+ storedGameObjectList.Value.Add(gameObjects[i].Value);
+ }
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ gameObjects = null;
+ storedGameObjectList = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta
new file mode 100644
index 00000000..4d5c325a
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 4460871f1a9671343896ef9e56d9ceab
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs
new file mode 100644
index 00000000..bc8d10ba
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs
@@ -0,0 +1,32 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Gets the GameObject from the Transform component. Returns Success.")]
+ public class SharedTransformToGameObject : Action
+ {
+ [Tooltip("The Transform component")]
+ public SharedTransform sharedTransform;
+ [RequiredField]
+ [Tooltip("The GameObject to set")]
+ public SharedGameObject sharedGameObject;
+
+ public override TaskStatus OnUpdate()
+ {
+ if (sharedTransform.Value == null) {
+ return TaskStatus.Failure;
+ }
+
+ sharedGameObject.Value = sharedTransform.Value.gameObject;
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ sharedTransform = null;
+ sharedGameObject = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta
new file mode 100644
index 00000000..a5bb06c3
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: f2fd208ea1a8e1642a32148186f9e077
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs
new file mode 100644
index 00000000..06ed2690
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs
@@ -0,0 +1,41 @@
+using UnityEngine;
+using System.Collections.Generic;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
+{
+ [TaskCategory("Basic/SharedVariable")]
+ [TaskDescription("Sets the SharedTransformList values from the Transforms. Returns Success.")]
+ public class SharedTransformsToTransformList : Action
+ {
+ [Tooltip("The Transforms value")]
+ public SharedTransform[] transforms;
+ [RequiredField]
+ [Tooltip("The SharedTransformList to set")]
+ public SharedTransformList storedTransformList;
+
+ public override void OnAwake()
+ {
+ storedTransformList.Value = new List<Transform>();
+ }
+
+ public override TaskStatus OnUpdate()
+ {
+ if (transforms == null || transforms.Length == 0) {
+ return TaskStatus.Failure;
+ }
+
+ storedTransformList.Value.Clear();
+ for (int i = 0; i < transforms.Length; ++i) {
+ storedTransformList.Value.Add(transforms[i].Value);
+ }
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ transforms = null;
+ storedTransformList = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta
new file mode 100644
index 00000000..5aa0a81e
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 3533c6733499e9446b1eae98c8fcaeea
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData: