diff options
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs')
-rw-r--r-- | Client/Assets/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs | 24 |
1 files changed, 24 insertions, 0 deletions
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 |