summaryrefslogtreecommitdiff
path: root/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug')
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs30
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs30
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta8
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs24
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta8
6 files changed, 108 insertions, 0 deletions
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs
new file mode 100644
index 00000000..2c5429fa
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs
@@ -0,0 +1,30 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
+{
+ [TaskCategory("Basic/Debug")]
+ [TaskDescription("Draws a debug line")]
+ public class DrawLine : Action
+ {
+ [Tooltip("The start position")]
+ public SharedVector3 start;
+ [Tooltip("The end position")]
+ public SharedVector3 end;
+ [Tooltip("The color")]
+ public SharedColor color = Color.white;
+
+ public override TaskStatus OnUpdate()
+ {
+ Debug.DrawLine(start.Value, end.Value, color.Value);
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ start = Vector3.zero;
+ end = Vector3.zero;
+ color = Color.white;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta
new file mode 100644
index 00000000..224373d4
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 66a533f4f027ab44bb35e498d761ce50
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs
new file mode 100644
index 00000000..81aa823f
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs
@@ -0,0 +1,30 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
+{
+ [TaskCategory("Basic/Debug")]
+ [TaskDescription("Draws a debug ray")]
+ public class DrawRay : Action
+ {
+ [Tooltip("The position")]
+ public SharedVector3 start;
+ [Tooltip("The direction")]
+ public SharedVector3 direction;
+ [Tooltip("The color")]
+ public SharedColor color = Color.white;
+
+ public override TaskStatus OnUpdate()
+ {
+ Debug.DrawRay(start.Value, direction.Value, color.Value);
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ start = Vector3.zero;
+ direction = Vector3.zero;
+ color = Color.white;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta
new file mode 100644
index 00000000..8490bb34
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 786ac0c09ce982e43b444670fdfe4c74
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs
new file mode 100644
index 00000000..73605da8
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs
@@ -0,0 +1,24 @@
+using UnityEngine;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
+{
+ [TaskCategory("Basic/Debug")]
+ [TaskDescription("Log a variable value.")]
+ public class LogValue : Action
+ {
+ [Tooltip("The variable to output")]
+ public SharedGenericVariable variable;
+
+ public override TaskStatus OnUpdate()
+ {
+ Debug.Log(variable.Value.value.GetValue());
+
+ return TaskStatus.Success;
+ }
+
+ public override void OnReset()
+ {
+ variable = null;
+ }
+ }
+} \ No newline at end of file
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta
new file mode 100644
index 00000000..03ab4247
--- /dev/null
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c50983a88995f4f4197f7b39ca796667
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData: