diff --git a/Assets/External/Behavior Designer.meta b/Assets/External/Behavior Designer.meta deleted file mode 100644 index 850cf77a6..000000000 --- a/Assets/External/Behavior Designer.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 7b303277dfa449d4a93437535228816d -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Documentation.pdf b/Assets/External/Behavior Designer/Documentation.pdf deleted file mode 100644 index de5ce33f3..000000000 Binary files a/Assets/External/Behavior Designer/Documentation.pdf and /dev/null differ diff --git a/Assets/External/Behavior Designer/Documentation.pdf.meta b/Assets/External/Behavior Designer/Documentation.pdf.meta deleted file mode 100644 index dea6200ee..000000000 --- a/Assets/External/Behavior Designer/Documentation.pdf.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4646946da2762db46a08e76a6c42f832 -DefaultImporter: - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Documentation.pdf - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor.meta b/Assets/External/Behavior Designer/Editor.meta deleted file mode 100644 index 8584cfce3..000000000 --- a/Assets/External/Behavior Designer/Editor.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 3aa7d582439bc2f4da8254d1364e0f41 diff --git a/Assets/External/Behavior Designer/Editor/BehaviorDesigner.Editor.dll b/Assets/External/Behavior Designer/Editor/BehaviorDesigner.Editor.dll deleted file mode 100644 index be4fff670..000000000 --- a/Assets/External/Behavior Designer/Editor/BehaviorDesigner.Editor.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfe1e4af81fdfc8093cb38ebbc4c55c36c5f35a2dbcad44640c3f94f4eb52fed -size 1974784 diff --git a/Assets/External/Behavior Designer/Editor/BehaviorTreeInspector.cs b/Assets/External/Behavior Designer/Editor/BehaviorTreeInspector.cs deleted file mode 100644 index aa1021dfd..000000000 --- a/Assets/External/Behavior Designer/Editor/BehaviorTreeInspector.cs +++ /dev/null @@ -1,11 +0,0 @@ -using UnityEditor; -using BehaviorDesigner.Runtime; - -namespace BehaviorDesigner.Editor -{ - [CustomEditor(typeof(BehaviorTree))] - public class BehaviorTreeInspector : BehaviorInspector - { - // intentionally left blank - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta b/Assets/External/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta deleted file mode 100644 index 34c5debba..000000000 --- a/Assets/External/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 94693c6931cea70439c26417a1fc0d33 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/BehaviorTreeInspector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs b/Assets/External/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs deleted file mode 100644 index 24da0b8cc..000000000 --- a/Assets/External/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; -using UnityEditor; -using BehaviorDesigner.Runtime; - -namespace BehaviorDesigner.Editor -{ - [CustomEditor(typeof(ExternalBehaviorTree))] - public class ExternalBehaviorTreeInspector : ExternalBehaviorInspector - { - // intentionally left blank - } -} diff --git a/Assets/External/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta b/Assets/External/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta deleted file mode 100644 index c227dbd34..000000000 --- a/Assets/External/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1f0cb79f53e760c4d950b8c6ade6a242 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor/GridShader.shader b/Assets/External/Behavior Designer/Editor/GridShader.shader deleted file mode 100644 index 8fe5b740e..000000000 --- a/Assets/External/Behavior Designer/Editor/GridShader.shader +++ /dev/null @@ -1,44 +0,0 @@ -Shader "Hidden/Behavior Designer/Grid" { - SubShader { - Pass { - CGPROGRAM - #pragma vertex vert_img - #pragma fragment frag - #include "UnityCG.cginc" - fixed4 frag(v2f_img i) : Color { - return fixed4(0.21, 0.21, 0.21, 1); - } - ENDCG - } - Pass { - CGPROGRAM - #pragma vertex vert_img - #pragma fragment frag - #include "UnityCG.cginc" - fixed4 frag(v2f_img i) : Color { - return fixed4(0.33, 0.33, 0.33, 1); - } - ENDCG - } - Pass { - CGPROGRAM - #pragma vertex vert_img - #pragma fragment frag - #include "UnityCG.cginc" - fixed4 frag(v2f_img i) : Color { - return fixed4(0.26, 0.26, 0.26, 1); - } - ENDCG - } - Pass { - CGPROGRAM - #pragma vertex vert_img - #pragma fragment frag - #include "UnityCG.cginc" - fixed4 frag(v2f_img i) : Color { - return fixed4(0.27, 0.27, 0.27, 1); - } - ENDCG - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Editor/GridShader.shader.meta b/Assets/External/Behavior Designer/Editor/GridShader.shader.meta deleted file mode 100644 index fa4f4fd02..000000000 --- a/Assets/External/Behavior Designer/Editor/GridShader.shader.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: afbd9f0fb1c22d1409403fdef158479f -ShaderImporter: - defaultTextures: [] - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/GridShader.shader - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers.meta b/Assets/External/Behavior Designer/Editor/Object Drawers.meta deleted file mode 100644 index a7ead9df4..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 956347559c803f7489f75873ef2715e5 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs b/Assets/External/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs deleted file mode 100644 index b3cad0ed0..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; -using UnityEditor; -using BehaviorDesigner.Runtime; -using BehaviorDesigner.Runtime.ObjectDrawers; - -namespace BehaviorDesigner.Editor.ObjectDrawers -{ - [CustomObjectDrawer(typeof(FloatSliderAttribute))] - public class FloatSliderDrawer : ObjectDrawer - { - public override void OnGUI(GUIContent label) - { - var floatSliderAttribute = (FloatSliderAttribute)attribute; - if (value is SharedFloat) { - var sharedFloat = value as SharedFloat; - sharedFloat.Value = EditorGUILayout.Slider(label, sharedFloat.Value, floatSliderAttribute.min, floatSliderAttribute.max); - } else { - value = EditorGUILayout.Slider(label, (float)value, floatSliderAttribute.min, floatSliderAttribute.max); - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta b/Assets/External/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta deleted file mode 100644 index 5d5a7b288..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5f0987c6ff37141458ff776277e2b65a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs b/Assets/External/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs deleted file mode 100644 index d6107b8ec..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; -using UnityEditor; -using BehaviorDesigner.Runtime; -using BehaviorDesigner.Runtime.ObjectDrawers; - -namespace BehaviorDesigner.Editor.ObjectDrawers -{ - [CustomObjectDrawer(typeof(IntSliderAttribute))] - public class IntSliderDrawer : ObjectDrawer - { - public override void OnGUI(GUIContent label) - { - var intSliderAttribute = (IntSliderAttribute)attribute; - if (value is SharedInt) { - var sharedFloat = value as SharedInt; - sharedFloat.Value = EditorGUILayout.IntSlider(label, sharedFloat.Value, intSliderAttribute.min, intSliderAttribute.max); - } else { - value = EditorGUILayout.IntSlider(label, (int)value, intSliderAttribute.min, intSliderAttribute.max); - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta b/Assets/External/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta deleted file mode 100644 index b930eaa35..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ed5dac524fa5f61468bb6ca49a556b3b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs b/Assets/External/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs deleted file mode 100644 index febe2dd58..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs +++ /dev/null @@ -1,146 +0,0 @@ -using UnityEngine; -using UnityEditor; -using UnityEditorInternal; -using BehaviorDesigner.Runtime.Tasks; -using System; -using System.Reflection; - -using Action = BehaviorDesigner.Runtime.Tasks.Action; - -namespace BehaviorDesigner.Editor.ObjectDrawers -{ - [CustomObjectDrawer(typeof(StackedAction))] - public class StackedActionDrawer : ObjectDrawer - { - private ReorderableList reorderableList; - private StackedAction lastStackedAction; - - public override void OnGUI(GUIContent label) - { - var stackedAction = task as StackedAction; - - stackedAction.comparisonType = (StackedAction.ComparisonType)FieldInspector.DrawField(stackedAction, - new GUIContent("Comparison Type", "Specifies if the tasks should be traversed with an AND (Sequence) or an OR (Selector)."), - stackedAction.GetType().GetField("comparisonType", BindingFlags.Instance | BindingFlags.Public), - stackedAction.comparisonType); - - stackedAction.graphLabel = (bool)FieldInspector.DrawField(stackedAction, - new GUIContent("Graph Label", "Should the tasks be labeled within te graph?"), - stackedAction.GetType().GetField("graphLabel", BindingFlags.Instance | BindingFlags.Public), - stackedAction.graphLabel); - - if (stackedAction.actions == null) { - stackedAction.actions = new Action[0]; - } - - if (reorderableList == null) { - reorderableList = new ReorderableList(stackedAction.actions, typeof(Action), true, true, true, true); - reorderableList.drawHeaderCallback += (Rect rect) => - { - EditorGUI.LabelField(rect, "Actions"); - }; - reorderableList.onAddDropdownCallback += OnAddDropdownCallback; - reorderableList.drawElementCallback += OnDrawElementCallback; - reorderableList.onReorderCallback += OnReorderCallback; - reorderableList.onSelectCallback += OnSelectCallback; - reorderableList.onCanRemoveCallback += OnCanRemoveCallback; - reorderableList.onRemoveCallback += OnRemoveCallback; - } - if (stackedAction != lastStackedAction) { - lastStackedAction = stackedAction; - var index = EditorPrefs.GetInt("BehaviorDesigner.StackedAction." + stackedAction.ID, -1); - if (index < stackedAction.actions.Length) { - reorderableList.index = index; - } - } - if (reorderableList.index == -1 && stackedAction.actions.Length > 0) { - reorderableList.index = 0; - } - reorderableList.DoLayoutList(); - - if (reorderableList.index >= 0 && stackedAction.actions != null && reorderableList.index < stackedAction.actions.Length) { - var selectedAction = stackedAction.actions[reorderableList.index]; - EditorGUILayout.LabelField(selectedAction.GetType().Name, BehaviorDesignerUtility.BoldLabelGUIStyle); - FieldInspector.DrawFields(selectedAction, selectedAction); - } - } - - private void OnAddDropdownCallback(Rect buttonRect, ReorderableList list) - { - var addMenu = new GenericMenu(); - BehaviorDesignerWindow.instance.TaskList.AddTaskTypesToMenu(0, ref addMenu, null, typeof(StackedAction), string.Empty, false, OnAddTask); - addMenu.ShowAsContext(); - } - - private void OnAddTask(object obj) - { - var stackedAction = task as StackedAction; - var actions = stackedAction.actions; - Array.Resize(ref actions, actions.Length + 1); - var taskType = obj as Type; - actions[actions.Length - 1] = Activator.CreateInstance(taskType) as Action; - reorderableList.list = stackedAction.actions = actions; - reorderableList.index = actions.Length - 1; - BehaviorDesignerWindow.instance.SaveBehavior(); - } - - private void OnDrawElementCallback(Rect rect, int index, bool isActive, bool isFocused) - { - var stackedAction = task as StackedAction; - if (stackedAction.actions == null || index >= stackedAction.actions.Length || stackedAction.actions[index] == null) { - if (stackedAction.actions != null && index < stackedAction.actions.Length) { - var actions = stackedAction.actions; - ArrayUtility.RemoveAt(ref actions, index); - reorderableList.list = stackedAction.actions = actions; - BehaviorDesignerWindow.instance.SaveBehavior(); - } - return; - } - EditorGUI.LabelField(rect, stackedAction.actions[index].GetType().Name); - if (stackedAction.actions[index].NodeData == null || stackedAction.NodeData == null || !Application.isPlaying) { - return; - } - - if (stackedAction.actions[index].NodeData.ExecutionStatus == TaskStatus.Success || stackedAction.actions[index].NodeData.ExecutionStatus == TaskStatus.Failure) { - Texture2D texture; - if (stackedAction.NodeData.IsReevaluating) { - texture = stackedAction.actions[index].NodeData.ExecutionStatus == TaskStatus.Failure ? BehaviorDesignerUtility.ExecutionFailureRepeatTexture : BehaviorDesignerUtility.ExecutionSuccessRepeatTexture; - } else { - texture = stackedAction.actions[index].NodeData.ExecutionStatus == TaskStatus.Failure ? BehaviorDesignerUtility.ExecutionFailureTexture : BehaviorDesignerUtility.ExecutionSuccessTexture; - } - rect.x = rect.width + 8; - rect.width = rect.height = 16; - GUI.DrawTexture(rect, texture); - } - } - - private void OnReorderCallback(ReorderableList list) - { - var stackedActions = task as StackedAction; - stackedActions.actions = (Action[])list.list; - BehaviorDesignerWindow.instance.SaveBehavior(); - } - - private void OnSelectCallback(ReorderableList list) - { - EditorPrefs.SetInt("BehaviorDesigner.StackedAction." + task.ID, list.index); - } - - private bool OnCanRemoveCallback(ReorderableList list) - { - var stackedActions = task as StackedAction; - return stackedActions.actions != null && stackedActions.actions.Length > 0; - } - - private void OnRemoveCallback(ReorderableList list) - { - var stackedAction = task as StackedAction; - var actions = stackedAction.actions; - ArrayUtility.RemoveAt(ref actions, list.index); - reorderableList.list = stackedAction.actions = actions; - BehaviorDesignerWindow.instance.SaveBehavior(); - - reorderableList.index -= 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs.meta b/Assets/External/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs.meta deleted file mode 100644 index 39e15e37f..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs.meta +++ /dev/null @@ -1,18 +0,0 @@ -fileFormatVersion: 2 -guid: 2dda1c5bd0726be428a9210c793769d7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/Object Drawers/StackedActionDrawer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs b/Assets/External/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs deleted file mode 100644 index a4285971d..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs +++ /dev/null @@ -1,144 +0,0 @@ -using UnityEngine; -using UnityEditor; -using UnityEditorInternal; -using BehaviorDesigner.Runtime.Tasks; -using System; -using System.Reflection; - -namespace BehaviorDesigner.Editor.ObjectDrawers -{ - [CustomObjectDrawer(typeof(StackedConditional))] - public class StackedConditionalDrawer : ObjectDrawer - { - private ReorderableList reorderableList; - private StackedConditional lastStackedConditional; - - public override void OnGUI(GUIContent label) - { - var stackedConditional = task as StackedConditional; - - stackedConditional.comparisonType = (StackedConditional.ComparisonType)FieldInspector.DrawField(stackedConditional, - new GUIContent("Comparison Type", "Specifies if the tasks should be traversed with an AND (Sequence) or an OR (Selector)."), - stackedConditional.GetType().GetField("comparisonType", BindingFlags.Instance | BindingFlags.Public), - stackedConditional.comparisonType); - - stackedConditional.graphLabel = (bool)FieldInspector.DrawField(stackedConditional, - new GUIContent("Graph Label", "Should the tasks be labeled within te graph?"), - stackedConditional.GetType().GetField("graphLabel", BindingFlags.Instance | BindingFlags.Public), - stackedConditional.graphLabel); - - if (stackedConditional.conditionals == null) { - stackedConditional.conditionals = new Conditional[0]; - } - - if (reorderableList == null) { - reorderableList = new ReorderableList(stackedConditional.conditionals, typeof(Conditional), true, true, true, true); - reorderableList.drawHeaderCallback += (Rect rect) => - { - EditorGUI.LabelField(rect, "Conditionals"); - }; - reorderableList.onAddDropdownCallback += OnAddDropdownCallback; - reorderableList.drawElementCallback += OnDrawElementCallback; - reorderableList.onReorderCallback += OnReorderCallback; - reorderableList.onSelectCallback += OnSelectCallback; - reorderableList.onCanRemoveCallback += OnCanRemoveCallback; - reorderableList.onRemoveCallback += OnRemoveCallback; - } - if (stackedConditional != lastStackedConditional) { - lastStackedConditional = stackedConditional; - var index = EditorPrefs.GetInt("BehaviorDesigner.StackedConditional." + stackedConditional.ID, -1); - if (index < stackedConditional.conditionals.Length) { - reorderableList.index = index; - } - } - if (reorderableList.index == -1 && stackedConditional.conditionals.Length > 0) { - reorderableList.index = 0; - } - reorderableList.DoLayoutList(); - - if (reorderableList.index >= 0 && stackedConditional.conditionals != null && reorderableList.index < stackedConditional.conditionals.Length) { - var selectedConditional = stackedConditional.conditionals[reorderableList.index]; - EditorGUILayout.LabelField(selectedConditional.GetType().Name, BehaviorDesignerUtility.BoldLabelGUIStyle); - FieldInspector.DrawFields(selectedConditional, selectedConditional); - } - } - - private void OnAddDropdownCallback(Rect buttonRect, ReorderableList list) - { - var addMenu = new GenericMenu(); - BehaviorDesignerWindow.instance.TaskList.AddTaskTypesToMenu(2, ref addMenu, null, typeof(StackedConditional), string.Empty, false, OnAddTask); - addMenu.ShowAsContext(); - } - - private void OnAddTask(object obj) - { - var stackedConditional = task as StackedConditional; - var conditionals = stackedConditional.conditionals; - Array.Resize(ref conditionals, conditionals.Length + 1); - var taskType = obj as Type; - conditionals[conditionals.Length - 1] = Activator.CreateInstance(taskType) as Conditional; - reorderableList.list = stackedConditional.conditionals = conditionals; - reorderableList.index = conditionals.Length - 1; - BehaviorDesignerWindow.instance.SaveBehavior(); - } - - private void OnDrawElementCallback(Rect rect, int index, bool isActive, bool isFocused) - { - var stackedConditional = task as StackedConditional; - if (stackedConditional.conditionals == null || index >= stackedConditional.conditionals.Length || stackedConditional.conditionals[index] == null) { - if (stackedConditional.conditionals != null && index < stackedConditional.conditionals.Length) { - var conditionals = stackedConditional.conditionals; - ArrayUtility.RemoveAt(ref conditionals, index); - reorderableList.list = stackedConditional.conditionals = conditionals; - BehaviorDesignerWindow.instance.SaveBehavior(); - } - return; - } - EditorGUI.LabelField(rect, stackedConditional.conditionals[index].GetType().Name); - if (stackedConditional.conditionals[index].NodeData == null || stackedConditional.NodeData == null || !Application.isPlaying) { - return; - } - - if (stackedConditional.conditionals[index].NodeData.ExecutionStatus == TaskStatus.Success || stackedConditional.conditionals[index].NodeData.ExecutionStatus == TaskStatus.Failure) { - Texture2D texture; - if (stackedConditional.NodeData.IsReevaluating) { - texture = stackedConditional.conditionals[index].NodeData.ExecutionStatus == TaskStatus.Failure ? BehaviorDesignerUtility.ExecutionFailureRepeatTexture : BehaviorDesignerUtility.ExecutionSuccessRepeatTexture; - } else { - texture = stackedConditional.conditionals[index].NodeData.ExecutionStatus == TaskStatus.Failure ? BehaviorDesignerUtility.ExecutionFailureTexture : BehaviorDesignerUtility.ExecutionSuccessTexture; - } - rect.x = rect.width + 8; - rect.width = rect.height = 16; - GUI.DrawTexture(rect, texture); - } - } - - private void OnReorderCallback(ReorderableList list) - { - var stackedConditionals = task as StackedConditional; - stackedConditionals.conditionals = (Conditional[])list.list; - BehaviorDesignerWindow.instance.SaveBehavior(); - } - - private void OnSelectCallback(ReorderableList list) - { - EditorPrefs.SetInt("BehaviorDesigner.StackedConditional." + task.ID, list.index); - } - - private bool OnCanRemoveCallback(ReorderableList list) - { - var stackedConditionals = task as StackedConditional; - return stackedConditionals.conditionals != null && stackedConditionals.conditionals.Length > 0; - } - - private void OnRemoveCallback(ReorderableList list) - { - var stackedConditional = task as StackedConditional; - var conditionals = stackedConditional.conditionals; - ArrayUtility.RemoveAt(ref conditionals, list.index); - reorderableList.list = stackedConditional.conditionals = conditionals; - BehaviorDesignerWindow.instance.SaveBehavior(); - - reorderableList.index -= 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs.meta b/Assets/External/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs.meta deleted file mode 100644 index 47c3671d3..000000000 --- a/Assets/External/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs.meta +++ /dev/null @@ -1,18 +0,0 @@ -fileFormatVersion: 2 -guid: 1d12c12988e4c954b81ed7f3cdd0a439 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/Object Drawers/StackedConditionalDrawer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Integrations.meta b/Assets/External/Behavior Designer/Integrations.meta deleted file mode 100644 index 5daa076a5..000000000 --- a/Assets/External/Behavior Designer/Integrations.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 519776d3d02747548a264d7d32320ab1 -folderAsset: yes -timeCreated: 1536092918 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/External/Behavior Designer/Integrations/Readme.pdf b/Assets/External/Behavior Designer/Integrations/Readme.pdf deleted file mode 100644 index a027079db..000000000 Binary files a/Assets/External/Behavior Designer/Integrations/Readme.pdf and /dev/null differ diff --git a/Assets/External/Behavior Designer/Integrations/Readme.pdf.meta b/Assets/External/Behavior Designer/Integrations/Readme.pdf.meta deleted file mode 100644 index d13b60622..000000000 --- a/Assets/External/Behavior Designer/Integrations/Readme.pdf.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a43abd9ecc0166043973a4ba6da07bf1 -DefaultImporter: - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Integrations/Readme.pdf - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime Source Code Location.pdf b/Assets/External/Behavior Designer/Runtime Source Code Location.pdf deleted file mode 100644 index c011784c9..000000000 Binary files a/Assets/External/Behavior Designer/Runtime Source Code Location.pdf and /dev/null differ diff --git a/Assets/External/Behavior Designer/Runtime Source Code Location.pdf.meta b/Assets/External/Behavior Designer/Runtime Source Code Location.pdf.meta deleted file mode 100644 index 10eba025f..000000000 --- a/Assets/External/Behavior Designer/Runtime Source Code Location.pdf.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f76522f0ea27769479b1c38979bac10a -DefaultImporter: - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime Source Code Location.pdf - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime.meta b/Assets/External/Behavior Designer/Runtime.meta deleted file mode 100644 index b907fb904..000000000 --- a/Assets/External/Behavior Designer/Runtime.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 33b3095a3727f544dbe47311776edb53 diff --git a/Assets/External/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll b/Assets/External/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll deleted file mode 100644 index 754d7c44a..000000000 --- a/Assets/External/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef658f2f283c2bed5eb564f3c55362d2a943f5df752bb04abeb3ac71b6f56f65 -size 119296 diff --git a/Assets/External/Behavior Designer/Runtime/BehaviorTree.cs b/Assets/External/Behavior Designer/Runtime/BehaviorTree.cs deleted file mode 100644 index 9a8bbb5cc..000000000 --- a/Assets/External/Behavior Designer/Runtime/BehaviorTree.cs +++ /dev/null @@ -1,11 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - // Wrapper for the Behavior class - [AddComponentMenu("Behavior Designer/Behavior Tree")] - public class BehaviorTree : Behavior - { - // intentionally left blank - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/BehaviorTree.cs.meta b/Assets/External/Behavior Designer/Runtime/BehaviorTree.cs.meta deleted file mode 100644 index 66e517c4d..000000000 --- a/Assets/External/Behavior Designer/Runtime/BehaviorTree.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 8d7b55c7ecdb49a4a89fa5e6f9022861 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {fileID: 2800000, guid: 5b5f458971c6fd5459c51a7b8079bc3b, type: 3} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/BehaviorTree.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/ExternalBehaviorTree.cs b/Assets/External/Behavior Designer/Runtime/ExternalBehaviorTree.cs deleted file mode 100644 index ad0e0f9e6..000000000 --- a/Assets/External/Behavior Designer/Runtime/ExternalBehaviorTree.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class ExternalBehaviorTree : ExternalBehavior - { - // intentionally left blank - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta b/Assets/External/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta deleted file mode 100644 index a707c0999..000000000 --- a/Assets/External/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b23f08d2ae4cba14087c1ed36193d82b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {fileID: 2800000, guid: 5b5f458971c6fd5459c51a7b8079bc3b, type: 3} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/ExternalBehaviorTree.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Object Drawers.meta b/Assets/External/Behavior Designer/Runtime/Object Drawers.meta deleted file mode 100644 index 2e72caa10..000000000 --- a/Assets/External/Behavior Designer/Runtime/Object Drawers.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 29d0d8866b4fa984bbc7dbf5d988ebcc -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs b/Assets/External/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs deleted file mode 100644 index 1f6a45192..000000000 --- a/Assets/External/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -using BehaviorDesigner.Runtime.Tasks; - -namespace BehaviorDesigner.Runtime.ObjectDrawers -{ - public class FloatSliderAttribute : ObjectDrawerAttribute - { - public float min; - public float max; - - public FloatSliderAttribute(float min, float max) - { - this.min = min; - this.max = max; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta b/Assets/External/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta deleted file mode 100644 index d2f981e6c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 92948bfcff9a1fc48834935ebb0dbdcb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs b/Assets/External/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs deleted file mode 100644 index f73b1cb39..000000000 --- a/Assets/External/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -using BehaviorDesigner.Runtime.Tasks; - -namespace BehaviorDesigner.Runtime.ObjectDrawers -{ - public class IntSliderAttribute : ObjectDrawerAttribute - { - public int min; - public int max; - - public IntSliderAttribute(int min, int max) - { - this.min = min; - this.max = max; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta b/Assets/External/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta deleted file mode 100644 index 0ed4a9502..000000000 --- a/Assets/External/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2373bfe29d0e5bc47b88a46226aa6a61 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs deleted file mode 100644 index 54ab44e26..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs +++ /dev/null @@ -1,17 +0,0 @@ - - -namespace BehaviorDesigner.Runtime.Tasks -{ - // Wrapper class for the Behavior Reference task. The Behavior Tree Reference task allows you to run another behavior tree within the current behavior tree. - // One use for this task is if you have an unit that plays a series of tasks to attack. You may want the unit to attack at different points within - // the behavior tree, and you want that attack to always be the same. Instead of copying and pasting the same tasks over and over you can just use - // an external behavior and then the tasks are always guaranteed to be the same. This example is demonstrated in the RTS sample project located at - // https://www.opsive.com/downloads/?pid=803. - [TaskDescription("Behavior Tree Reference allows you to run another behavior tree within the current behavior tree.")] - [HelpURL("https://www.opsive.com/support/documentation/behavior-designer/external-behavior-trees/")] - [TaskIcon("BehaviorTreeReferenceIcon.png")] - public class BehaviorTreeReference : BehaviorReference - { - // intentionally left blank - subclass of BehaviorReference - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs.meta deleted file mode 100644 index 2112e6e7b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: af7b6fcbc7258f34aad1bb82b5b3fdc8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/BehaviorTreeReference.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Idle.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Idle.cs deleted file mode 100644 index 039104ae7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Idle.cs +++ /dev/null @@ -1,14 +0,0 @@ - - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns a TaskStatus of running. Will only stop when interrupted or a conditional abort is triggered.")] - [TaskIcon("{SkinColor}IdleIcon.png")] - public class Idle : Action - { - public override TaskStatus OnUpdate() - { - return TaskStatus.Running; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Idle.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Idle.cs.meta deleted file mode 100644 index 7abdfc2ff..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Idle.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 759252a4ffada80419ef06ce1c625246 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Idle.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Log.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Log.cs deleted file mode 100644 index 1e05caf0b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Log.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Log is a simple task which will output the specified text and return success. It can be used for debugging.")] - [TaskIcon("{SkinColor}LogIcon.png")] - public class Log : Action - { - [Tooltip("Text to output to the log")] - public SharedString text; - [Tooltip("Is this text an error?")] - public SharedBool logError; - [Tooltip("Should the time be included in the log message?")] - public SharedBool logTime; - - public override TaskStatus OnUpdate() - { - // Log the text and return success - if (logError.Value) { - Debug.LogError(logTime.Value ? string.Format("{0}: {1}", Time.time, text) : text); - } else { - Debug.Log(logTime.Value ? string.Format("{0}: {1}",Time.time, text) : text); - } - return TaskStatus.Success; - } - - public override void OnReset() - { - // Reset the properties back to their original values - text = ""; - logError = false; - logTime = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Log.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Log.cs.meta deleted file mode 100644 index 96c952c05..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Log.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: d53794347878c7c479da37533dce2024 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Log.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs deleted file mode 100644 index 861345fa5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Perform the actual interruption. This will immediately stop the specified tasks from running and will return success or failure depending on the value of interrupt success.")] - [TaskIcon("{SkinColor}PerformInterruptionIcon.png")] - public class PerformInterruption : Action - { - [Tooltip("The list of tasks to interrupt. Can be any number of tasks")] - public Interrupt[] interruptTasks; - [Tooltip("When we interrupt the task should we return a task status of success?")] - public SharedBool interruptSuccess; - - public override TaskStatus OnUpdate() - { - // Loop through all of the tasks and fire an interruption. Once complete return success. - for (int i = 0; i < interruptTasks.Length; ++i) { - interruptTasks[i].DoInterrupt(interruptSuccess.Value ? TaskStatus.Success : TaskStatus.Failure); - } - return TaskStatus.Success; - } - - public override void OnReset() - { - // Reset the properties back to their original values. - interruptTasks = null; - interruptSuccess = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs.meta deleted file mode 100644 index ff089d940..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 72d2d6051b23e86468e2f715f044dad8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/PerformInterruption.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs deleted file mode 100644 index 72a4f4e15..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs +++ /dev/null @@ -1,57 +0,0 @@ -using UnityEngine; -using System; -using System.Reflection; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Gets the value from the field specified. Returns success if the field was retrieved.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class GetFieldValue : Action - { - [Tooltip("The GameObject to get the field on")] - public SharedGameObject targetGameObject; - [Tooltip("The component to get the field on")] - public SharedString componentName; - [Tooltip("The name of the field")] - public SharedString fieldName; - [Tooltip("The value of the field")] - [RequiredField] - public SharedVariable fieldValue; - - public override TaskStatus OnUpdate() - { - if (fieldValue == null) { - Debug.LogWarning("Unable to get field - field value is null"); - return TaskStatus.Failure; - } - - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to get field - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to get the field with component " + componentName.Value); - return TaskStatus.Failure; - } - - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var field = component.GetType().GetField(fieldName.Value); - fieldValue.SetValue(field.GetValue(component)); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - fieldName = null; - fieldValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs.meta deleted file mode 100644 index 70effa65a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bc317dd7feb2085499edb0d0c4604640 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetFieldValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs deleted file mode 100644 index 82669b2ba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs +++ /dev/null @@ -1,57 +0,0 @@ -using UnityEngine; -using System; -using System.Reflection; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Gets the value from the property specified. Returns success if the property was retrieved.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class GetPropertyValue : Action - { - [Tooltip("The GameObject to get the property of")] - public SharedGameObject targetGameObject; - [Tooltip("The component to get the property of")] - public SharedString componentName; - [Tooltip("The name of the property")] - public SharedString propertyName; - [Tooltip("The value of the property")] - [RequiredField] - public SharedVariable propertyValue; - - public override TaskStatus OnUpdate() - { - if (propertyValue == null) { - Debug.LogWarning("Unable to get property - property value is null"); - return TaskStatus.Failure; - } - - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to get property - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to get the property with component " + componentName.Value); - return TaskStatus.Failure; - } - - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var property = component.GetType().GetProperty(propertyName.Value); - propertyValue.SetValue(property.GetValue(component, null)); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - propertyName = null; - propertyValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs.meta deleted file mode 100644 index a1982e36b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dda9c9b7c6ff2ee4f95a2e208cddae64 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Reflection/GetPropertyValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs deleted file mode 100644 index 83575237b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs +++ /dev/null @@ -1,84 +0,0 @@ -using UnityEngine; -using System; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Invokes the specified method with the specified parameters. Can optionally store the return value. Returns success if the method was invoked.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class InvokeMethod : Action - { - [Tooltip("The GameObject to invoke the method on")] - public SharedGameObject targetGameObject; - [Tooltip("The component to invoke the method on")] - public SharedString componentName; - [Tooltip("The name of the method")] - public SharedString methodName; - [Tooltip("The first parameter of the method")] - public SharedVariable parameter1; - [Tooltip("The second parameter of the method")] - public SharedVariable parameter2; - [Tooltip("The third parameter of the method")] - public SharedVariable parameter3; - [Tooltip("The fourth parameter of the method")] - public SharedVariable parameter4; - [Tooltip("Store the result of the invoke call")] - public SharedVariable storeResult; - - public override TaskStatus OnUpdate() - { - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to invoke - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to invoke method with component " + componentName.Value); - return TaskStatus.Failure; - } - - var parameterList = new List(); - var parameterTypeList = new List(); - SharedVariable sharedVariable = null; - for (int i = 0; i < 4; ++i) { - var parameterField = GetType().GetField("parameter" + (i + 1)); - if ((sharedVariable = parameterField.GetValue(this) as SharedVariable) != null) { - parameterList.Add(sharedVariable.GetValue()); - parameterTypeList.Add(sharedVariable.GetType().GetProperty("Value").PropertyType); - } else { - break; - } - } - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var methodInfo = component.GetType().GetMethod(methodName.Value, parameterTypeList.ToArray()); - - if (methodInfo == null) { - Debug.LogWarning("Unable to invoke method " + methodName.Value + " on component " + componentName.Value); - return TaskStatus.Failure; - } - - var result = methodInfo.Invoke(component, parameterList.ToArray()); - if (storeResult != null) { - storeResult.SetValue(result); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - methodName = null; - parameter1 = null; - parameter2 = null; - parameter3 = null; - parameter4 = null; - storeResult = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs.meta deleted file mode 100644 index 3c56b7325..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 359bd67578f53034ab2eb00e7696d317 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Reflection/InvokeMethod.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs deleted file mode 100644 index 8b8337ea9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs +++ /dev/null @@ -1,56 +0,0 @@ -using UnityEngine; -using System; -using System.Reflection; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Sets the field to the value specified. Returns success if the field was set.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class SetFieldValue : Action - { - [Tooltip("The GameObject to set the field on")] - public SharedGameObject targetGameObject; - [Tooltip("The component to set the field on")] - public SharedString componentName; - [Tooltip("The name of the field")] - public SharedString fieldName; - [Tooltip("The value to set")] - public SharedVariable fieldValue; - - public override TaskStatus OnUpdate() - { - if (fieldValue == null) { - Debug.LogWarning("Unable to get field - field value is null"); - return TaskStatus.Failure; - } - - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to set field - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to set the field with component " + componentName.Value); - return TaskStatus.Failure; - } - - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var field = component.GetType().GetField(fieldName.Value); - field.SetValue(component, fieldValue.GetValue()); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - fieldName = null; - fieldValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs.meta deleted file mode 100644 index 822f7dc54..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 21e389787213ba24ab1a6817def634ae -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetFieldValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs deleted file mode 100644 index ab0cc1ddd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs +++ /dev/null @@ -1,56 +0,0 @@ -using UnityEngine; -using System; -using System.Reflection; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Sets the property to the value specified. Returns success if the property was set.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class SetPropertyValue : Action - { - [Tooltip("The GameObject to set the property on")] - public SharedGameObject targetGameObject; - [Tooltip("The component to set the property on")] - public SharedString componentName; - [Tooltip("The name of the property")] - public SharedString propertyName; - [Tooltip("The value to set")] - public SharedVariable propertyValue; - - public override TaskStatus OnUpdate() - { - if (propertyValue == null) { - Debug.LogWarning("Unable to get field - field value is null"); - return TaskStatus.Failure; - } - - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to set property - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to set the property with component " + componentName.Value); - return TaskStatus.Failure; - } - - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var property = component.GetType().GetProperty(propertyName.Value); - property.SetValue(component, propertyValue.GetValue(), null); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - propertyName = null; - propertyValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs.meta deleted file mode 100644 index 749ffc583..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d98b13b7ae4b36b4092b439731466d9b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Reflection/SetPropertyValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs deleted file mode 100644 index 2e9bbb600..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs +++ /dev/null @@ -1,55 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Restarts a behavior tree, returns success after it has been restarted.")] - [TaskIcon("{SkinColor}RestartBehaviorTreeIcon.png")] - public class RestartBehaviorTree : Action - { - [Tooltip("The GameObject of the behavior tree that should be restarted. If null use the current behavior")] - public SharedGameObject behaviorGameObject; - [Tooltip("The group of the behavior tree that should be restarted")] - public SharedInt group; - - private Behavior behavior; - - public override void OnAwake() - { - var behaviorTrees = GetDefaultGameObject(behaviorGameObject.Value).GetComponents(); - if (behaviorTrees.Length == 1) { - behavior = behaviorTrees[0]; - } else if (behaviorTrees.Length > 1) { - for (int i = 0; i < behaviorTrees.Length; ++i) { - if (behaviorTrees[i].Group == group.Value) { - behavior = behaviorTrees[i]; - break; - } - } - // If the group can't be found then use the first behavior tree - if (behavior == null) { - behavior = behaviorTrees[0]; - } - } - } - - public override TaskStatus OnUpdate() - { - if (behavior == null) { - return TaskStatus.Failure; - } - - // Stop the behavior tree - behavior.DisableBehavior(); - // Start the behavior tree back up - behavior.EnableBehavior(); - // Return success - return TaskStatus.Success; - } - - public override void OnReset() - { - // Reset the properties back to their original values. - behavior = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs.meta deleted file mode 100644 index 07d787c06..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2765e7ece98046542880a1249b87e096 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/RestartBehaviorTree.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs deleted file mode 100644 index 9bfa80d9f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs +++ /dev/null @@ -1,77 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Sends an event to the behavior tree, returns success after sending the event.")] - [HelpURL("https://www.opsive.com/support/documentation/behavior-designer/events/")] - [TaskIcon("{SkinColor}SendEventIcon.png")] - public class SendEvent : Action - { - [Tooltip("The GameObject of the behavior tree that should have the event sent to it. If null use the current behavior")] - public SharedGameObject targetGameObject; - [Tooltip("The event to send")] - public SharedString eventName; - [Tooltip("The group of the behavior tree that the event should be sent to")] - public SharedInt group; - [Tooltip("Optionally specify a first argument to send")] - [SharedRequired] - public SharedVariable argument1; - [Tooltip("Optionally specify a second argument to send")] - [SharedRequired] - public SharedVariable argument2; - [Tooltip("Optionally specify a third argument to send")] - [SharedRequired] - public SharedVariable argument3; - - private BehaviorTree behaviorTree; - - public override void OnStart() - { - var behaviorTrees = GetDefaultGameObject(targetGameObject.Value).GetComponents(); - if (behaviorTrees.Length == 1) { - behaviorTree = behaviorTrees[0]; - } else if (behaviorTrees.Length > 1) { - for (int i = 0; i < behaviorTrees.Length; ++i) { - if (behaviorTrees[i].Group == group.Value) { - behaviorTree = behaviorTrees[i]; - break; - } - } - // If the group can't be found then use the first behavior tree - if (behaviorTree == null) { - behaviorTree = behaviorTrees[0]; - } - } - } - - public override TaskStatus OnUpdate() - { - if (behaviorTree == null) { - return TaskStatus.Failure; - } - - // Send the event and return success - if (argument1 == null || argument1.IsNone) { - behaviorTree.SendEvent(eventName.Value); - } else { - if (argument2 == null || argument2.IsNone) { - behaviorTree.SendEvent(eventName.Value, argument1.GetValue()); - } else { - if (argument3 == null || argument3.IsNone) { - behaviorTree.SendEvent(eventName.Value, argument1.GetValue(), argument2.GetValue()); - } else { - behaviorTree.SendEvent(eventName.Value, argument1.GetValue(), argument2.GetValue(), argument3.GetValue()); - } - } - } - return TaskStatus.Success; - } - - public override void OnReset() - { - // Reset the properties back to their original values - targetGameObject = null; - eventName = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs.meta deleted file mode 100644 index 58d8ed530..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 53b90428a37913c40b6d415ced4e12f9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/SendEvent.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs deleted file mode 100644 index 89730b2de..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs +++ /dev/null @@ -1,284 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Allows multiple action tasks to be added to a single node.")] - [TaskIcon("{SkinColor}StackedActionIcon.png")] - public class StackedAction : Action - { - [InspectTask] - public Action[] actions; - public enum ComparisonType - { - Sequence, - Selector - } - [Tooltip("Specifies if the tasks should be traversed with an AND (Sequence) or an OR (Selector).")] - public ComparisonType comparisonType; - [Tooltip("Should the tasks be labeled within the graph?")] - public bool graphLabel; - - public override void OnAwake() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - - actions[i].GameObject = gameObject; - actions[i].Transform = transform; - actions[i].Owner = Owner; -#if UNITY_EDITOR || DLL_RELEASE || DLL_DEBUG - actions[i].NodeData = new NodeData(); -#endif - actions[i].OnAwake(); - } - } - - public override void OnStart() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnStart(); - } - } - - public override TaskStatus OnUpdate() - { - if (actions == null) { - return TaskStatus.Failure; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - var executionStatus = actions[i].OnUpdate(); -#if UNITY_EDITOR || DLL_RELEASE || DLL_DEBUG - actions[i].NodeData.ExecutionStatus = executionStatus; - if (actions[i].NodeData.ExecutionStatus == TaskStatus.Running) { - Debug.LogWarning("Warning: The action task returned a status of running when action tasks should only return success or failure."); - } -#endif - if (comparisonType == ComparisonType.Sequence && executionStatus == TaskStatus.Failure) { - return TaskStatus.Failure; - } else if (comparisonType == ComparisonType.Selector && executionStatus == TaskStatus.Success) { - return TaskStatus.Success; - } - } - return comparisonType == ComparisonType.Sequence ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnFixedUpdate() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnFixedUpdate(); - } - } - - public override void OnLateUpdate() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnLateUpdate(); - } - } - - public override void OnEnd() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnEnd(); - } - } - - public override void OnTriggerEnter(Collider other) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnTriggerEnter(other); - } - } - - public override void OnTriggerEnter2D(Collider2D other) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnTriggerEnter2D(other); - } - } - - public override void OnTriggerExit(Collider other) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnTriggerExit(other); - } - } - - public override void OnTriggerExit2D(Collider2D other) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnTriggerExit2D(other); - } - } - - public override void OnCollisionEnter(Collision collision) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnCollisionEnter(collision); - } - } - - public override void OnCollisionEnter2D(Collision2D collision) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnCollisionEnter2D(collision); - } - } - - public override void OnCollisionExit(Collision collision) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnCollisionExit(collision); - } - } - - public override void OnCollisionExit2D(Collision2D collision) - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnCollisionExit2D(collision); - } - } - - public override string OnDrawNodeText() - { - if (actions == null || !graphLabel) { - return string.Empty; - } - - var text = string.Empty; - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - if (!string.IsNullOrEmpty(text)) { - text += "\n"; - } - text += actions[i].GetType().Name; - } - - return text; - } - - public override void OnDrawGizmos() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnDrawGizmos(); - } - } - - public override void OnReset() - { - if (actions == null) { - return; - } - - for (int i = 0; i < actions.Length; ++i) { - if (actions[i] == null) { - continue; - } - actions[i].OnReset(); - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs.meta deleted file mode 100644 index c015be1e6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs.meta +++ /dev/null @@ -1,18 +0,0 @@ -fileFormatVersion: 2 -guid: 60f3f340bd02a8a4c84749a903c731da -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/StackedAction.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs deleted file mode 100644 index 8969ad451..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs +++ /dev/null @@ -1,91 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Start a new behavior tree and return success after it has been started.")] - [TaskIcon("{SkinColor}StartBehaviorTreeIcon.png")] - public class StartBehaviorTree : Action - { - [Tooltip("The GameObject of the behavior tree that should be started. If null use the current behavior")] - public SharedGameObject behaviorGameObject; - [Tooltip("The group of the behavior tree that should be started")] - public SharedInt group; - [Tooltip("Should this task wait for the behavior tree to complete?")] - public SharedBool waitForCompletion = false; - [Tooltip("Should the variables be synchronized?")] - public SharedBool synchronizeVariables; - - private bool behaviorComplete; - private Behavior behavior; - - public override void OnStart() - { - var behaviorTrees = GetDefaultGameObject(behaviorGameObject.Value).GetComponents(); - if (behaviorTrees.Length == 1) { - behavior = behaviorTrees[0]; - } else if (behaviorTrees.Length > 1) { - for (int i = 0; i < behaviorTrees.Length; ++i) { - if (behaviorTrees[i].Group == group.Value) { - behavior = behaviorTrees[i]; - break; - } - } - // If the group can't be found then use the first behavior tree - if (behavior == null) { - behavior = behaviorTrees[0]; - } - } - - if (behavior != null) { - var variables = Owner.GetAllVariables(); - if (variables != null && synchronizeVariables.Value) { - for (int i = 0; i < variables.Count; ++i) { - behavior.SetVariableValue(variables[i].Name, variables[i]); - } - } - - behavior.EnableBehavior(); - - if (waitForCompletion.Value) { - behaviorComplete = false; - behavior.OnBehaviorEnd += BehaviorEnded; - } - } - } - - public override TaskStatus OnUpdate() - { - if (behavior == null) { - return TaskStatus.Failure; - } - - // Return a status of running if we are waiting for the behavior tree to end and it hasn't ended yet - if (waitForCompletion.Value && !behaviorComplete) { - return TaskStatus.Running; - } - - return TaskStatus.Success; - } - - private void BehaviorEnded(Behavior behavior) - { - behaviorComplete = true; - } - - public override void OnEnd() - { - if (behavior != null && waitForCompletion.Value) { - behavior.OnBehaviorEnd -= BehaviorEnded; - } - } - - public override void OnReset() - { - // Reset the properties back to their original values. - behaviorGameObject = null; - group = 0; - waitForCompletion = false; - synchronizeVariables = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs.meta deleted file mode 100644 index 87f9e1662..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: bc3d67c80371297439385b30f4be506c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/StartBehaviorTree.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs deleted file mode 100644 index b91a0e3f9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs +++ /dev/null @@ -1,56 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Pause or disable a behavior tree and return success after it has been stopped.")] - [TaskIcon("{SkinColor}StopBehaviorTreeIcon.png")] - public class StopBehaviorTree : Action - { - [Tooltip("The GameObject of the behavior tree that should be stopped. If null use the current behavior")] - public SharedGameObject behaviorGameObject; - [Tooltip("The group of the behavior tree that should be stopped")] - public SharedInt group; - [Tooltip("Should the behavior be paused or completely disabled")] - public SharedBool pauseBehavior = false; - - private Behavior behavior; - - public override void OnStart() - { - var behaviorTrees = GetDefaultGameObject(behaviorGameObject.Value).GetComponents(); - if (behaviorTrees.Length == 1) { - behavior = behaviorTrees[0]; - } else if (behaviorTrees.Length > 1) { - for (int i = 0; i < behaviorTrees.Length; ++i) { - if (behaviorTrees[i].Group == group.Value) { - behavior = behaviorTrees[i]; - break; - } - } - // If the group can't be found then use the first behavior tree - if (behavior == null) { - behavior = behaviorTrees[0]; - } - } - } - - public override TaskStatus OnUpdate() - { - if (behavior == null) { - return TaskStatus.Failure; - } - - // Start the behavior and return success. - behavior.DisableBehavior(pauseBehavior.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - // Reset the properties back to their original values - behaviorGameObject = null; - group = 0; - pauseBehavior = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs.meta deleted file mode 100644 index 08437b94e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 130afc7e6aa6e0c4aba29097334aa66b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/StopBehaviorTree.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Wait.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Wait.cs deleted file mode 100644 index da0ae3879..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Wait.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Wait a specified amount of time. The task will return running until the task is done waiting. It will return success after the wait time has elapsed.")] - [TaskIcon("{SkinColor}WaitIcon.png")] - public class Wait : Action - { - [Tooltip("The amount of time to wait")] - public SharedFloat waitTime = 1; - [Tooltip("Should the wait be randomized?")] - public SharedBool randomWait = false; - [Tooltip("The minimum wait time if random wait is enabled")] - public SharedFloat randomWaitMin = 1; - [Tooltip("The maximum wait time if random wait is enabled")] - public SharedFloat randomWaitMax = 1; - - // The time to wait - private float waitDuration; - // The time that the task started to wait. - private float startTime; - // Remember the time that the task is paused so the time paused doesn't contribute to the wait time. - private float pauseTime; - - public override void OnStart() - { - // Remember the start time. - startTime = Time.time; - if (randomWait.Value) { - waitDuration = Random.Range(randomWaitMin.Value, randomWaitMax.Value); - } else { - waitDuration = waitTime.Value; - } - } - - public override TaskStatus OnUpdate() - { - // The task is done waiting if the time waitDuration has elapsed since the task was started. - if (startTime + waitDuration < Time.time) { - return TaskStatus.Success; - } - // Otherwise we are still waiting. - return TaskStatus.Running; - } - - public override void OnPause(bool paused) - { - if (paused) { - // Remember the time that the behavior was paused. - pauseTime = Time.time; - } else { - // Add the difference between Time.time and pauseTime to figure out a new start time. - startTime += (Time.time - pauseTime); - } - } - - public override void OnReset() - { - // Reset the public properties back to their original values - waitTime = 1; - randomWait = false; - randomWaitMin = 1; - randomWaitMax = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Wait.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Wait.cs.meta deleted file mode 100644 index da1c3d637..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Wait.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 67824d2e00531d84db9973773e4426e9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Actions/Wait.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs deleted file mode 100644 index b8525e666..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs +++ /dev/null @@ -1,86 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Similar to the sequence task, the parallel task will run each child task until a child task returns failure. " + - "The difference is that the parallel task will run all of its children tasks simultaneously versus running each task one at a time. " + - "Like the sequence class, the parallel task will return success once all of its children tasks have return success. " + - "If one tasks returns failure the parallel task will end all of the child tasks and return failure.")] - [TaskIcon("{SkinColor}ParallelIcon.png")] - public class Parallel : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex; - // The task status of every child task. - private TaskStatus[] executionStatus; - - public override void OnAwake() - { - // Create a new task status array that will hold the execution status of all of the children tasks. - executionStatus = new TaskStatus[children.Count]; - } - - public override void OnChildStarted(int childIndex) - { - // One of the children has started to run. Increment the child index and set the current task status of that child to running. - currentChildIndex++; - executionStatus[childIndex] = TaskStatus.Running; - } - - public override bool CanRunParallelChildren() - { - // This task can run parallel children. - return true; - } - - public override int CurrentChildIndex() - { - return currentChildIndex; - } - - public override bool CanExecute() - { - // We can continue executing if we have more children that haven't been started yet. - return currentChildIndex < children.Count; - } - - public override void OnChildExecuted(int childIndex, TaskStatus childStatus) - { - // One of the children has finished running. Set the task status. - executionStatus[childIndex] = childStatus; - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - // Assume all of the children have finished executing. Loop through the execution status of every child and check to see if any tasks are currently running - // or failed. If a task is still running then all of the children are not done executing and the parallel task should continue to return a task status of running. - // If a task failed then return failure. The Behavior Manager will stop all of the children tasks. If no child task is running or has failed then the parallel - // task succeeded and it will return success. - bool childrenComplete = true; - for (int i = 0; i < executionStatus.Length; ++i) { - if (executionStatus[i] == TaskStatus.Running) { - childrenComplete = false; - } else if (executionStatus[i] == TaskStatus.Failure) { - return TaskStatus.Failure; - } - } - return (childrenComplete ? TaskStatus.Success : TaskStatus.Running); - } - - public override void OnConditionalAbort(int childIndex) - { - // Start from the beginning on an abort - currentChildIndex = 0; - for (int i = 0; i < executionStatus.Length; ++i) { - executionStatus[i] = TaskStatus.Inactive; - } - } - - public override void OnEnd() - { - // Reset the execution status and the child index back to their starting values. - for (int i = 0; i < executionStatus.Length; ++i) { - executionStatus[i] = TaskStatus.Inactive; - } - currentChildIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs.meta deleted file mode 100644 index 35fd7d669..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 4a7063721a0dbc04787bec1b0507f9ae -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/Parallel.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs deleted file mode 100644 index 3acbadff7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs +++ /dev/null @@ -1,81 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Similar to the parallel selector task, except the parallel complete task will return the child status as soon as the child returns success or failure." + - "The child tasks are executed simultaneously.")] - [TaskIcon("{SkinColor}ParallelCompleteIcon.png")] - public class ParallelComplete : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex; - // The task status of every child task. - private TaskStatus[] executionStatus; - - public override void OnAwake() - { - // Create a new task status array that will hold the execution status of all of the children tasks. - executionStatus = new TaskStatus[children.Count]; - } - - public override void OnChildStarted(int childIndex) - { - // One of the children has started to run. Increment the child index and set the current task status of that child to running. - currentChildIndex++; - executionStatus[childIndex] = TaskStatus.Running; - } - - public override bool CanRunParallelChildren() - { - // This task can run parallel children. - return true; - } - - public override int CurrentChildIndex() - { - return currentChildIndex; - } - - public override bool CanExecute() - { - // We can continue executing if we have more children that haven't been started yet. - return currentChildIndex < children.Count; - } - - public override void OnChildExecuted(int childIndex, TaskStatus childStatus) - { - // One of the children has finished running. Set the task status. - executionStatus[childIndex] = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Start from the beginning on an abort - currentChildIndex = 0; - for (int i = 0; i < executionStatus.Length; ++i) { - executionStatus[i] = TaskStatus.Inactive; - } - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - if (currentChildIndex == 0) { - return TaskStatus.Success; - } - // Return the child task's status as soon as a child task returns success or failure. - for (int i = 0; i < currentChildIndex; ++i) { - if (executionStatus[i] == TaskStatus.Success || executionStatus[i] == TaskStatus.Failure) { - return executionStatus[i]; - } - } - return TaskStatus.Running; - } - - public override void OnEnd() - { - // Reset the execution status and the child index back to their starting values. - for (int i = 0; i < executionStatus.Length; ++i) { - executionStatus[i] = TaskStatus.Inactive; - } - currentChildIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs.meta deleted file mode 100644 index 964627bed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: ef4b3eb51f6ede04bba3598677fe8531 -timeCreated: 1487379311 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/ParallelComplete.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs deleted file mode 100644 index b140033c0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs +++ /dev/null @@ -1,86 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Similar to the selector task, the parallel selector task will return success as soon as a child task returns success. " + - "The difference is that the parallel task will run all of its children tasks simultaneously versus running each task one at a time. " + - "If one tasks returns success the parallel selector task will end all of the child tasks and return success. " + - "If every child task returns failure then the parallel selector task will return failure.")] - [TaskIcon("{SkinColor}ParallelSelectorIcon.png")] - public class ParallelSelector : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex; - // The task status of every child task. - private TaskStatus[] executionStatus; - - public override void OnAwake() - { - // Create a new task status array that will hold the execution status of all of the children tasks. - executionStatus = new TaskStatus[children.Count]; - } - - public override void OnChildStarted(int childIndex) - { - // One of the children has started to run. Increment the child index and set the current task status of that child to running. - currentChildIndex++; - executionStatus[childIndex] = TaskStatus.Running; - } - - public override bool CanRunParallelChildren() - { - // This task can run parallel children. - return true; - } - - public override int CurrentChildIndex() - { - return currentChildIndex; - } - - public override bool CanExecute() - { - // We can continue executing if we have more children that haven't been started yet. - return currentChildIndex < children.Count; - } - - public override void OnChildExecuted(int childIndex, TaskStatus childStatus) - { - // One of the children has finished running. Set the task status. - executionStatus[childIndex] = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Start from the beginning on an abort - currentChildIndex = 0; - for (int i = 0; i < executionStatus.Length; ++i) { - executionStatus[i] = TaskStatus.Inactive; - } - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - // Assume all of the children have finished executing. Loop through the execution status of every child and check to see if any tasks are currently running - // or succeeded. If a task is still running then all of the children are not done executing and the parallel selector task should continue to return a task status of running. - // If a task succeeded then return success. The Behavior Manager will stop all of the children tasks. If no child task is running or has succeeded then the parallel selector - // task failed and it will return failure. - bool childrenComplete = true; - for (int i = 0; i < executionStatus.Length; ++i) { - if (executionStatus[i] == TaskStatus.Running) { - childrenComplete = false; - } else if (executionStatus[i] == TaskStatus.Success) { - return TaskStatus.Success; - } - } - return (childrenComplete ? TaskStatus.Failure : TaskStatus.Running); - } - - public override void OnEnd() - { - // Reset the execution status and the child index back to their starting values. - for (int i = 0; i < executionStatus.Length; ++i) { - executionStatus[i] = TaskStatus.Inactive; - } - currentChildIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs.meta deleted file mode 100644 index b9db23bfe..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 52e4e27ad95cedb41a3bc2c5f5ed0b54 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/ParallelSelector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs deleted file mode 100644 index ceda144db..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs +++ /dev/null @@ -1,71 +0,0 @@ -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Similar to the selector task, the priority selector task will return success as soon as a child task returns success. " + - "Instead of running the tasks sequentially from left to right within the tree, the priority selector will ask the task what its priority is to determine the order. " + - "The higher priority tasks have a higher chance at being run first.")] - [TaskIcon("{SkinColor}PrioritySelectorIcon.png")] - public class PrioritySelector : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex = 0; - // The task status of every child task. - private TaskStatus executionStatus = TaskStatus.Inactive; - // The order to run its children in. - private List childrenExecutionOrder = new List(); - - public override void OnStart() - { - // Make sure the list is empty before we add child indexes to it. - childrenExecutionOrder.Clear(); - - // Loop through each child task and determine its priority. The higher the priority the lower it goes within the list. The task with the highest - // priority will be first in the list and will be executed first. - for (int i = 0; i < children.Count; ++i) { - float priority = children[i].GetPriority(); - int insertIndex = childrenExecutionOrder.Count; - for (int j = 0; j < childrenExecutionOrder.Count; ++j) { - if (children[childrenExecutionOrder[j]].GetPriority() < priority) { - insertIndex = j; - break; - } - } - childrenExecutionOrder.Insert(insertIndex, i); - } - } - - public override int CurrentChildIndex() - { - // Use the execution order list in order to determine the current child index. - return childrenExecutionOrder[currentChildIndex]; - } - - public override bool CanExecute() - { - // We can continue to execuate as long as we have children that haven't been executed and no child has returned success. - return currentChildIndex < children.Count && executionStatus != TaskStatus.Success; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Increase the child index and update the execution status after a child has finished running. - currentChildIndex++; - executionStatus = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Set the current child index to the index that caused the abort - currentChildIndex = childIndex; - executionStatus = TaskStatus.Inactive; - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - currentChildIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs.meta deleted file mode 100644 index 0dd368020..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 8b5aa86ad86e94f41841abd04bd96f2a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/PrioritySelector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs deleted file mode 100644 index e363d106a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs +++ /dev/null @@ -1,101 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Similar to the selector task, the random selector task will return success as soon as a child task returns success. " + - "The difference is that the random selector class will run its children in a random order. The selector task is deterministic " + - "in that it will always run the tasks from left to right within the tree. The random selector task shuffles the child tasks up and then begins " + - "execution in a random order. Other than that the random selector class is the same as the selector class. It will continue running tasks " + - "until a task completes successfully. If no child tasks return success then it will return failure.")] - [TaskIcon("{SkinColor}RandomSelectorIcon.png")] - public class RandomSelector : Composite - { - [Tooltip("Seed the random number generator to make things easier to debug")] - public int seed = 0; - [Tooltip("Do we want to use the seed?")] - public bool useSeed = false; - - // A list of indexes of every child task. This list is used by the Fischer-Yates shuffle algorithm. - private List childIndexList = new List(); - // The random child index execution order. - private Stack childrenExecutionOrder = new Stack(); - // The task status of the last child ran. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override void OnAwake() - { - // If specified, use the seed provided. - if (useSeed) { - Random.InitState(seed); - } - - // Add the index of each child to a list to make the Fischer-Yates shuffle possible. - childIndexList.Clear(); - for (int i = 0; i < children.Count; ++i) { - childIndexList.Add(i); - } - } - - public override void OnStart() - { - // Randomize the indecies - ShuffleChilden(); - } - - public override int CurrentChildIndex() - { - // Peek will return the index at the top of the stack. - return childrenExecutionOrder.Peek(); - } - - public override bool CanExecute() - { - // Continue exectuion if no task has return success and indexes still exist on the stack. - return childrenExecutionOrder.Count > 0 && executionStatus != TaskStatus.Success; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Pop the top index from the stack and set the execution status. - if (childrenExecutionOrder.Count > 0) { - childrenExecutionOrder.Pop(); - } - executionStatus = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Start from the beginning on an abort - childrenExecutionOrder.Clear(); - executionStatus = TaskStatus.Inactive; - ShuffleChilden(); - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - childrenExecutionOrder.Clear(); - } - - public override void OnReset() - { - // Reset the public properties back to their original values - seed = 0; - useSeed = false; - } - - private void ShuffleChilden() - { - // Use Fischer-Yates shuffle to randomize the child index order. - for (int i = childIndexList.Count; i > 0; --i) { - int j = Random.Range(0, i); - int index = childIndexList[j]; - childrenExecutionOrder.Push(index); - childIndexList[j] = childIndexList[i - 1]; - childIndexList[i - 1] = index; - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs.meta deleted file mode 100644 index 13b77b86f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 4952cbfc1e77be24b99e34c9acffc2a0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/RandomSelector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs deleted file mode 100644 index 87719fa0e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs +++ /dev/null @@ -1,102 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Similar to the sequence task, the random sequence task will return success as soon as every child task returns success. " + - "The difference is that the random sequence class will run its children in a random order. The sequence task is deterministic " + - "in that it will always run the tasks from left to right within the tree. The random sequence task shuffles the child tasks up and then begins " + - "execution in a random order. Other than that the random sequence class is the same as the sequence class. It will stop running tasks " + - "as soon as a single task ends in failure. On a task failure it will stop executing all of the child tasks and return failure. " + - "If no child returns failure then it will return success.")] - [TaskIcon("{SkinColor}RandomSequenceIcon.png")] - public class RandomSequence : Composite - { - [Tooltip("Seed the random number generator to make things easier to debug")] - public int seed = 0; - [Tooltip("Do we want to use the seed?")] - public bool useSeed = false; - - // A list of indexes of every child task. This list is used by the Fischer-Yates shuffle algorithm. - private List childIndexList = new List(); - // The random child index execution order. - private Stack childrenExecutionOrder = new Stack(); - // The task status of the last child ran. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override void OnAwake() - { - // If specified, use the seed provided. - if (useSeed) { - Random.InitState(seed); - } - - // Add the index of each child to a list to make the Fischer-Yates shuffle possible. - childIndexList.Clear(); - for (int i = 0; i < children.Count; ++i) { - childIndexList.Add(i); - } - } - - public override void OnStart() - { - // Randomize the indecies - ShuffleChilden(); - } - - public override int CurrentChildIndex() - { - // Peek will return the index at the top of the stack. - return childrenExecutionOrder.Peek(); - } - - public override bool CanExecute() - { - // Continue exectuion if no task has return failure and indexes still exist on the stack. - return childrenExecutionOrder.Count > 0 && executionStatus != TaskStatus.Failure; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Pop the top index from the stack and set the execution status. - if (childrenExecutionOrder.Count > 0) { - childrenExecutionOrder.Pop(); - } - executionStatus = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Start from the beginning on an abort - childrenExecutionOrder.Clear(); - executionStatus = TaskStatus.Inactive; - ShuffleChilden(); - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - childrenExecutionOrder.Clear(); - } - - public override void OnReset() - { - // Reset the public properties back to their original values - seed = 0; - useSeed = false; - } - - private void ShuffleChilden() - { - // Use Fischer-Yates shuffle to randomize the child index order. - for (int i = childIndexList.Count; i > 0; --i) { - int j = Random.Range(0, i); - int index = childIndexList[j]; - childrenExecutionOrder.Push(index); - childIndexList[j] = childIndexList[i - 1]; - childIndexList[i - 1] = index; - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs.meta deleted file mode 100644 index da3219eff..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 11b102c97eb687b4a9ce1473a334c3dd -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/RandomSequence.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Selector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Selector.cs deleted file mode 100644 index 025097bfd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Selector.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The selector task is similar to an \"or\" operation. It will return success as soon as one of its child tasks return success. " + - "If a child task returns failure then it will sequentially run the next task. If no child task returns success then it will return failure.")] - [TaskIcon("{SkinColor}SelectorIcon.png")] - public class Selector : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex = 0; - // The task status of the last child ran. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override int CurrentChildIndex() - { - return currentChildIndex; - } - - public override bool CanExecute() - { - // We can continue to execuate as long as we have children that haven't been executed and no child has returned success. - return currentChildIndex < children.Count && executionStatus != TaskStatus.Success; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Increase the child index and update the execution status after a child has finished running. - currentChildIndex++; - executionStatus = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Set the current child index to the index that caused the abort - currentChildIndex = childIndex; - executionStatus = TaskStatus.Inactive; - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - currentChildIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Selector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Selector.cs.meta deleted file mode 100644 index 820930d71..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Selector.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 7cb8dcec14880a443841212e6b595d4f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/Selector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs deleted file mode 100644 index eb3f64f13..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs +++ /dev/null @@ -1,121 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The selector evaluator is a selector task which reevaluates its children every tick. It will run the lowest priority child which returns a task status of running. " + - "This is done each tick. If a higher priority child is running and the next frame a lower priority child wants to run it will interrupt the higher priority child. " + - "The selector evaluator will return success as soon as the first child returns success otherwise it will keep trying higher priority children. This task mimics " + - "the conditional abort functionality except the child tasks don't always have to be conditional tasks.")] - [TaskIcon("{SkinColor}SelectorEvaluatorIcon.png")] - public class SelectorEvaluator : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex = 0; - // The task status of the last child ran. - private TaskStatus executionStatus = TaskStatus.Inactive; - // The index of the child that was running before the tree started to be reevaluated. - private int storedCurrentChildIndex = -1; - // The task status of the last child ran before the tree started to be reevaluated. - private TaskStatus storedExecutionStatus = TaskStatus.Inactive; - - public override int CurrentChildIndex() - { - return currentChildIndex; - } - - public override void OnChildStarted(int childIndex) - { - // The children run sequentially so increment the index and set the status to running. - currentChildIndex++; - executionStatus = TaskStatus.Running; - } - - public override bool CanExecute() - { - // We can continue to execuate as long as we have children that haven't been executed and no child has returned success. - if (executionStatus == TaskStatus.Success || executionStatus == TaskStatus.Running) { - return false; - } - - // Used the storedCurrentChildIndex if reevaluating, otherwise the currentChildIndex - if (storedCurrentChildIndex != -1) { - return currentChildIndex < storedCurrentChildIndex - 1; - } - return currentChildIndex < children.Count; - } - - public override void OnChildExecuted(int childIndex, TaskStatus childStatus) - { - // A disabled task is the equivalent of the task failing for a selector evaluator. - if (childStatus == TaskStatus.Inactive && children[childIndex].Disabled) { - executionStatus = TaskStatus.Failure; - } - // The child status will be inactive immediately following an abort from OnReevaluationEnded. The status will be running if the - // child task is interrupted. Ignore the status for both of these. - if (childStatus != TaskStatus.Inactive && childStatus != TaskStatus.Running) { - executionStatus = childStatus; - } - } - - public override void OnConditionalAbort(int childIndex) - { - // Set the current child index to the index that caused the abort - currentChildIndex = childIndex; - executionStatus = TaskStatus.Inactive; - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - currentChildIndex = 0; - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - return executionStatus; - } - - // The selector evaluator task is a parallel task to allow the previous child to continue to run while the higher priority task is active. If the - // lower priority child can run then OnReevaluationEnded will interrupt the higher priority task. - public override bool CanRunParallelChildren() - { - return true; - } - - // Can reevaluate to allow the lower priority children the chance to rerun. - public override bool CanReevaluate() - { - return true; - } - - // The behavior tree wants to start reevaluating the tree. - public override bool OnReevaluationStarted() - { - // Cannot reevaluate if the task hasn't even started yet - if (executionStatus == TaskStatus.Inactive) { - return false; - } - - // Store the current index and execution status because it may need to be resumed. - storedCurrentChildIndex = currentChildIndex; - storedExecutionStatus = executionStatus; - currentChildIndex = 0; - executionStatus = TaskStatus.Inactive; - return true; - } - - // Reevaluation has ended. Determine if a task should be interrupted or resumed from the last index. - public override void OnReevaluationEnded(TaskStatus status) - { - // Interrupt the currently running index if a lower priority child returns a status of running or success. - if (executionStatus != TaskStatus.Failure && executionStatus != TaskStatus.Inactive) { - BehaviorManager.instance.Interrupt(Owner, children[storedCurrentChildIndex - 1], this, TaskStatus.Inactive); - } else { - // The lower priority children returned the same status so resume with the current child - currentChildIndex = storedCurrentChildIndex; - executionStatus = storedExecutionStatus; - } - storedCurrentChildIndex = -1; - storedExecutionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs.meta deleted file mode 100644 index 24f3418dd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 15b5d0aafd7d4f04f8332d33705ebd63 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/SelectorEvaluator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs deleted file mode 100644 index ff4e286e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The sequence task is similar to an \"and\" operation. It will return failure as soon as one of its child tasks return failure. " + - "If a child task returns success then it will sequentially run the next task. If all child tasks return success then it will return success.")] - [TaskIcon("{SkinColor}SequenceIcon.png")] - public class Sequence : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex = 0; - // The task status of the last child ran. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override int CurrentChildIndex() - { - return currentChildIndex; - } - - public override bool CanExecute() - { - // We can continue to execuate as long as we have children that haven't been executed and no child has returned failure. - return currentChildIndex < children.Count && executionStatus != TaskStatus.Failure; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Increase the child index and update the execution status after a child has finished running. - currentChildIndex++; - executionStatus = childStatus; - } - - public override void OnConditionalAbort(int childIndex) - { - // Set the current child index to the index that caused the abort - currentChildIndex = childIndex; - executionStatus = TaskStatus.Inactive; - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - currentChildIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs.meta deleted file mode 100644 index d4f995493..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: b7226608b64066c40a656d7260249fce -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/Sequence.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs deleted file mode 100644 index 0273c9a0c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The utility selector task evaluates the child tasks using Utility Theory AI. The child task can override the GetUtility method and return the utility value " + - "at that particular time. The task with the highest utility value will be selected and the existing running task will be aborted. The utility selector " + - "task reevaluates its children every tick.")] - [TaskIcon("{SkinColor}UtilitySelectorIcon.png")] - public class UtilitySelector : Composite - { - // The index of the child that is currently running or is about to run. - private int currentChildIndex = 0; - // The highest utility value - private float highestUtility; - // The task status of the last child ran. - private TaskStatus executionStatus = TaskStatus.Inactive; - // Is the task being reevaluated? - private bool reevaluating; - // A list of children that can execute. - private List availableChildren = new List(); - - public override void OnStart() - { - highestUtility = float.MinValue; - - // Loop through each child task and determine its utility. The task with the highest utility will run first. - availableChildren.Clear(); - for (int i = 0; i < children.Count; ++i) { - float utility = children[i].GetUtility(); - if (utility > highestUtility) { - highestUtility = utility; - currentChildIndex = i; - } - availableChildren.Add(i); - } - } - - public override int CurrentChildIndex() - { - // The currentChildIndex is the task with the highest utility. - return currentChildIndex; - } - - public override void OnChildStarted(int childIndex) - { - // The child has started - set the execution status. - executionStatus = TaskStatus.Running; - } - - public override bool CanExecute() - { - // Continue to execute new tasks until a task returns success or there are no more children left. If reevaluating then return false - // immediately because each task doesn't need to be reevaluted. - if (executionStatus == TaskStatus.Success || executionStatus == TaskStatus.Running || reevaluating) { - return false; - } - return availableChildren.Count > 0; - } - - public override void OnChildExecuted(int childIndex, TaskStatus childStatus) - { - // The child status will be inactive immediately following an abort from OnReevaluationEnded. The status will be running if the - // child task is interrupted. Ignore the status for both of these. - if (childStatus != TaskStatus.Inactive && childStatus != TaskStatus.Running) { - executionStatus = childStatus; - // If the execution status is failure then a new task needs to be selected. Remove the current task from the available children - // and select the next highest utility child. - if (executionStatus == TaskStatus.Failure) { - availableChildren.Remove(childIndex); - - highestUtility = float.MinValue; - for (int i = 0; i < availableChildren.Count; ++i) { - float utility = children[availableChildren[i]].GetUtility(); - if (utility > highestUtility) { - highestUtility = utility; - currentChildIndex = availableChildren[i]; - } - } - } - } - } - - public override void OnConditionalAbort(int childIndex) - { - // Set the current child index to the index that caused the abort - currentChildIndex = childIndex; - executionStatus = TaskStatus.Inactive; - } - - public override void OnEnd() - { - // All of the children have run. Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - currentChildIndex = 0; - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - return executionStatus; - } - - // The utility selector task is a parallel task to allow the task utility to be reevaluated. The higest utility task will always run. - public override bool CanRunParallelChildren() - { - return true; - } - - // Can reevaluate to allow the task utilities to be rerun. - public override bool CanReevaluate() - { - return true; - } - - // The behavior tree wants to start reevaluating the tree. - public override bool OnReevaluationStarted() - { - // Cannot reevaluate if the task hasn't even started yet - if (executionStatus == TaskStatus.Inactive) { - return false; - } - - reevaluating = true; - return true; - } - - // Determine if a task with a higher utility exists. - public override void OnReevaluationEnded(TaskStatus status) - { - reevaluating = false; - - // Loop through all of the available children and pick the task with the highest utility. - int prevChildIndex = currentChildIndex; - highestUtility = float.MinValue; - for (int i = 0; i < availableChildren.Count; ++i) { - float utility = children[availableChildren[i]].GetUtility(); - if (utility > highestUtility) { - highestUtility = utility; - currentChildIndex = availableChildren[i]; - } - } - - // If the index is different then the current child task should be aborted and the higher utility task should be run. - if (prevChildIndex != currentChildIndex) { - BehaviorManager.instance.Interrupt(Owner, children[prevChildIndex], this, TaskStatus.Failure); - executionStatus = TaskStatus.Inactive; - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs.meta deleted file mode 100644 index 9265b4147..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 1c21b01ca0aa9004fa3a76c9d596eeb1 -timeCreated: 1465679373 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Composites/UtilitySelector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs deleted file mode 100644 index ba1ef128f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs +++ /dev/null @@ -1,113 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success as soon as the event specified by eventName has been received.")] - [TaskIcon("{SkinColor}HasReceivedEventIcon.png")] - public class HasReceivedEvent : Conditional - { - [Tooltip("The name of the event to receive")] - public SharedString eventName = ""; - [Tooltip("Optionally store the first sent argument")] - [SharedRequired] - public SharedVariable storedValue1; - [Tooltip("Optionally store the second sent argument")] - [SharedRequired] - public SharedVariable storedValue2; - [Tooltip("Optionally store the third sent argument")] - [SharedRequired] - public SharedVariable storedValue3; - - private bool eventReceived = false; - private bool registered = false; - - public override void OnStart() - { - // Let the behavior tree know that we are interested in receiving the event specified - if (!registered) { - Owner.RegisterEvent(eventName.Value, ReceivedEvent); - Owner.RegisterEvent(eventName.Value, ReceivedEvent); - Owner.RegisterEvent(eventName.Value, ReceivedEvent); - Owner.RegisterEvent(eventName.Value, ReceivedEvent); - registered = true; - } - } - - public override TaskStatus OnUpdate() - { - return eventReceived ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - if (eventReceived) { - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - registered = false; - } - eventReceived = false; - } - - private void ReceivedEvent() - { - eventReceived = true; - } - - private void ReceivedEvent(object arg1) - { - ReceivedEvent(); - - if (storedValue1 != null && !storedValue1.IsNone) { - storedValue1.SetValue(arg1); - } - } - - private void ReceivedEvent(object arg1, object arg2) - { - ReceivedEvent(); - - if (storedValue1 != null && !storedValue1.IsNone) { - storedValue1.SetValue(arg1); - } - - if (storedValue2 != null && !storedValue2.IsNone) { - storedValue2.SetValue(arg2); - } - } - - private void ReceivedEvent(object arg1, object arg2, object arg3) - { - ReceivedEvent(); - - if (storedValue1 != null && !storedValue1.IsNone) { - storedValue1.SetValue(arg1); - } - - if (storedValue2 != null && !storedValue2.IsNone) { - storedValue2.SetValue(arg2); - } - - if (storedValue3 != null && !storedValue3.IsNone) { - storedValue3.SetValue(arg3); - } - } - - public override void OnBehaviorComplete() - { - // Stop receiving the event when the behavior tree is complete - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - Owner.UnregisterEvent(eventName.Value, ReceivedEvent); - - eventReceived = false; - registered = false; - } - - public override void OnReset() - { - // Reset the properties back to their original values - eventName = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs.meta deleted file mode 100644 index ad6df222a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7c0c7f545b074cb48bd552b038ede7af -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/HasReceivedEvent.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs deleted file mode 100644 index f3c8ba7ba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when a collision starts. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasEnteredCollision : Conditional - { - [Tooltip("The tag of the GameObject to check for a collision against")] - public SharedString tag = ""; - [Tooltip("The object that started the collision")] - public SharedGameObject collidedGameObject; - - private bool enteredCollision = false; - - public override TaskStatus OnUpdate() - { - return enteredCollision ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - enteredCollision = false; - } - - public override void OnCollisionEnter(Collision collision) - { - if (string.IsNullOrEmpty(tag.Value) || collision.gameObject.CompareTag(tag.Value)) { - collidedGameObject.Value = collision.gameObject; - enteredCollision = true; - } - } - - public override void OnReset() - { - tag = ""; - collidedGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs.meta deleted file mode 100644 index 4ef528f20..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c1841a802d7ceda449423f001897ecae -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs deleted file mode 100644 index cff2872da..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when a 2D collision starts. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasEnteredCollision2D : Conditional - { - [Tooltip("The tag of the GameObject to check for a collision against")] - public SharedString tag = ""; - [Tooltip("The object that started the collision")] - public SharedGameObject collidedGameObject; - - private bool enteredCollision = false; - - public override TaskStatus OnUpdate() - { - return enteredCollision ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - enteredCollision = false; - } - - public override void OnCollisionEnter2D(Collision2D collision) - { - if (string.IsNullOrEmpty(tag.Value) || collision.gameObject.CompareTag(tag.Value)) { - collidedGameObject.Value = collision.gameObject; - enteredCollision = true; - } - } - - public override void OnReset() - { - tag = ""; - collidedGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs.meta deleted file mode 100644 index ddac5c6ef..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0ac128198630a2d4b9fee93cc9a1f8fd -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs deleted file mode 100644 index 4ec2709a8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when an object enters the trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasEnteredTrigger : Conditional - { - [Tooltip("The tag of the GameObject to check for a trigger against")] - public SharedString tag = ""; - [Tooltip("The object that entered the trigger")] - public SharedGameObject otherGameObject; - - private bool enteredTrigger = false; - - public override TaskStatus OnUpdate() - { - return enteredTrigger ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - enteredTrigger = false; - } - - public override void OnTriggerEnter(Collider other) - { - if (string.IsNullOrEmpty(tag.Value) || other.gameObject.CompareTag(tag.Value)) { - otherGameObject.Value = other.gameObject; - enteredTrigger = true; - } - } - - public override void OnReset() - { - tag = ""; - otherGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs.meta deleted file mode 100644 index c899fb8c5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5987844efe0fca7499cec04a9e3962cc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs deleted file mode 100644 index 9cfa1b1f4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when an object enters the 2D trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasEnteredTrigger2D : Conditional - { - [Tooltip("The tag of the GameObject to check for a trigger against")] - public SharedString tag = ""; - [Tooltip("The object that entered the trigger")] - public SharedGameObject otherGameObject; - - private bool enteredTrigger = false; - - public override TaskStatus OnUpdate() - { - return enteredTrigger ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - enteredTrigger = false; - } - - public override void OnTriggerEnter2D(Collider2D other) - { - if (string.IsNullOrEmpty(tag.Value) || other.gameObject.CompareTag(tag.Value)) { - otherGameObject.Value = other.gameObject; - enteredTrigger = true; - } - } - - public override void OnReset() - { - tag = ""; - otherGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs.meta deleted file mode 100644 index c4fc722f8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 84e2afb791fe67243a15e45e4af81bb4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs deleted file mode 100644 index e561a020c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when a collision ends. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasExitedCollision : Conditional - { - [Tooltip("The tag of the GameObject to check for a collision against")] - public SharedString tag = ""; - [Tooltip("The object that exited the collision")] - public SharedGameObject collidedGameObject; - - private bool exitedCollision = false; - - public override TaskStatus OnUpdate() - { - return exitedCollision ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - exitedCollision = false; - } - - public override void OnCollisionExit(Collision collision) - { - if (string.IsNullOrEmpty(tag.Value) || collision.gameObject.CompareTag(tag.Value)) { - collidedGameObject.Value = collision.gameObject; - exitedCollision = true; - } - } - - public override void OnReset() - { - collidedGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs.meta deleted file mode 100644 index ffaa67116..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 900905a3e42f74c49a6e503349ee651e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs deleted file mode 100644 index 50c6b8bd0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when a 2D collision ends. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasExitedCollision2D : Conditional - { - [Tooltip("The tag of the GameObject to check for a collision against")] - public SharedString tag = ""; - [Tooltip("The object that exited the collision")] - public SharedGameObject collidedGameObject; - - private bool exitedCollision = false; - - public override TaskStatus OnUpdate() - { - return exitedCollision ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - exitedCollision = false; - } - - public override void OnCollisionExit2D(Collision2D collision) - { - if (string.IsNullOrEmpty(tag.Value) || collision.gameObject.CompareTag(tag.Value)) { - collidedGameObject.Value = collision.gameObject; - exitedCollision = true; - } - } - - public override void OnReset() - { - tag = ""; - collidedGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs.meta deleted file mode 100644 index 85f018da8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 31cf8edd114ac5c4db22ec65babb3dd3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs deleted file mode 100644 index bd1d17b6c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when an object exits the trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasExitedTrigger : Conditional - { - [Tooltip("The tag of the GameObject to check for a trigger against")] - public SharedString tag = ""; - [Tooltip("The object that exited the trigger")] - public SharedGameObject otherGameObject; - - private bool exitedTrigger = false; - - public override TaskStatus OnUpdate() - { - return exitedTrigger ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - exitedTrigger = false; - } - - public override void OnTriggerExit(Collider other) - { - if (string.IsNullOrEmpty(tag.Value) || other.gameObject.CompareTag(tag.Value)) { - otherGameObject.Value = other.gameObject; - exitedTrigger = true; - } - } - - public override void OnReset() - { - tag = ""; - otherGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs.meta deleted file mode 100644 index 985be25b6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c7ccd4a2c35d4c748b65ccd086e777e1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs deleted file mode 100644 index 5cbf54910..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Returns success when an object exits the 2D trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] - [TaskCategory("Physics")] - public class HasExitedTrigger2D : Conditional - { - [Tooltip("The tag of the GameObject to check for a trigger against")] - public SharedString tag = ""; - [Tooltip("The object that exited the trigger")] - public SharedGameObject otherGameObject; - - private bool exitedTrigger = false; - - public override TaskStatus OnUpdate() - { - return exitedTrigger ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - exitedTrigger = false; - } - - public override void OnTriggerExit2D(Collider2D other) - { - if (string.IsNullOrEmpty(tag.Value) || other.gameObject.CompareTag(tag.Value)) { - otherGameObject.Value = other.gameObject; - exitedTrigger = true; - } - } - - public override void OnReset() - { - tag = ""; - otherGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs.meta deleted file mode 100644 index 84d9923a6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ff0486d46da2f7844ac74c6e2ad5af89 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs deleted file mode 100644 index 128067774..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The random probability task will return success when the random probability is below the succeed probability. It will otherwise return failure.")] - public class RandomProbability : Conditional - { - [Tooltip("The chance that the task will return success")] - public SharedFloat successProbability = 0.5f; - [Tooltip("Seed the random number generator to make things easier to debug")] - public SharedInt seed; - [Tooltip("Do we want to use the seed?")] - public SharedBool useSeed; - - public override void OnAwake() - { - // If specified, use the seed provided. - if (useSeed.Value) { - Random.InitState(seed.Value); - } - } - - public override TaskStatus OnUpdate() - { - // Return success if random value is less than the success probability. Otherwise return failure. - float randomValue = Random.value; - if (randomValue < successProbability.Value) { - return TaskStatus.Success; - } - return TaskStatus.Failure; - } - - public override void OnReset() - { - // Reset the public properties back to their original values - successProbability = 0.5f; - seed = 0; - useSeed = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs.meta deleted file mode 100644 index 37337cf3f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 468a21510e9558c49a47238ebe4c2270 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/RandomProbability.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs deleted file mode 100644 index 1f0281175..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs +++ /dev/null @@ -1,60 +0,0 @@ -using UnityEngine; -using System; -using System.Reflection; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Compares the field value to the value specified. Returns success if the values are the same.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class CompareFieldValue : Conditional - { - [Tooltip("The GameObject to compare the field on")] - public SharedGameObject targetGameObject; - [Tooltip("The component to compare the field on")] - public SharedString componentName; - [Tooltip("The name of the field")] - public SharedString fieldName; - [Tooltip("The value to compare to")] - public SharedVariable compareValue; - - public override TaskStatus OnUpdate() - { - if (compareValue == null) { - Debug.LogWarning("Unable to compare field - compare value is null"); - return TaskStatus.Failure; - } - - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to compare field - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to compare the field with component " + componentName.Value); - return TaskStatus.Failure; - } - - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var field = component.GetType().GetField(fieldName.Value); - var fieldValue = field.GetValue(component); - - if (fieldValue == null && compareValue.GetValue() == null) { - return TaskStatus.Success; - } - - return fieldValue.Equals(compareValue.GetValue()) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - fieldName = null; - compareValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs.meta deleted file mode 100644 index 84e0b7a1a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: cc6496fb6757b684c8cc0c4ac8929319 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/CompareFieldValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs deleted file mode 100644 index a72d0d0ad..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs +++ /dev/null @@ -1,58 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Compares the property value to the value specified. Returns success if the values are the same.")] - [TaskCategory("Reflection")] - [TaskIcon("{SkinColor}ReflectionIcon.png")] - public class ComparePropertyValue : Conditional - { - [Tooltip("The GameObject to compare the property of")] - public SharedGameObject targetGameObject; - [Tooltip("The component to compare the property of")] - public SharedString componentName; - [Tooltip("The name of the property")] - public SharedString propertyName; - [Tooltip("The value to compare to")] - public SharedVariable compareValue; - - public override TaskStatus OnUpdate() - { - if (compareValue == null) { - Debug.LogWarning("Unable to compare field - compare value is null"); - return TaskStatus.Failure; - } - - var type = TaskUtility.GetTypeWithinAssembly(componentName.Value); - if (type == null) { - Debug.LogWarning("Unable to compare property - type is null"); - return TaskStatus.Failure; - } - - var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type); - if (component == null) { - Debug.LogWarning("Unable to compare the property with component " + componentName.Value); - return TaskStatus.Failure; - } - - // If you are receiving a compiler error on the Windows Store platform see this topic: - // https://www.opsive.com/support/documentation/behavior-designer/installation/ - var property = component.GetType().GetProperty(propertyName.Value); - var propertyValue = property.GetValue(component, null); - - if (propertyValue == null && compareValue.GetValue() == null) { - return TaskStatus.Success; - } - - return propertyValue.Equals(compareValue.GetValue()) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - componentName = null; - propertyName = null; - compareValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs.meta deleted file mode 100644 index 81d56c7ae..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f8b0fa403f826a74087ece4b81fec1c7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/Reflection/ComparePropertyValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs deleted file mode 100644 index 3452cd646..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs +++ /dev/null @@ -1,284 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Allows multiple conditional tasks to be added to a single node.")] - [TaskIcon("{SkinColor}StackedConditionalIcon.png")] - public class StackedConditional : Conditional - { - [InspectTask] - public Conditional[] conditionals; - public enum ComparisonType - { - Sequence, - Selector - } - [Tooltip("Specifies if the tasks should be traversed with an AND (Sequence) or an OR (Selector).")] - public ComparisonType comparisonType; - [Tooltip("Should the tasks be labeled within the graph?")] - public bool graphLabel; - - public override void OnAwake() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - - conditionals[i].GameObject = gameObject; - conditionals[i].Transform = transform; - conditionals[i].Owner = Owner; -#if UNITY_EDITOR || DLL_RELEASE || DLL_DEBUG - conditionals[i].NodeData = new NodeData(); -#endif - conditionals[i].OnAwake(); - } - } - - public override void OnStart() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnStart(); - } - } - - public override TaskStatus OnUpdate() - { - if (conditionals == null) { - return TaskStatus.Failure; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - var executionStatus = conditionals[i].OnUpdate(); -#if UNITY_EDITOR || DLL_RELEASE || DLL_DEBUG - conditionals[i].NodeData.ExecutionStatus = executionStatus; - if (conditionals[i].NodeData.ExecutionStatus == TaskStatus.Running) { - Debug.LogWarning("Warning: The conditional task returned a status of running when conditional tasks should only return success or failure."); - } -#endif - if (comparisonType == ComparisonType.Sequence && executionStatus == TaskStatus.Failure) { - return TaskStatus.Failure; - } else if (comparisonType == ComparisonType.Selector && executionStatus == TaskStatus.Success) { - return TaskStatus.Success; - } - } - return comparisonType == ComparisonType.Sequence ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnFixedUpdate() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnFixedUpdate(); - } - } - - public override void OnLateUpdate() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnLateUpdate(); - } - } - - public override void OnEnd() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnEnd(); - } - } - - public override void OnTriggerEnter(Collider other) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnTriggerEnter(other); - } - } - - public override void OnTriggerEnter2D(Collider2D other) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnTriggerEnter2D(other); - } - } - - public override void OnTriggerExit(Collider other) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnTriggerExit(other); - } - } - - public override void OnTriggerExit2D(Collider2D other) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnTriggerExit2D(other); - } - } - - public override void OnCollisionEnter(Collision collision) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnCollisionEnter(collision); - } - } - - public override void OnCollisionEnter2D(Collision2D collision) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnCollisionEnter2D(collision); - } - } - - public override void OnCollisionExit(Collision collision) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnCollisionExit(collision); - } - } - - public override void OnCollisionExit2D(Collision2D collision) - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnCollisionExit2D(collision); - } - } - - public override string OnDrawNodeText() - { - if (conditionals == null || !graphLabel) { - return string.Empty; - } - - var text = string.Empty; - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - if (!string.IsNullOrEmpty(text)) { - text += "\n"; - } - text += conditionals[i].GetType().Name; - } - - return text; - } - - public override void OnDrawGizmos() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnDrawGizmos(); - } - } - - public override void OnReset() - { - if (conditionals == null) { - return; - } - - for (int i = 0; i < conditionals.Length; ++i) { - if (conditionals[i] == null) { - continue; - } - conditionals[i].OnReset(); - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs.meta deleted file mode 100644 index 8f9c4b3e3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs.meta +++ /dev/null @@ -1,18 +0,0 @@ -fileFormatVersion: 2 -guid: 931664f35b02f4f438964c2f7eb4a8ae -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Conditionals/StackedConditional.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs deleted file mode 100644 index 46d78c0fe..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs +++ /dev/null @@ -1,110 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Evaluates the specified conditional task. If the conditional task returns success then the child task is run and the child status is returned. If the conditional task does not " + - "return success then the child task is not run and a failure status is immediately returned.")] - [TaskIcon("{SkinColor}ConditionalEvaluatorIcon.png")] - public class ConditionalEvaluator : Decorator - { - [Tooltip("Should the conditional task be reevaluated every tick?")] - public SharedBool reevaluate; - [InspectTask] - [Tooltip("The conditional task to evaluate")] - public Conditional conditionalTask; - [Tooltip("Should the inspected conditional task be labeled within the graph?")] - public bool graphLabel; - - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - private bool checkConditionalTask = true; - private bool conditionalTaskFailed = false; - - public override void OnAwake() - { - if (conditionalTask != null) { - conditionalTask.Owner = Owner; - conditionalTask.GameObject = gameObject; - conditionalTask.Transform = transform; - conditionalTask.OnAwake(); - } - } - - public override void OnStart() - { - if (conditionalTask != null) { - conditionalTask.OnStart(); - } - } - - public override bool CanExecute() - { - // CanExecute is called when checking the condition within a while loop so it will be called at least twice. Ensure the conditional task is checked only once - if (checkConditionalTask) { - checkConditionalTask = false; - OnUpdate(); - } - - if (conditionalTaskFailed) { - return false; - } - return executionStatus == TaskStatus.Inactive || executionStatus == TaskStatus.Running; - } - - public override bool CanReevaluate() - { - return reevaluate.Value; - } - - public override TaskStatus OnUpdate() - { - var childStatus = conditionalTask.OnUpdate(); - conditionalTaskFailed = conditionalTask == null || childStatus == TaskStatus.Failure; - return childStatus; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public override TaskStatus OverrideStatus() - { - // This version of OverrideStatus is called when the conditional evaluator fails reevaluation and has to stop all of its children. - // Therefore, the return status will always be failure - return TaskStatus.Failure; - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - if (conditionalTaskFailed) - return TaskStatus.Failure; - return status; - } - - public override void OnEnd() - { - // Reset the variables back to their starting values. - executionStatus = TaskStatus.Inactive; - checkConditionalTask = true; - conditionalTaskFailed = false; - if (conditionalTask != null) { - conditionalTask.OnEnd(); - } - } - - public override string OnDrawNodeText() - { - if (conditionalTask == null || !graphLabel) { - return string.Empty; - } - - return conditionalTask.GetType().Name; - } - - public override void OnReset() - { - // Reset the public properties back to their original values. - conditionalTask = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs.meta deleted file mode 100644 index 034e0b1ed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 632578e05169d1d45a1ab77ae8bb45ad -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/ConditionalEvaluator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs deleted file mode 100644 index e47611df5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs +++ /dev/null @@ -1,63 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("Waits the specified duration after the child has completed before returning the child's status of success or failure.")] - [TaskIcon("{SkinColor}CooldownIcon.png")] - public class Cooldown : Decorator - { - public SharedFloat duration = 2; - - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - private float cooldownTime = -1; - - public override bool CanExecute() - { - if (cooldownTime == -1) { - return true; - } - - return cooldownTime + duration.Value > Time.time; - } - - public override int CurrentChildIndex() - { - if (cooldownTime == -1) { - return 0; - } - return -1; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - executionStatus = childStatus; - if (executionStatus == TaskStatus.Failure || executionStatus == TaskStatus.Success) { - cooldownTime = Time.time; - } - } - - public override TaskStatus OverrideStatus() - { - if (!CanExecute()) { - return TaskStatus.Running; - } - return executionStatus; - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - if (status == TaskStatus.Running) { - return status; - } - return executionStatus; - } - - public override void OnEnd() - { - // Reset the execution status back to its starting values. - executionStatus = TaskStatus.Inactive; - cooldownTime = -1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs.meta deleted file mode 100644 index 16c05e795..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs.meta +++ /dev/null @@ -1,18 +0,0 @@ -fileFormatVersion: 2 -guid: 23da28bae244a1b408d0104cd78706d5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/Cooldown.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs deleted file mode 100644 index be356f336..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs +++ /dev/null @@ -1,48 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The interrupt task will stop all child tasks from running if it is interrupted. The interruption can be triggered by the perform interruption task. " + - "The interrupt task will keep running its child until this interruption is called. If no interruption happens and the child task completed its " + - "execution the interrupt task will return the value assigned by the child task.")] - [TaskIcon("{SkinColor}InterruptIcon.png")] - public class Interrupt : Decorator - { - // When an interruption occurs return with this status. - private TaskStatus interruptStatus = TaskStatus.Failure; - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Continue executing until the child task returns success or failure. - return executionStatus == TaskStatus.Inactive || executionStatus == TaskStatus.Running; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public void DoInterrupt(TaskStatus status) - { - // An interruption has occurred. Update the interrupt status and notify the Behavior Manager. The Behavior Manager will stop all - // child tasks from running. - interruptStatus = status; - - BehaviorManager.instance.Interrupt(Owner, this, status); - } - - public override TaskStatus OverrideStatus() - { - // Return the interruption status as our status. - return interruptStatus; - } - - public override void OnEnd() - { - // Reset the variables back to their starting values. - interruptStatus = TaskStatus.Failure; - executionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs.meta deleted file mode 100644 index 0d322cd5a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 81c44aaaa87500145831c0e167a5bfd3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/Interrupt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs deleted file mode 100644 index 707138f6d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs +++ /dev/null @@ -1,40 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The inverter task will invert the return value of the child task after it has finished executing. " + - "If the child returns success, the inverter task will return failure. If the child returns failure, the inverter task will return success.")] - [TaskIcon("{SkinColor}InverterIcon.png")] - public class Inverter : Decorator - { - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Continue executing until the child task returns success or failure. - return executionStatus == TaskStatus.Inactive || executionStatus == TaskStatus.Running; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public override TaskStatus Decorate(TaskStatus status) - { - // Invert the task status. - if (status == TaskStatus.Success) { - return TaskStatus.Failure; - } else if (status == TaskStatus.Failure) { - return TaskStatus.Success; - } - return status; - } - - public override void OnEnd() - { - // Reset the execution status back to its starting values. - executionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs.meta deleted file mode 100644 index 751fe39fc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 577fcf144ebc85642889f2dd11147272 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/Inverter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs deleted file mode 100644 index a4daa3955..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs +++ /dev/null @@ -1,47 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription(@"The repeater task will repeat execution of its child task until the child task has been run a specified number of times. " + - "It has the option of continuing to execute the child task even if the child task returns a failure.")] - [TaskIcon("{SkinColor}RepeaterIcon.png")] - public class Repeater : Decorator - { - [Tooltip("The number of times to repeat the execution of its child task")] - public SharedInt count = 1; - [Tooltip("Allows the repeater to repeat forever")] - public SharedBool repeatForever; - [Tooltip("Should the task return if the child task returns a failure")] - public SharedBool endOnFailure; - - // The number of times the child task has been run. - private int executionCount = 0; - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Continue executing until we've reached the count or the child task returned failure and we should stop on a failure. - return (repeatForever.Value || executionCount < count.Value) && (!endOnFailure.Value || (endOnFailure.Value && executionStatus != TaskStatus.Failure)); - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // The child task has finished execution. Increase the execution count and update the execution status. - executionCount++; - executionStatus = childStatus; - } - - public override void OnEnd() - { - // Reset the variables back to their starting values. - executionCount = 0; - executionStatus = TaskStatus.Inactive; - } - - public override void OnReset() - { - // Reset the public properties back to their original values. - count = 0; - endOnFailure = true; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs.meta deleted file mode 100644 index a686623d3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: e62515fa6915f0d4f88b808e2e77d3ff -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/Repeater.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs deleted file mode 100644 index 98cd7b145..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The return failure task will always return failure except when the child task is running.")] - [TaskIcon("{SkinColor}ReturnFailureIcon.png")] - public class ReturnFailure : Decorator - { - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Continue executing until the child task returns success or failure. - return executionStatus == TaskStatus.Inactive || executionStatus == TaskStatus.Running; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public override TaskStatus Decorate(TaskStatus status) - { - // Return failure even if the child task returned success. - if (status == TaskStatus.Success) { - return TaskStatus.Failure; - } - return status; - } - - public override void OnEnd() - { - // Reset the execution status back to its starting values. - executionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs.meta deleted file mode 100644 index c00f49f3a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: f34d21f1bb4e761478bdf76222fcf135 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/ReturnFailure.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs deleted file mode 100644 index 67eb0ead0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The return success task will always return success except when the child task is running.")] - [TaskIcon("{SkinColor}ReturnSuccessIcon.png")] - public class ReturnSuccess : Decorator - { - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Continue executing until the child task returns success or failure. - return executionStatus == TaskStatus.Inactive || executionStatus == TaskStatus.Running; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public override TaskStatus Decorate(TaskStatus status) - { - // Return success even if the child task returned failure. - if (status == TaskStatus.Failure) { - return TaskStatus.Success; - } - return status; - } - - public override void OnEnd() - { - // Reset the execution status back to its starting values. - executionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs.meta deleted file mode 100644 index 4e0233479..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 27d103b9f961fd44da3c4d83dadd90ca -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/ReturnSuccess.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs deleted file mode 100644 index e23487308..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The task guard task is similar to a semaphore in multithreaded programming. The task guard task is there to ensure a limited resource is not being overused. " + - "\n\nFor example, you may place a task guard above a task that plays an animation. Elsewhere within your behavior tree you may also have another task that plays a different " + - "animation but uses the same bones for that animation. Because of this you don't want that animation to play twice at the same time. Placing a task guard will let you " + - "specify how many times a particular task can be accessed at the same time.\n\nIn the previous animation task example you would specify an access count of 1. With this setup " + - "the animation task can be only controlled by one task at a time. If the first task is playing the animation and a second task wants to control the animation as well, it will " + - "either have to wait or skip over the task completely.")] - [TaskIcon("{SkinColor}TaskGuardIcon.png")] - public class TaskGuard : Decorator - { - [Tooltip("The number of times the child tasks can be accessed by parallel tasks at once")] - public SharedInt maxTaskAccessCount; - [Tooltip("The linked tasks that also guard a task. If the task guard is not linked against any other tasks it doesn't have much purpose. Marked as LinkedTask to " + - "ensure all tasks linked are linked to the same set of tasks")] - [LinkedTask] - public TaskGuard[] linkedTaskGuards = null; - [Tooltip("If true the task will wait until the child task is available. If false then any unavailable child tasks will be skipped over")] - public SharedBool waitUntilTaskAvailable; - - // The number of tasks that are currently using a particular task. - private int executingTasks = 0; - // True if the current task is executing. - private bool executing = false; - - public override bool CanExecute() - { - // The child task can execute if the number of executing tasks is less than the maximum number of tasks allowed. - return executingTasks < maxTaskAccessCount.Value && !executing; - } - - public override void OnChildStarted() - { - // The child task has started to run. Increase the executing tasks counter and notify all of the other linked tasks. - executingTasks++; - executing = true; - for (int i = 0; i < linkedTaskGuards.Length; ++i) { - linkedTaskGuards[i].taskExecuting(true); - } - } - - public override TaskStatus OverrideStatus(TaskStatus status) - { - // return a running status if the children are currently waiting for a task to become available - return (!executing && waitUntilTaskAvailable.Value) ? TaskStatus.Running : status; - } - - public void taskExecuting(bool increase) - { - // A linked task is currently executing a task that is being guarded. If the task just started executing then increase will be true and if it is ending then - // true will be false. - executingTasks += (increase ? 1 : -1); - } - - public override void OnEnd() - { - // The child task has been executed or skipped over. Only decrement the executing tasks count if the child task was being executed. Following that - // notify all of the linked tasks that we are done executing. - if (executing) { - executingTasks--; - for (int i = 0; i < linkedTaskGuards.Length; ++i) { - linkedTaskGuards[i].taskExecuting(false); - } - executing = false; - } - } - - public override void OnReset() - { - // Reset the public properties back to their original values - maxTaskAccessCount = null; - linkedTaskGuards = null; - waitUntilTaskAvailable = true; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs.meta deleted file mode 100644 index b9ab61371..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 7e2ae4ab352f20c41be106f92efc3b43 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/TaskGuard.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs deleted file mode 100644 index ff2cb15b1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The until failure task will keep executing its child task until the child task returns failure.")] - [TaskIcon("{SkinColor}UntilFailureIcon.png")] - public class UntilFailure : Decorator - { - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Keep running until the child task returns failure. - return executionStatus == TaskStatus.Success || executionStatus == TaskStatus.Inactive; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public override void OnEnd() - { - // Reset the execution status back to its starting values. - executionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs.meta deleted file mode 100644 index b7417e16e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 934b87f8f563272469cd9a9b14046ae7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/UntilFailure.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs deleted file mode 100644 index 25b8ec8c1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - [TaskDescription("The until success task will keep executing its child task until the child task returns success.")] - [TaskIcon("{SkinColor}UntilSuccessIcon.png")] - public class UntilSuccess : Decorator - { - // The status of the child after it has finished running. - private TaskStatus executionStatus = TaskStatus.Inactive; - - public override bool CanExecute() - { - // Keep running until the child task returns success. - return executionStatus == TaskStatus.Failure || executionStatus == TaskStatus.Inactive; - } - - public override void OnChildExecuted(TaskStatus childStatus) - { - // Update the execution status after a child has finished running. - executionStatus = childStatus; - } - - public override void OnEnd() - { - // Reset the execution status back to its starting values. - executionStatus = TaskStatus.Inactive; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs.meta deleted file mode 100644 index 768b52fd9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 6d5c2cbf6c58f6b419831477bde98317 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Decorators/UntilSuccess.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/EntryTask.cs b/Assets/External/Behavior Designer/Runtime/Tasks/EntryTask.cs deleted file mode 100644 index b06ad5957..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/EntryTask.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks -{ - // The entry task is a task that is used for display purposes within Behavior Designer to indicate the root of the tree. It is not a real task and - // cannot be used within the behavior tree. - [TaskIcon("{SkinColor}EntryIcon.png")] - public class EntryTask : ParentTask - { - public override int MaxChildren() - { - return 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/EntryTask.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/EntryTask.cs.meta deleted file mode 100644 index 88fe86934..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/EntryTask.cs.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 143ae0c3fc255864893a532a2571f3d9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/EntryTask.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity.meta deleted file mode 100644 index 60a3c06ac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: de0476b4548c1d4408860e4ee2dd9471 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation.meta deleted file mode 100644 index 6479b9043..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: fa1395121fbad8b40934c69350e58065 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs deleted file mode 100644 index a8409f87b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Blends the animation. Returns Success.")] - public class Blend : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - [Tooltip("The weight the animation should blend to")] - public float targetWeight = 1; - [Tooltip("The amount of time it takes to blend")] - public float fadeLength = 0.3f; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation.Blend(animationName.Value, targetWeight, fadeLength); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName = ""; - targetWeight = 1; - fadeLength = 0.3f; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs.meta deleted file mode 100644 index 87d496e8c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dc0640154eb6b674e89f4a2ec1632696 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/Blend.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs deleted file mode 100644 index fb13abd7a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs +++ /dev/null @@ -1,58 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Fades the animation over a period of time and fades other animations out. Returns Success.")] - public class CrossFade : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - [Tooltip("The speed of the animation. Use a negative value to play the animation backwards")] - public SharedFloat animationSpeed = 1f; - [Tooltip("The amount of time it takes to blend")] - public SharedFloat fadeLength = 0.3f; - [Tooltip("The play mode of the animation")] - public PlayMode playMode = PlayMode.StopSameLayer; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation[animationName.Value].speed = animationSpeed.Value; - if (animation[animationName.Value].speed < 0) { - animation[animationName.Value].time = animation[animationName.Value].length; - } - animation.CrossFade(animationName.Value, fadeLength.Value, playMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName.Value = ""; - animationSpeed = 1; - fadeLength = 0.3f; - playMode = PlayMode.StopSameLayer; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs.meta deleted file mode 100644 index d2088f88d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 57d9d1509d13e454caae6f3219c83cc7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFade.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs deleted file mode 100644 index a52eb3e34..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs +++ /dev/null @@ -1,54 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Cross fades an animation after previous animations has finished playing. Returns Success.")] - public class CrossFadeQueued : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - [Tooltip("The amount of time it takes to blend")] - public float fadeLength = 0.3f; - [Tooltip("Specifies when the animation should start playing")] - public QueueMode queue = QueueMode.CompleteOthers; - [Tooltip("The play mode of the animation")] - public PlayMode playMode = PlayMode.StopSameLayer; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation.CrossFadeQueued(animationName.Value, fadeLength, queue, playMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName.Value = ""; - fadeLength = 0.3f; - queue = QueueMode.CompleteOthers; - playMode = PlayMode.StopSameLayer; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs.meta deleted file mode 100644 index 2f621cfa1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c1cc2a160ee1978488696564200b3c25 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/CrossFadeQueued.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs deleted file mode 100644 index 44b5d28b8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Stores the animate physics value. Returns Success.")] - public class GetAnimatePhysics : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Are the if animations are executed in the physics loop?")] - [RequiredField] - public SharedBool storeValue; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animation.animatePhysics; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue.Value = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs.meta deleted file mode 100644 index b1340499f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b5bd2b0ed07f42142934568bd6813619 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/GetAnimatePhysics.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs deleted file mode 100644 index d96ae6d2d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Returns Success if the animation is currently playing.")] - public class IsPlaying : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - if (string.IsNullOrEmpty(animationName.Value)) { - return animation.isPlaying ? TaskStatus.Success : TaskStatus.Failure; - } else { - return animation.IsPlaying(animationName.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - } - - public override void OnReset() - { - targetGameObject = null; - animationName.Value = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs.meta deleted file mode 100644 index 55dff8b26..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ce80475167d230d4181baa69071465ff -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/IsPlaying.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs deleted file mode 100644 index 623bc08dc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs +++ /dev/null @@ -1,52 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Plays animation without any blending. Returns Success.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - [Tooltip("The play mode of the animation")] - public PlayMode playMode = PlayMode.StopSameLayer; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - if (string.IsNullOrEmpty(animationName.Value)) { - animation.Play(); - } else { - animation.Play(animationName.Value, playMode); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName.Value = ""; - playMode = PlayMode.StopSameLayer; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs.meta deleted file mode 100644 index 8ad34605e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0b1bf3b05e79dcc468cf71b63d54a4cd -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/Play.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs deleted file mode 100644 index c0fcbaff5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Plays an animation after previous animations has finished playing. Returns Success.")] - public class PlayQueued : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - [Tooltip("Specifies when the animation should start playing")] - public QueueMode queue = QueueMode.CompleteOthers; - [Tooltip("The play mode of the animation")] - public PlayMode playMode = PlayMode.StopSameLayer; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation.PlayQueued(animationName.Value, queue, playMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName.Value = ""; - queue = QueueMode.CompleteOthers; - playMode = PlayMode.StopSameLayer; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs.meta deleted file mode 100644 index 11fd8e3c1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bb55ee97bf8cb3d479de025d77a9c4b6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/PlayQueued.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs deleted file mode 100644 index f3636c99f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Rewinds an animation. Rewinds all animations if animationName is blank. Returns Success.")] - public class Rewind : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - if (string.IsNullOrEmpty(animationName.Value)) { - animation.Rewind(); - } else { - animation.Rewind(animationName.Value); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName.Value = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs.meta deleted file mode 100644 index 55464575c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 364beb9f6996556449b9f3e03db75290 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/Rewind.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs deleted file mode 100644 index 5cb131918..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Samples animations at the current state. Returns Success.")] - public class Sample : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation.Sample(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs.meta deleted file mode 100644 index af37d9b43..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2cc64c997b5d6e640af8cc9bd7cf1b5d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/Sample.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs deleted file mode 100644 index c6df4be52..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Sets animate physics to the specified value. Returns Success.")] - public class SetAnimatePhysics : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Are animations executed in the physics loop?")] - public SharedBool animatePhysics; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation.animatePhysics = animatePhysics.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animatePhysics.Value = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs.meta deleted file mode 100644 index 5c12a7ae6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f93fd0c7638add0468744d4f7249c1a7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/SetAnimatePhysics.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs deleted file mode 100644 index 2c2dd5095..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Sets the wrap mode to the specified value. Returns Success.")] - public class SetWrapMode : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("How should time beyond the playback range of the clip be treated?")] - public WrapMode wrapMode = WrapMode.Default; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - animation.wrapMode = wrapMode; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - wrapMode = WrapMode.Default; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs.meta deleted file mode 100644 index e7502f6de..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 39af69a1e220fc2419a5d34933029ff9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/SetWrapMode.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs deleted file mode 100644 index c31f35c72..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimation -{ - [TaskCategory("Unity/Animation")] - [TaskDescription("Stops an animation. Stops all animations if animationName is blank. Returns Success.")] - public class Stop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the animation")] - public SharedString animationName; - - // cache the animation component - private Animation animation; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animation = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animation == null) { - Debug.LogWarning("Animation is null"); - return TaskStatus.Failure; - } - - if (string.IsNullOrEmpty(animationName.Value)) { - animation.Stop(); - } else { - animation.Stop(animationName.Value); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - animationName = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs.meta deleted file mode 100644 index 141811ff1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c3dca423f03e936449fdb622cac3f430 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animation/Stop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator.meta deleted file mode 100644 index 34457bbad..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 0b46617b2906c0049b19ab613fae2882 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs deleted file mode 100644 index 7c2ace817..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Creates a dynamic transition between the current state and the destination state. Returns Success.")] - public class CrossFade : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the state")] - public SharedString stateName; - [Tooltip("The duration of the transition. Value is in source state normalized time")] - public SharedFloat transitionDuration; - [Tooltip("The layer where the state is")] - public int layer = -1; - [Tooltip("The normalized time at which the state will play")] - public float normalizedTime = float.NegativeInfinity; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.CrossFade(stateName.Value, transitionDuration.Value, layer, normalizedTime); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - stateName = ""; - transitionDuration = 0; - layer = -1; - normalizedTime = float.NegativeInfinity; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs.meta deleted file mode 100644 index 6fc88306e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 09e5aba2adc719f42876293bcbea7819 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/CrossFade.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs deleted file mode 100644 index 1069fd335..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores if root motion is applied. Returns Success.")] - public class GetApplyRootMotion : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Is root motion applied?")] - [RequiredField] - public SharedBool storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.applyRootMotion; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs.meta deleted file mode 100644 index 00d5b697f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 872c96b3950799546863110b7e54d0c8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetApplyRootMotion.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs deleted file mode 100644 index 028c00b88..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores the bool parameter on an animator. Returns Success.")] - public class GetBoolParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the bool parameter")] - [RequiredField] - public SharedBool storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetBool(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs.meta deleted file mode 100644 index 6bc1a8ec2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2aeb7ebc08541794aa3ed0343c49c9f9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetBoolParameter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs deleted file mode 100644 index 91d59ba53..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Gets the avatar delta position for the last evaluated frame. Returns Success.")] - public class GetDeltaPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The avatar delta position")] - [RequiredField] - public SharedVector3 storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.deltaPosition; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs.meta deleted file mode 100644 index 4283cd016..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9c44c26d5d6b3484397b8aa6ed658b1e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs deleted file mode 100644 index bb7a1cf37..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Gets the avatar delta rotation for the last evaluated frame. Returns Success.")] - public class GetDeltaRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The avatar delta rotation")] - [RequiredField] - public SharedQuaternion storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.deltaRotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - if (storeValue != null) { - storeValue.Value = Quaternion.identity; - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs.meta deleted file mode 100644 index 67395065f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f120073dca714344495aa139eea16e2b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetDeltaRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs deleted file mode 100644 index 5253f574a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores the float parameter on an animator. Returns Success.")] - public class GetFloatParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the float parameter")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetFloat(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs.meta deleted file mode 100644 index 3408ccebd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d33dbb5444b5bbe44bb200e39823cfe1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetFloatParameter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs deleted file mode 100644 index ee67a2942..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores the current gravity weight based on current animations that are played. Returns Success.")] - public class GetGravityWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The value of the gravity weight")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.gravityWeight; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs.meta deleted file mode 100644 index ef078fdfb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 945593329da80b44898e7e1ae1883d07 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetGravityWeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs deleted file mode 100644 index 20ad2799a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores the integer parameter on an animator. Returns Success.")] - public class GetIntegerParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the integer parameter")] - [RequiredField] - public SharedInt storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetInteger(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs.meta deleted file mode 100644 index 54cbff552..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c8640eaeae64c2e48ba85336474d59d8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetIntegerParameter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs deleted file mode 100644 index 8987217d2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores the layer's weight. Returns Success.")] - public class GetLayerWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The index of the layer")] - public SharedInt index; - [Tooltip("The value of the float parameter")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetLayerWeight(index.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs.meta deleted file mode 100644 index c0ac41124..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 346c4295a827d9e4c8029cd29a8e18ca -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetLayerWeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs deleted file mode 100644 index f8690623c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stores the playback speed of the animator. 1 is normal playback speed. Returns Success.")] - public class GetSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the Animator")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.speed; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs.meta deleted file mode 100644 index e998fd764..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f87648f776ab12c45883b01e9bebc6a3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs deleted file mode 100644 index c905a7cd9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Converts the state name to its corresponding hash code. Returns Success.")] - public class GetStringToHash : Action - { - [Tooltip("The name of the state to convert to a hash code")] - public SharedString stateName; - [Tooltip("The hash value")] - [RequiredField] - public SharedInt storeValue; - - public override TaskStatus OnUpdate() - { - storeValue.Value = Animator.StringToHash(stateName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - stateName = ""; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs.meta deleted file mode 100644 index 424a6e157..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 234dcf26bcb550043b3b5de33f0e6a11 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/GetStringToHash.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs deleted file mode 100644 index a08688caa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Interrupts the automatic target matching. Returns Success.")] - public class InterruptMatchTarget : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("CompleteMatch will make the gameobject match the target completely at the next frame")] - public bool completeMatch = true; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.InterruptMatchTarget(completeMatch); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - completeMatch = true; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs.meta deleted file mode 100644 index e2deb00d5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 766d802f8842a2945b11253f60d431bb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/InterruptMatchTarget.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs deleted file mode 100644 index cd05c4841..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Returns success if the specified AnimatorController layer in a transition.")] - public class IsInTransition : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layer's index")] - public SharedInt index; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return animator.IsInTransition(index.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs.meta deleted file mode 100644 index bd9461fde..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 48c086aaf693a604d8b83eabac3b568e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/IsInTransition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs deleted file mode 100644 index d5cbdbe4a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Returns success if the specified name matches the name of the active state.")] - public class IsName : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layer's index")] - public SharedInt index; - [Tooltip("The state name to compare")] - public SharedString name; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return animator.GetCurrentAnimatorStateInfo(index.Value).IsName(name.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - name = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs.meta deleted file mode 100644 index 824498fe9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 96051e2f6a0e7ea42a493e6245e4ccde -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/IsName.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs deleted file mode 100644 index 225c27426..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Returns success if the specified parameter is controlled by an additional curve on an animation.")] - public class IsParameterControlledByCurve : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return animator.IsParameterControlledByCurve(paramaterName.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs.meta deleted file mode 100644 index 0681e3914..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c5eb4141402ab7c4abb1d4a5c687a757 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/IsParameterControlledByCurve.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs deleted file mode 100644 index ada0bf5db..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs +++ /dev/null @@ -1,62 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Automatically adjust the gameobject position and rotation so that the AvatarTarget reaches the matchPosition when the current state is at the specified progress. Returns Success.")] - public class MatchTarget : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position we want the body part to reach")] - public SharedVector3 matchPosition; - [Tooltip("The rotation in which we want the body part to be")] - public SharedQuaternion matchRotation; - [Tooltip("The body part that is involved in the match")] - public AvatarTarget targetBodyPart; - [Tooltip("Weights for matching position")] - public Vector3 weightMaskPosition; - [Tooltip("Weights for matching rotation")] - public float weightMaskRotation; - [Tooltip("Start time within the animation clip")] - public float startNormalizedTime; - [Tooltip("End time within the animation clip")] - public float targetNormalizedTime = 1; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.MatchTarget(matchPosition.Value, matchRotation.Value, targetBodyPart, new MatchTargetWeightMask(weightMaskPosition, weightMaskRotation), startNormalizedTime, targetNormalizedTime); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - matchPosition = Vector3.zero; - matchRotation = Quaternion.identity; - targetBodyPart = AvatarTarget.Root; - weightMaskPosition = Vector3.zero; - weightMaskRotation = 0; - startNormalizedTime = 0; - targetNormalizedTime = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs.meta deleted file mode 100644 index c5e26056b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e0e788b711539ed4dad258780be29de6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/MatchTarget.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs deleted file mode 100644 index 8dfc9729d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs +++ /dev/null @@ -1,50 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Plays an animator state. Returns Success.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the state")] - public SharedString stateName; - [Tooltip("The layer where the state is")] - public int layer = -1; - [Tooltip("The normalized time at which the state will play")] - public float normalizedTime = float.NegativeInfinity; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.Play(stateName.Value, layer, normalizedTime); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - stateName = ""; - layer = -1; - normalizedTime = float.NegativeInfinity; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs.meta deleted file mode 100644 index 92f53f097..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a62df911d37cd8349b0168f875cd58ea -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/Play.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs deleted file mode 100644 index 62c764661..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets if root motion is applied. Returns Success.")] - public class SetApplyRootMotion : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Is root motion applied?")] - public SharedBool rootMotion; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.applyRootMotion = rootMotion.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rootMotion = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs.meta deleted file mode 100644 index ae78f549a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f10479b97efcbb94a8089a12bf891b5b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetApplyRootMotion.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs deleted file mode 100644 index d1ac54aa5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs +++ /dev/null @@ -1,62 +0,0 @@ -using UnityEngine; -using System.Collections; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the bool parameter on an animator. Returns Success.")] - public class SetBoolParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the bool parameter")] - public SharedBool boolValue; - [Tooltip("Should the value be reverted back to its original value after it has been set?")] - public bool setOnce; - - private int hashID; - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - hashID = UnityEngine.Animator.StringToHash(paramaterName.Value); - - bool prevValue = animator.GetBool(hashID); - animator.SetBool(hashID, boolValue.Value); - if (setOnce) { - StartCoroutine(ResetValue(prevValue)); - } - return TaskStatus.Success; - } - - public IEnumerator ResetValue(bool origVale) - { - yield return null; - animator.SetBool(hashID, origVale); - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - boolValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs.meta deleted file mode 100644 index 5154c018b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 04e0905e87bf90a408551067942c08c7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetBoolParameter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs deleted file mode 100644 index 95c0416e4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs +++ /dev/null @@ -1,63 +0,0 @@ -using UnityEngine; -using System.Collections; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the float parameter on an animator. Returns Success.")] - public class SetFloatParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the float parameter")] - public SharedFloat floatValue; - [Tooltip("Should the value be reverted back to its original value after it has been set?")] - public bool setOnce; - - private int hashID; - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - hashID = UnityEngine.Animator.StringToHash(paramaterName.Value); - - float prevValue = animator.GetFloat(hashID); - animator.SetFloat(hashID, floatValue.Value); - if (setOnce) { - StartCoroutine(ResetValue(prevValue)); - } - - return TaskStatus.Success; - } - - public IEnumerator ResetValue(float origVale) - { - yield return null; - animator.SetFloat(hashID, origVale); - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - floatValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs.meta deleted file mode 100644 index dc20ad1b0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b601abdc989d2ce4f8dc0d3434705814 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetFloatParameter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs deleted file mode 100644 index a065528de..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs +++ /dev/null @@ -1,63 +0,0 @@ -using UnityEngine; -using System.Collections; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the int parameter on an animator. Returns Success.")] - public class SetIntegerParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the int parameter")] - public SharedInt intValue; - [Tooltip("Should the value be reverted back to its original value after it has been set?")] - public bool setOnce; - - private int hashID; - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - hashID = UnityEngine.Animator.StringToHash(paramaterName.Value); - - int prevValue = animator.GetInteger(hashID); - animator.SetInteger(hashID, intValue.Value); - if (setOnce) { - StartCoroutine(ResetValue(prevValue)); - } - - return TaskStatus.Success; - } - - public IEnumerator ResetValue(int origVale) - { - yield return null; - animator.SetInteger(hashID, origVale); - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - intValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs.meta deleted file mode 100644 index 76464d80c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 07345b9144172a74892b176413bf9ac3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetIntegerParameter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs deleted file mode 100644 index b391a45f4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the layer's current weight. Returns Success.")] - public class SetLayerWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layer's index")] - public SharedInt index; - [Tooltip("The weight of the layer")] - public SharedFloat weight; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.SetLayerWeight(index.Value, weight.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - weight = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs.meta deleted file mode 100644 index 95dc5f1bd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 979ffd79261d4bb499331ba9fa80ed7d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLayerWeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs deleted file mode 100644 index a65f32b0a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the look at position. Returns Success.")] - public class SetLookAtPosition : Action - { - [Tooltip("The position to lookAt")] - public SharedVector3 position; - - private Animator animator; - private bool positionSet; - - public override void OnStart() - { - animator = GetComponent(); - positionSet = false; - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return positionSet ? TaskStatus.Success : TaskStatus.Running; - } - - public override void OnAnimatorIK() - { - if (animator == null) { - return; - } - animator.SetLookAtPosition(position.Value); - positionSet = true; - } - - public override void OnReset() - { - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs.meta deleted file mode 100644 index 008d3b6cf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 31c4894aafa2b7f40984915713cff50b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs deleted file mode 100644 index 37a2cdd9a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs +++ /dev/null @@ -1,58 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the look at weight. Returns success immediately after.")] - public class SetLookAtWeight : Action - { - [Tooltip("(0-1) the global weight of the LookAt, multiplier for other parameters.")] - public SharedFloat weight; - [Tooltip("(0-1) determines how much the body is involved in the LookAt.")] - public float bodyWeight; - [Tooltip("(0-1) determines how much the head is involved in the LookAt.")] - public float headWeight = 1; - [Tooltip("(0-1) determines how much the eyes are involved in the LookAt.")] - public float eyesWeight; - [Tooltip("(0-1) 0.0 means the character is completely unrestrained in motion, 1.0 means he's completely clamped " + - "(look at becomes impossible), and 0.5 means he'll be able to move on half of the possible range (180 degrees).")] - public float clampWeight = 0.5f; - - private Animator animator; - private bool weightSet; - - public override void OnStart() - { - animator = GetComponent(); - weightSet = false; - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return weightSet ? TaskStatus.Success : TaskStatus.Running; - } - - public override void OnAnimatorIK() - { - if (animator == null) { - return; - } - animator.SetLookAtWeight(weight.Value, bodyWeight, headWeight, eyesWeight, clampWeight); - weightSet = true; - } - - public override void OnReset() - { - weight = 0; - bodyWeight = 0; - headWeight = 1; - eyesWeight = 0; - clampWeight = 0.5f; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs.meta deleted file mode 100644 index 5de747e4e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1d700204dde35cd4c9e5a8553089127e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetLookAtWeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs deleted file mode 100644 index 14d10f998..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the playback speed of the Animator. 1 is normal playback speed. Returns Success.")] - public class SetSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the Animator")] - public SharedFloat speed; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.speed = speed.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - speed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs.meta deleted file mode 100644 index 401f317aa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b5cd3c9afb48ee541afcce2dade6bc6a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs deleted file mode 100644 index 92c0a8543..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets a trigger parameter to active or inactive. Returns Success.")] - public class SetTrigger : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.SetTrigger(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs.meta deleted file mode 100644 index 7fa743597..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 004807d2b68cad7459f6d84ce1274c16 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/SetTrigger.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs deleted file mode 100644 index 2a58808bc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the animator in playback mode.")] - public class StartPlayback : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StartPlayback(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs.meta deleted file mode 100644 index 704f6d7b8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 46d4b19160ba8774ea6100dda4288753 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/StartPlayback.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs deleted file mode 100644 index b79f55c65..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Sets the animator in recording mode. Returns Success.")] - public class StartRecording : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The number of frames (updates) that will be recorded")] - public int frameCount; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StartRecording(frameCount); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - frameCount = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs.meta deleted file mode 100644 index 36285efca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d6f14b502ed889444a0e44e8cb06e767 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/StartRecording.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs deleted file mode 100644 index ae9c23017..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stops the animator playback mode. Returns Success.")] - public class StopPlayback : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StopPlayback(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs.meta deleted file mode 100644 index f5940691c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7daa3c083e51ad44a8c8b05bb4e70689 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/StopPlayback.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs deleted file mode 100644 index 6781273a4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Stops animator record mode. Returns Success.")] - public class StopRecording : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StopRecording(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs.meta deleted file mode 100644 index 7ac5454fc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c62c2817a5d72054caebff852d50ef17 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/StopRecording.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs deleted file mode 100644 index c5a8f030c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs +++ /dev/null @@ -1,60 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAnimator -{ - [TaskCategory("Unity/Animator")] - [TaskDescription("Waits for the Animator to reach the specified state.")] - public class WaitForState : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the state")] - public SharedString stateName; - [Tooltip("The layer where the state is")] - public SharedInt layer = -1; - - private Animator animator; - private GameObject prevGameObject; - private int stateHash; - - public override void OnAwake() - { - stateHash = Animator.StringToHash(stateName.Value); - } - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - - if (!animator.HasState(layer.Value, stateHash)) { - Debug.LogError("Error: The Animator does not have the state " + stateName.Value + " on layer " + layer.Value); - } - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - var state = animator.GetCurrentAnimatorStateInfo(layer.Value); - if (state.shortNameHash == stateHash) { - return TaskStatus.Success; - } - - return TaskStatus.Running; - } - - public override void OnReset() - { - targetGameObject = null; - stateName = ""; - layer = -1; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs.meta deleted file mode 100644 index 87bce6c33..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: eff6d0a1593e4f7459f0194f9cbd79f1 -timeCreated: 1523364189 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Animator/WaitForState.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource.meta deleted file mode 100644 index d08b44cca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 8d2af13ebd5ef0b428b7ea2a3eb85c95 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs deleted file mode 100644 index 0a507ed83..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the ignore listener pause value of the AudioSource. Returns Success.")] - public class GetIgnoreListenerPause : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The ignore listener pause value of the AudioSource")] - [RequiredField] - public SharedBool storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.ignoreListenerPause; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs.meta deleted file mode 100644 index 17048242d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b3bd7bb287fe91747bca60ebe3d53e87 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerPause.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs deleted file mode 100644 index dd876c03e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the ignore listener volume value of the AudioSource. Returns Success.")] - public class GetIgnoreListenerVolume : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The ignore listener volume value of the AudioSource")] - [RequiredField] - public SharedBool storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.ignoreListenerVolume; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs.meta deleted file mode 100644 index f398f7911..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c45986918364dfc4e9eca01d2839e2e4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetIgnoreListenerVolume.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs deleted file mode 100644 index 3cf01d574..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the loop value of the AudioSource. Returns Success.")] - public class GetLoop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The loop value of the AudioSource")] - [RequiredField] - public SharedBool storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.loop; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs.meta deleted file mode 100644 index f39d0513e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 699b9d0d798a219459c6477d2c21d4ba -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetLoop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs deleted file mode 100644 index 07283960a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the max distance value of the AudioSource. Returns Success.")] - public class GetMaxDistance : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The max distance value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.maxDistance; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs.meta deleted file mode 100644 index 164d77e79..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3e2b2500d8e2b0c45825c0650f64eae2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMaxDistance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs deleted file mode 100644 index 3d1051d22..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the min distance value of the AudioSource. Returns Success.")] - public class GetMinDistance : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The min distance value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.minDistance; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs.meta deleted file mode 100644 index a18bfc7a1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: cad762e82ef22644ca968b4a1c51eaec -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMinDistance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs deleted file mode 100644 index 905bd8611..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the mute value of the AudioSource. Returns Success.")] - public class GetMute : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The mute value of the AudioSource")] - [RequiredField] - public SharedBool storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.mute; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs.meta deleted file mode 100644 index 217e8725a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 51df88b2df77e294cb673105b1c36961 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetMute.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs deleted file mode 100644 index 88aeb0d56..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the pitch value of the AudioSource. Returns Success.")] - public class GetPitch : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The pitch value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.pitch; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs.meta deleted file mode 100644 index 43d5b29a4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 930fa7881ae9236449d90546f9922656 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPitch.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs deleted file mode 100644 index 279d0326e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the priority value of the AudioSource. Returns Success.")] - public class GetPriority : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The priority value of the AudioSource")] - [RequiredField] - public SharedInt storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.priority; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs.meta deleted file mode 100644 index 7c7d018d3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: de856d580ad945e4d846fa52d3d647cc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetPriority.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs deleted file mode 100644 index f105e8e5c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the spread value of the AudioSource. Returns Success.")] - public class GetSpread : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The spread value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.spread; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs.meta deleted file mode 100644 index d0f72d54a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ba6a60eccf688514392e782348b84628 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetSpread.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs deleted file mode 100644 index ccdb389ef..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the time value of the AudioSource. Returns Success.")] - public class GetTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.time; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs.meta deleted file mode 100644 index 74b1c3139..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 600c95fc760afa140bd0a7b98bd5071f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs deleted file mode 100644 index ea9023a12..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the time samples value of the AudioSource. Returns Success.")] - public class GetTimeSamples : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time samples value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.timeSamples; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs.meta deleted file mode 100644 index 47854caf8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: af34adc5779f33442909ff32140dcdd4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetTimeSamples.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs deleted file mode 100644 index 4aa3bebe8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stores the volume value of the AudioSource. Returns Success.")] - public class GetVolume : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The volume value of the AudioSource")] - [RequiredField] - public SharedFloat storeValue; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - storeValue.Value = audioSource.volume; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs.meta deleted file mode 100644 index 7f676777d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: aad3b2c644baeb646b0b33b7317413d4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/GetVolume.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs deleted file mode 100644 index 839eb1e30..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Returns Success if the AudioClip is playing, otherwise Failure.")] - public class IsPlaying : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - return audioSource.isPlaying ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs.meta deleted file mode 100644 index 7bc89eabb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 20fb79d98326b794fb309a291613cab4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/IsPlaying.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs deleted file mode 100644 index cdce6ae34..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Pauses the audio clip. Returns Success.")] - public class Pause : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.Pause(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs.meta deleted file mode 100644 index 2695261d5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 91db8dd58e79db745acc39f3f52da88e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Pause.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs deleted file mode 100644 index f202e78b1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Plays the audio clip. Returns Success.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.Play(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs.meta deleted file mode 100644 index e91979e1f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7ac8cfb80c6a44c42b4ac4eef6f29bd5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Play.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs deleted file mode 100644 index c93addb09..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Plays the audio clip with a delay specified in seconds. Returns Success.")] - public class PlayDelayed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Delay time specified in seconds")] - public SharedFloat delay = 0; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.PlayDelayed(delay.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - delay = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs.meta deleted file mode 100644 index 20e9b7540..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0125706a59bb7974eb3d425d3869779a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayDelayed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs deleted file mode 100644 index 072f6f87e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Plays an AudioClip, and scales the AudioSource volume by volumeScale. Returns Success.")] - public class PlayOneShot : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The clip being played")] - public SharedObject clip; - [Tooltip("The scale of the volume (0-1)")] - public SharedFloat volumeScale = 1; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.PlayOneShot((AudioClip)clip.Value, volumeScale.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - clip = null; - volumeScale = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs.meta deleted file mode 100644 index d4e07e359..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 112c969d16008464f96ce23aa5b32486 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayOneShot.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs deleted file mode 100644 index edabd979e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Plays the audio clip with a delay specified in seconds. Returns Success.")] - public class PlayScheduled : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Time in seconds on the absolute time-line that AudioSettings.dspTime refers to for when the sound should start playing")] - public SharedFloat time = 0; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.PlayScheduled(time.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs.meta deleted file mode 100644 index 29691bc4a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 08d431471ffd8954197b88b698f0d424 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/PlayScheduled.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs deleted file mode 100644 index 91dbfe659..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the clip value of the AudioSource. Returns Success.")] - public class SetAudioClip : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The AudioSource clip")] - public AudioClip audioClip; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.clip = audioClip; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - audioClip = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs.meta deleted file mode 100644 index 6c62f7877..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f52d9d404f7deab448e4f5c2bb3f7892 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetAudioClip.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs deleted file mode 100644 index 17456c106..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the ignore listener volume value of the AudioSource. Returns Success.")] - public class SetIgnoreListenerVolume : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The ignore listener volume value of the AudioSource")] - public SharedBool ignoreListenerVolume; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.ignoreListenerVolume = ignoreListenerVolume.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - ignoreListenerVolume = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs.meta deleted file mode 100644 index 8cd201a30..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d617db8232463c444a8a3159da109798 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerPause.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs deleted file mode 100644 index bd7fcf39d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the ignore listener pause value of the AudioSource. Returns Success.")] - public class SetIgnoreListenerPause : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The ignore listener pause value of the AudioSource")] - public SharedBool ignoreListenerPause; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.ignoreListenerPause = ignoreListenerPause.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - ignoreListenerPause = false; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs.meta deleted file mode 100644 index fd2fa98b0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6f1f5937bfa03484296c0fb5a9ce9b29 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetIgnoreListenerVolume.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs deleted file mode 100644 index 392521267..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the loop value of the AudioSource. Returns Success.")] - public class SetLoop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The loop value of the AudioSource")] - public SharedBool loop; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.loop = loop.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - loop = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs.meta deleted file mode 100644 index 7bbf94ad0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 50536bd6b5fa6924bb7217dd3b6e3f45 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetLoop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs deleted file mode 100644 index 1d70c2755..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the max distance value of the AudioSource. Returns Success.")] - public class SetMaxDistance : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The max distance value of the AudioSource")] - public SharedFloat maxDistance; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.maxDistance = maxDistance.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - maxDistance = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs.meta deleted file mode 100644 index 13866b4c6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b0c75cf2afc289c4a8962f71b5e17dd1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMaxDistance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs deleted file mode 100644 index d747d5e7d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the min distance value of the AudioSource. Returns Success.")] - public class SetMinDistance : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The min distance value of the AudioSource")] - public SharedFloat minDistance; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.minDistance = minDistance.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - minDistance = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs.meta deleted file mode 100644 index 27861b62e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ccb3beba9296fc54d8427cd646af4f4e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMinDistance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs deleted file mode 100644 index f78355581..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the mute value of the AudioSource. Returns Success.")] - public class SetMute : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The mute value of the AudioSource")] - public SharedBool mute; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.mute = mute.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - mute = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs.meta deleted file mode 100644 index a3c41d947..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ec553c7ad9360a24fb7ce3bf3bc48c97 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetMute.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs deleted file mode 100644 index c3efee44d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the pitch value of the AudioSource. Returns Success.")] - public class SetPitch : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The pitch value of the AudioSource")] - public SharedFloat pitch; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.pitch = pitch.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - pitch = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs.meta deleted file mode 100644 index 008eb3052..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3c7615ddc4e92fd41b72de06f039f9e1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPitch.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs deleted file mode 100644 index ffd158441..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the priority value of the AudioSource. Returns Success.")] - public class SetPriority : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The priority value of the AudioSource")] - public SharedInt priority; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.priority = priority.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - priority = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs.meta deleted file mode 100644 index 501655892..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4fc15622e17101f4b95be39910433c8a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetPriority.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs deleted file mode 100644 index 0a25308b9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the rolloff mode of the AudioSource. Returns Success.")] - public class SetRolloffMode : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The rolloff mode of the AudioSource")] - public AudioRolloffMode rolloffMode; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.rolloffMode = rolloffMode; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rolloffMode = AudioRolloffMode.Logarithmic; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs.meta deleted file mode 100644 index 06ead9807..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ef88d71b5b7e0a84d98bde6405eb294d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetRolloffMode.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs deleted file mode 100644 index 20c149ff2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Changes the time at which a sound that has already been scheduled to play will end. Notice that depending on the " + - "timing not all rescheduling requests can be fulfilled. Returns Success.")] - public class SetScheduledEndTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Time in seconds")] - public SharedFloat time = 0; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.SetScheduledEndTime(time.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs.meta deleted file mode 100644 index b1e34473a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8867d64aa9a2add4f913b8b5faa9d1ce -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledEndTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs deleted file mode 100644 index be0f696cf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Changes the time at which a sound that has already been scheduled to play will start. Returns Success.")] - public class SetScheduledStartTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Time in seconds")] - public SharedFloat time = 0; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.SetScheduledStartTime(time.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs.meta deleted file mode 100644 index 44a58d9d3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: cf64b74120564064a8d9c622ccc7115a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetScheduledStartTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs deleted file mode 100644 index dbf2cbd00..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the spread value of the AudioSource. Returns Success.")] - public class SetSpread : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The spread value of the AudioSource")] - public SharedFloat spread; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.spread = spread.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - spread = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs.meta deleted file mode 100644 index d8f43b939..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f6d964d5fdf24bf449d3f59de1864dd8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetSpread.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs deleted file mode 100644 index b1521044b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the time value of the AudioSource. Returns Success.")] - public class SetTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time value of the AudioSource")] - public SharedFloat time; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.time = time.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs.meta deleted file mode 100644 index 1b290cb6f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3173ce3fda9d60f48b159759f8981f89 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs deleted file mode 100644 index 95edb9793..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the rolloff mode of the AudioSource. Returns Success.")] - public class SetVelocityUpdateMode : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The velocity update mode of the AudioSource")] - public AudioVelocityUpdateMode velocityUpdateMode; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.velocityUpdateMode = velocityUpdateMode; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - velocityUpdateMode = AudioVelocityUpdateMode.Auto; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs.meta deleted file mode 100644 index 3239bcc64..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c26ea6b22d3fa7843a73e5088376996c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVelocityUpdateMode.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs deleted file mode 100644 index 0ae195400..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Sets the volume value of the AudioSource. Returns Success.")] - public class SetVolume : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The volume value of the AudioSource")] - public SharedFloat volume; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.volume = volume.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - volume = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs.meta deleted file mode 100644 index 7afd084c2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: edfc39045c7af164fb340d21762e4d79 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetVolume.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs deleted file mode 100644 index ab5fdf42a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource -{ - [TaskCategory("Unity/AudioSource")] - [TaskDescription("Stops playing the audio clip. Returns Success.")] - public class Stop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private AudioSource audioSource; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - audioSource = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (audioSource == null) { - Debug.LogWarning("AudioSource is null"); - return TaskStatus.Failure; - } - - audioSource.Stop(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs.meta deleted file mode 100644 index 37b00201c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bd4cec1e9e81e664d8e7782bd02bcade -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/AudioSource/Stop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour.meta deleted file mode 100644 index 9d3d4dcfd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 51de5dc2234f2d642b8b53dd9ccc9be3 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs deleted file mode 100644 index 296542bca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBehaviour -{ - [TaskCategory("Unity/Behaviour")] - [TaskDescription("Stores the enabled state of the object. Returns Success.")] - public class GetEnabled : Action - { - [Tooltip("The Behavior to use")] - public SharedBehaviour specifiedObject; - [Tooltip("The enabled/disabled state")] - [RequiredField] - public SharedBool storeValue; - - public override TaskStatus OnUpdate() - { - if (specifiedObject == null) { - Debug.LogWarning("SpecifiedObject is null"); - return TaskStatus.Failure; - } - - storeValue.Value = specifiedObject.Value.enabled; - - return TaskStatus.Success; - } - - public override void OnReset() - { - specifiedObject.Value = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs.meta deleted file mode 100644 index 05f2e396d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ad6519dede06d7b46b95e54bb60be281 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Behaviour/GetEnabled.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs deleted file mode 100644 index c3e8c5523..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBehaviour -{ - [TaskCategory("Unity/Behaviour")] - [TaskDescription("Returns Success if the object is enabled, otherwise Failure.")] - public class IsEnabled : Conditional - { - [Tooltip("The Object to use")] - public SharedObject specifiedObject; - - public override TaskStatus OnUpdate() - { - if (specifiedObject == null && !(specifiedObject.Value is UnityEngine.Behaviour)) { - Debug.LogWarning("SpecifiedObject is null or not a subclass of UnityEngine.Behaviour"); - return TaskStatus.Failure; - } - - return (specifiedObject.Value as Behaviour).enabled ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - if (specifiedObject != null) { - specifiedObject.Value = null; - } - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs.meta deleted file mode 100644 index 16164c42f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 32f61cbdb8bdf1e44bf418ca21681bc3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Behaviour/IsEnabled.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs deleted file mode 100644 index 4d70712c5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBehaviour -{ - [TaskCategory("Unity/Behaviour")] - [TaskDescription("Enables/Disables the object. Returns Success.")] - public class SetEnabled : Action - { - [Tooltip("The Behavior to use")] - public SharedBehaviour specifiedObject; - [Tooltip("The enabled/disabled state")] - public SharedBool enabled; - - public override TaskStatus OnUpdate() - { - if (specifiedObject == null) { - Debug.LogWarning("SpecifiedObject is null"); - return TaskStatus.Failure; - } - - specifiedObject.Value.enabled = enabled.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - specifiedObject.Value = null; - enabled = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs.meta deleted file mode 100644 index 2bdf302eb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: cf7703ff7e9055e4f811a5b95bf18930 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Behaviour/SetEnabled.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider.meta deleted file mode 100644 index 6791afaa8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 876af1fbcf3642e4b987507ed975a15a -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs deleted file mode 100644 index 3173fcfd2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBoxCollider -{ - [TaskCategory("Unity/BoxCollider")] - [TaskDescription("Stores the center of the BoxCollider. Returns Success.")] - public class GetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the BoxCollider")] - [RequiredField] - public SharedVector3 storeValue; - - private BoxCollider boxCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - boxCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (boxCollider == null) { - Debug.LogWarning("BoxCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = boxCollider.center; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs.meta deleted file mode 100644 index c51a4e024..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9c3ae13d2bd0e5f4186835c672d9461f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs deleted file mode 100644 index ac1229175..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBoxCollider -{ - [TaskCategory("Unity/BoxCollider")] - [TaskDescription("Stores the size of the BoxCollider. Returns Success.")] - public class GetSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The size of the BoxCollider")] - [RequiredField] - public SharedVector3 storeValue; - - private BoxCollider boxCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - boxCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (boxCollider == null) { - Debug.LogWarning("BoxCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = boxCollider.size; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs.meta deleted file mode 100644 index bcd5d9cb6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0afec21454700d3479c4f9767f9382f9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/GetSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs deleted file mode 100644 index 7731b60cb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBoxCollider -{ - [TaskCategory("Unity/BoxCollider")] - [TaskDescription("Sets the center of the BoxCollider. Returns Success.")] - public class SetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the BoxCollider")] - public SharedVector3 center; - - private BoxCollider boxCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - boxCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (boxCollider == null) { - Debug.LogWarning("BoxCollider is null"); - return TaskStatus.Failure; - } - - boxCollider.center = center.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - center = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs.meta deleted file mode 100644 index da221af3d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 45b3b4dc79247bd46a9c2b11fa9b125c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs deleted file mode 100644 index 82e8b9247..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBoxCollider -{ - [TaskCategory("Unity/BoxCollider")] - [TaskDescription("Sets the size of the BoxCollider. Returns Success.")] - public class SetSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The size of the BoxCollider")] - public SharedVector3 size; - - private BoxCollider boxCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - boxCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (boxCollider == null) { - Debug.LogWarning("BoxCollider is null"); - return TaskStatus.Failure; - } - - boxCollider.size = size.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - size = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs.meta deleted file mode 100644 index 6a7d9fbcd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d899b6ed83f6e264f8e5867cf68c0cda -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/BoxCollider/SetSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D.meta deleted file mode 100644 index 8093c213a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: c7814e7f18119144182f77f9b2a01af2 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs deleted file mode 100644 index b35253748..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBoxCollider2D -{ - [TaskCategory("Unity/BoxCollider2D")] - [TaskDescription("Stores the size of the BoxCollider2D. Returns Success.")] - public class GetSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The size of the BoxCollider2D")] - [RequiredField] - public SharedVector2 storeValue; - - private BoxCollider2D boxCollider2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - boxCollider2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (boxCollider2D == null) { - Debug.LogWarning("BoxCollider2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = boxCollider2D.size; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector2.zero; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs.meta deleted file mode 100644 index a040f93f3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c69113b787759f340aacbb9d99a6d654 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/GetSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs deleted file mode 100644 index b58f42b5e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityBoxCollider2D -{ - [TaskCategory("Unity/BoxCollider2D")] - [TaskDescription("Sets the size of the BoxCollider2D. Returns Success.")] - public class SetSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The size of the BoxCollider2D")] - public SharedVector2 size; - - private BoxCollider2D boxCollider2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - boxCollider2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (boxCollider2D == null) { - Debug.LogWarning("BoxCollider2D is null"); - return TaskStatus.Failure; - } - - boxCollider2D.size = size.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - size = Vector2.zero; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs.meta deleted file mode 100644 index 1ce8eb52c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1875fd00045d98848b028015a17aeeaf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/BoxCollider2D/SetSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider.meta deleted file mode 100644 index d777955b1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 0cf43865b0892fb48ac285f63910ff97 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs deleted file mode 100644 index b9790068b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Stores the center of the CapsuleCollider. Returns Success.")] - public class GetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the CapsuleCollider")] - [RequiredField] - public SharedVector3 storeValue; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = capsuleCollider.center; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs.meta deleted file mode 100644 index 663664bcb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3a032cb4c0b97b844ad53ad7bb2617c3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs deleted file mode 100644 index 84e8301ce..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Stores the direction of the CapsuleCollider. Returns Success.")] - public class GetDirection : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The direction of the CapsuleCollider")] - [RequiredField] - public SharedInt storeValue; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = capsuleCollider.direction; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs.meta deleted file mode 100644 index 9d356c8ac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7e9f2ebb599281345a458fab17aab5fd -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetDirection.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs deleted file mode 100644 index 2028892ee..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Gets the height of the CapsuleCollider. Returns Success.")] - public class GetHeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The height of the CapsuleCollider")] - [RequiredField] - public SharedFloat storeValue; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = capsuleCollider.height; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs.meta deleted file mode 100644 index 2c95f8075..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 29e860749600e174aa61dd42be0a3126 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetHeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs deleted file mode 100644 index a4893726b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Stores the radius of the CapsuleCollider. Returns Success.")] - public class GetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the CapsuleCollider")] - [RequiredField] - public SharedFloat storeValue; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = capsuleCollider.radius; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs.meta deleted file mode 100644 index aeb2027b3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d03b50a6f076c75408ef6e843bd75539 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/GetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs deleted file mode 100644 index edc0ede4b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Sets the center of the CapsuleCollider. Returns Success.")] - public class SetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the CapsuleCollider")] - public SharedVector3 center; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - capsuleCollider.center = center.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - center = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs.meta deleted file mode 100644 index 2cbcbda9c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f8292285661aa7e4086c0b59926632c3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs deleted file mode 100644 index f4a8c729d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Sets the direction of the CapsuleCollider. Returns Success.")] - public class SetDirection : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The direction of the CapsuleCollider")] - public SharedInt direction; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - capsuleCollider.direction = direction.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - direction = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs.meta deleted file mode 100644 index 28f6888e5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4146b45b3a598294f86dbbac03e6e8cb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetDirection.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs deleted file mode 100644 index 18906ddfc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Sets the height of the CapsuleCollider. Returns Success.")] - public class SetHeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The height of the CapsuleCollider")] - public SharedFloat direction; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - capsuleCollider.height = direction.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - direction = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs.meta deleted file mode 100644 index c1173c34a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 34f947c079c1159488c80854ee53ecd8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetHeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs deleted file mode 100644 index 16c15b8d9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCapsuleCollider -{ - [TaskCategory("Unity/CapsuleCollider")] - [TaskDescription("Sets the radius of the CapsuleCollider. Returns Success.")] - public class SetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the CapsuleCollider")] - public SharedFloat radius; - - private CapsuleCollider capsuleCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - capsuleCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (capsuleCollider == null) { - Debug.LogWarning("CapsuleCollider is null"); - return TaskStatus.Failure; - } - - capsuleCollider.radius = radius.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - radius = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs.meta deleted file mode 100644 index 99aa54c41..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fed5a0f5604af324cb2e4a3ed9315793 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CapsuleCollider/SetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController.meta deleted file mode 100644 index 65989b5c0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 4b58bcba0c40cfc448a1f2a5f2a57c57 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs deleted file mode 100644 index 1e2769b73..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Stores the center of the CharacterController. Returns Success.")] - public class GetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the CharacterController")] - [RequiredField] - public SharedVector3 storeValue; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - storeValue.Value = characterController.center; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs.meta deleted file mode 100644 index 866b71a01..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e4033e3d9c7ef994ba600b3afec28a0d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs deleted file mode 100644 index 8a01b4985..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Stores the height of the CharacterController. Returns Success.")] - public class GetHeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The height of the CharacterController")] - [RequiredField] - public SharedFloat storeValue; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - storeValue.Value = characterController.height; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs.meta deleted file mode 100644 index 7e2a9ab8b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: eec31e6d5685c674fa2952757b4adf9a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetHeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs deleted file mode 100644 index 217991121..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Stores the radius of the CharacterController. Returns Success.")] - public class GetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the CharacterController")] - [RequiredField] - public SharedFloat storeValue; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - storeValue.Value = characterController.radius; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs.meta deleted file mode 100644 index 9357040f0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3bf330244cdea3b43ad95e8731fdb78b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs deleted file mode 100644 index bc936a67a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Stores the slope limit of the CharacterController. Returns Success.")] - public class GetSlopeLimit : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The slope limit of the CharacterController")] - [RequiredField] - public SharedFloat storeValue; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - storeValue.Value = characterController.slopeLimit; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs.meta deleted file mode 100644 index e516c2ccf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3cb445c34dce1a14aa5134278025ec59 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetSlopeLimit.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs deleted file mode 100644 index 348d4f0d1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Stores the step offset of the CharacterController. Returns Success.")] - public class GetStepOffset : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The step offset of the CharacterController")] - [RequiredField] - public SharedFloat storeValue; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - storeValue.Value = characterController.stepOffset; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs.meta deleted file mode 100644 index a79371f5b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d9bb8d4be247f4d4cb9b2b05a6efd48f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetStepOffset.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs deleted file mode 100644 index ada878ad2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Stores the velocity of the CharacterController. 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 CharacterController")] - [RequiredField] - public SharedVector3 storeValue; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - storeValue.Value = characterController.velocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs.meta deleted file mode 100644 index 6cf607c0f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 783c920567425bd4c9385eeaf8099ea4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/GetVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs deleted file mode 100644 index 0eea0801c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Returns Success if the collider hit another object, otherwise Failure.")] - public class HasColliderHit : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The tag of the GameObject to check for a collision against")] - public SharedString tag = ""; - [Tooltip("The object that started the collision")] - public SharedGameObject collidedGameObject; - - private bool enteredCollision = false; - - public override TaskStatus OnUpdate() - { - return enteredCollision ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnEnd() - { - enteredCollision = false; - } - - public override void OnControllerColliderHit(ControllerColliderHit hit) - { - if (string.IsNullOrEmpty(tag.Value) || tag.Value.Equals(hit.gameObject.tag)) { - collidedGameObject.Value = hit.gameObject; - enteredCollision = true; - } - } - - public override void OnReset() - { - targetGameObject = null; - tag = ""; - collidedGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs.meta deleted file mode 100644 index 580c33094..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9ff7c43d9df5279489455a4ce2eb3b20 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/HasColliderHit.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs deleted file mode 100644 index 076cc3c32..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Returns Success if the character is grounded, otherwise Failure.")] - public class IsGrounded : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - return characterController.isGrounded ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs.meta deleted file mode 100644 index 3dab6c36c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e8541a996b0a37b4f8bce82dd23ddb84 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/IsGrounded.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs deleted file mode 100644 index ec9de4339..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("A more complex move function taking absolute movement deltas. Returns Success.")] - public class Move : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The amount to move")] - public SharedVector3 motion; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.Move(motion.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - motion = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs.meta deleted file mode 100644 index 2ef47eb4c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 546770f14f8265d4c83b94210630b644 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/Move.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs deleted file mode 100644 index 58d527cdb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Sets the center of the CharacterController. Returns Success.")] - public class SetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the CharacterController")] - public SharedVector3 center; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.center = center.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - center = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs.meta deleted file mode 100644 index f0ece3856..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1072c5d1f7d15b24d811ee2e52f5806f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs deleted file mode 100644 index 83020a356..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Sets the height of the CharacterController. Returns Success.")] - public class SetHeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The height of the CharacterController")] - public SharedFloat height; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.height = height.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - height = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs.meta deleted file mode 100644 index f211d103c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f3646fc892390f443ab43e4313cd0c6a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetHeight.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs deleted file mode 100644 index acf866e9e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Sets the radius of the CharacterController. Returns Success.")] - public class SetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the CharacterController")] - public SharedFloat radius; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.radius = radius.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - radius = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs.meta deleted file mode 100644 index 88f673b14..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d3d7c584aef3bd5468165685a1975862 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs deleted file mode 100644 index f265d1ac0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Sets the slope limit of the CharacterController. Returns Success.")] - public class SetSlopeLimit : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The slope limit of the CharacterController")] - public SharedFloat slopeLimit; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.slopeLimit = slopeLimit.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - slopeLimit = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs.meta deleted file mode 100644 index 371f2daf9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 65d4ccec4c868584a89d9037a6eec3e6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetSlopeLimit.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs deleted file mode 100644 index 4696d64fc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Sets the step offset of the CharacterController. Returns Success.")] - public class SetStepOffset : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The step offset of the CharacterController")] - public SharedFloat stepOffset; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.stepOffset = stepOffset.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - stepOffset = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs.meta deleted file mode 100644 index 165076212..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b062e83de9feb8a41a9e4989f2d65b97 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SetStepOffset.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs deleted file mode 100644 index ccd853e25..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCharacterController -{ - [TaskCategory("Unity/CharacterController")] - [TaskDescription("Moves the character with speed. Returns Success.")] - public class SimpleMove : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The speed of the movement")] - public SharedVector3 speed; - - private CharacterController characterController; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - characterController = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (characterController == null) { - Debug.LogWarning("CharacterController is null"); - return TaskStatus.Failure; - } - - characterController.SimpleMove(speed.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - speed = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs.meta deleted file mode 100644 index 222936cde..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c760a29b8a35c044d87b7a80a58f046c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CharacterController/SimpleMove.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D.meta deleted file mode 100644 index bde0971a6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: e179f1af407aa8b469c6d96d7c0e2563 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs deleted file mode 100644 index f1e0d2f76..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCircleCollider2D -{ - [TaskCategory("Unity/CircleCollider2D")] - [TaskDescription("Stores the offset of the CircleCollider2D. Returns Success.")] - public class GetOffset : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The offset of the CircleCollider2D")] - [RequiredField] - public SharedVector3 storeValue; - - private CircleCollider2D circleCollider2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - circleCollider2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (circleCollider2D == null) { - Debug.LogWarning("CircleCollider2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = circleCollider2D.offset; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs.meta deleted file mode 100644 index 0348e0bb7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 336c692acc5ff024988b77803ca15fac -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetOffset.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs deleted file mode 100644 index 24f5f05a2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCircleCollider2D -{ - [TaskCategory("Unity/CircleCollider2D")] - [TaskDescription("Stores the radius of the CircleCollider2D. Returns Success.")] - public class GetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the CircleCollider2D")] - [RequiredField] - public SharedFloat storeValue; - - private CircleCollider2D circleCollider2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - circleCollider2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (circleCollider2D == null) { - Debug.LogWarning("CircleCollider2D is null"); - return TaskStatus.Failure; - } - - storeValue.Value = circleCollider2D.radius; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs.meta deleted file mode 100644 index ccb875c52..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5301adcc69414e44681c1d4dc7ecde58 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/GetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs deleted file mode 100644 index c82abcfac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCircleCollider2D -{ - [TaskCategory("Unity/CircleCollider2D")] - [TaskDescription("Sets the offset of the CircleCollider2D. Returns Success.")] - public class SetOffset : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The offset of the CircleCollider2D")] - public SharedVector3 offset; - - private CircleCollider2D circleCollider2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - circleCollider2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (circleCollider2D == null) { - Debug.LogWarning("CircleCollider2D is null"); - return TaskStatus.Failure; - } - - circleCollider2D.offset = offset.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - offset = Vector3.zero; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs.meta deleted file mode 100644 index e461d2c82..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6784dbe1d7c00c44bbd9ec3557c10053 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetOffset.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs deleted file mode 100644 index 3613f5183..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityCircleCollider2D -{ - [TaskCategory("Unity/CircleCollider2D")] - [TaskDescription("Sets the radius of the CircleCollider2D. Returns Success.")] - public class SetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the CircleCollider2D")] - public SharedFloat radius; - - private CircleCollider2D circleCollider2D; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - circleCollider2D = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (circleCollider2D == null) { - Debug.LogWarning("CircleCollider2D is null"); - return TaskStatus.Failure; - } - - circleCollider2D.radius = radius.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - radius = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs.meta deleted file mode 100644 index 5e7ce43dd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a9f837093c996864d95d92cae654a8ba -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/CircleCollider2D/SetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider.meta deleted file mode 100644 index ce4182fde..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: cb2dc414c7a533a4da3e56a73ffae66a -folderAsset: yes -timeCreated: 1567507235 -licenseType: Store -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs deleted file mode 100644 index 9f37e3ae6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Collider -{ - [TaskCategory("Unity/Collider")] - [TaskDescription("Stores the enabled state of the collider. Returns Success.")] - public class GetEnabled : Action - { - [Tooltip("The Collider to use")] - public SharedCollider specifiedCollider; - [Tooltip("The enabled/disabled state")] - [RequiredField] - public SharedBool storeValue; - - public override TaskStatus OnUpdate() - { - if (specifiedCollider == null) { - Debug.LogWarning("SpecifiedObject is null"); - return TaskStatus.Failure; - } - - storeValue.Value = specifiedCollider.Value.enabled; - - return TaskStatus.Success; - } - - public override void OnReset() - { - specifiedCollider.Value = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs.meta deleted file mode 100644 index df525a7cc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5c25d5e795c9ec5498489871de79c3b4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Collider/GetEnabled.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs deleted file mode 100644 index 3c2bcff85..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Collider -{ - [TaskCategory("Unity/Collider")] - [TaskDescription("Enables/Disables the collider. Returns Success.")] - public class SetEnabled : Action - { - [Tooltip("The Behavior to use")] - public SharedCollider specifiedCollider; - [Tooltip("The enabled/disabled state")] - public SharedBool enabled; - - public override TaskStatus OnUpdate() - { - if (specifiedCollider == null) { - Debug.LogWarning("SpecifiedCollider is null"); - return TaskStatus.Failure; - } - - specifiedCollider.Value.enabled = enabled.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - specifiedCollider.Value = null; - enabled = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs.meta deleted file mode 100644 index 937f1743e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b09a9f05408671b4fbdda3531c9fe9d8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Collider/SetEnabled.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug.meta deleted file mode 100644 index fd66ec63d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: d1140cef910ebcb4fa9817c4ec7fe2df -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs deleted file mode 100644 index 2889d1a22..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityDebug -{ - [TaskCategory("Unity/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; - [Tooltip("Duration the line will be visible for in seconds.\nDefault: 0 means 1 frame.")] - public SharedFloat duration; - [Tooltip("Whether the line should show through world geometry.")] - public SharedBool depthTest = true; - - public override TaskStatus OnUpdate() - { - Debug.DrawLine(start.Value, end.Value, color.Value, duration.Value, depthTest.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - start = Vector3.zero; - end = Vector3.zero; - color = Color.white; - duration = 0f; - depthTest = true; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs.meta deleted file mode 100644 index d8607b0c2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 66a533f4f027ab44bb35e498d761ce50 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawLine.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs deleted file mode 100644 index 34d064e1e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityDebug -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs.meta deleted file mode 100644 index efa2b613f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 786ac0c09ce982e43b444670fdfe4c74 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Debug/DrawRay.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs deleted file mode 100644 index 3536d518e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs +++ /dev/null @@ -1,76 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityDebug -{ - [TaskDescription("LogFormat is analgous to Debug.LogFormat().\n" + - "It takes format string, substitutes arguments supplied a '{0-4}' and returns success.\n" + - "Any fields or arguments not supplied are ignored." + - "It can be used for debugging.")] - [TaskIcon("{SkinColor}LogIcon.png")] - public class LogFormat : Action - { - [Tooltip("Text format with {0}, {1}, etc")] - public SharedString textFormat; - - [Tooltip("Is this text an error?")] - public SharedBool logError; - - public SharedVariable arg0; - public SharedVariable arg1; - public SharedVariable arg2; - public SharedVariable arg3; - - public override TaskStatus OnUpdate() - { - var paramsArray = buildParamsArray(); - // Log the text and return success - if (logError.Value) { - Debug.LogErrorFormat(textFormat.Value, paramsArray); - } else { - Debug.LogFormat(textFormat.Value, paramsArray); - } - return TaskStatus.Success; - } - - private object[] buildParamsArray() { - object[] paramsArray; - if (isValid(arg3)) { - paramsArray = new object[4]; - paramsArray[3] = arg3.GetValue(); - paramsArray[2] = arg2.GetValue(); - paramsArray[1] = arg1.GetValue(); - paramsArray[0] = arg0.GetValue(); - } else if (isValid(arg2)) { - paramsArray = new object[3]; - paramsArray[2] = arg2.GetValue(); - paramsArray[1] = arg1.GetValue(); - paramsArray[0] = arg0.GetValue(); - } else if (isValid(arg1)) { - paramsArray = new object[2]; - paramsArray[1] = arg1.GetValue(); - paramsArray[0] = arg0.GetValue(); - } else if (isValid(arg0)) { - paramsArray = new object[1]; - paramsArray[0] = arg0.GetValue(); - } else { - return null; - } - return paramsArray; - } - - private bool isValid(SharedVariable sv) { - return null != sv && !sv.IsNone; - } - - public override void OnReset() - { - // Reset the properties back to their original values - textFormat = string.Empty; - logError = false; - arg0 = null; - arg1 = null; - arg2 = null; - arg3 = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs.meta deleted file mode 100644 index 9a90c6543..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 70765819b419e8a45b326e92edf17ef5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Debug/LogFormat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs deleted file mode 100644 index 96b5057fa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityDebug -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs.meta deleted file mode 100644 index 5291a0873..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c50983a88995f4f4197f7b39ca796667 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject.meta deleted file mode 100644 index c0d4b9409..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: c03de85966f0a834383cef512841e4a9 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs deleted file mode 100644 index ea41a2d40..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Returns Success if the GameObject is active in the hierarchy, otherwise Failure.")] - public class ActiveInHierarchy : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - public override TaskStatus OnUpdate() - { - return GetDefaultGameObject(targetGameObject.Value).activeInHierarchy ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs.meta deleted file mode 100644 index 97e053a06..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0bbe57db7a21ee94f86aef75bbcd6d18 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveInHierarchy.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs deleted file mode 100644 index 71a644b5c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Returns Success if the GameObject is active in the hierarchy, otherwise Failure.")] - public class ActiveSelf : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - public override TaskStatus OnUpdate() - { - return GetDefaultGameObject(targetGameObject.Value).activeSelf ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs.meta deleted file mode 100644 index 6dfee0ae9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 26a4530d0ecaa774aaf060511089ddc3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/ActiveSelf.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs deleted file mode 100644 index c7da78d97..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Returns Success if the layermasks match, otherwise Failure.")] - public class CompareLayerMask : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layermask to compare against")] - public LayerMask layermask; - - public override TaskStatus OnUpdate() - { - return ((1 << GetDefaultGameObject(targetGameObject.Value).layer) & layermask.value) != 0 ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs.meta deleted file mode 100644 index be2d5c01b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 1458e688aa4cc8449bd37ebdcf7903d6 -timeCreated: 1503157605 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareLayer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs deleted file mode 100644 index b91e094a9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Returns Success if tags match, otherwise Failure.")] - public class CompareTag : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The tag to compare against")] - public SharedString tag; - - public override TaskStatus OnUpdate() - { - return GetDefaultGameObject(targetGameObject.Value).CompareTag(tag.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - tag = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs.meta deleted file mode 100644 index 1762956ef..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fa50c2eedc866794890ff361bdd1d593 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/CompareTag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs deleted file mode 100644 index b91d45bf0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Destorys the specified GameObject. Returns Success.")] - public class Destroy : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Time to destroy the GameObject in")] - public float time; - - public override TaskStatus OnUpdate() - { - var destroyGameObject = GetDefaultGameObject(targetGameObject.Value); - if (time == 0) { - GameObject.Destroy(destroyGameObject); - } else { - GameObject.Destroy(destroyGameObject, time); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs.meta deleted file mode 100644 index 20bf24a18..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 42a90ad4cba90604b8be494aa74df349 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/Destroy.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs deleted file mode 100644 index 600c07428..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Destorys the specified GameObject immediately. Returns Success.")] - public class DestroyImmediate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - public override TaskStatus OnUpdate() - { - var destroyGameObject = GetDefaultGameObject(targetGameObject.Value); - GameObject.DestroyImmediate(destroyGameObject); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs.meta deleted file mode 100644 index ece399d20..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 81f8712bcbdbdbf4aad17ba5e1e20d8c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/DestroyImmediate.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs deleted file mode 100644 index c7b1f6902..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Finds a GameObject by name. Returns success if an object is found.")] - public class Find : Action - { - [Tooltip("The GameObject name to find")] - public SharedString gameObjectName; - [Tooltip("The object found by name")] - [RequiredField] - public SharedGameObject storeValue; - - public override TaskStatus OnUpdate() - { - storeValue.Value = GameObject.Find(gameObjectName.Value); - - return storeValue.Value != null ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - gameObjectName = null; - storeValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs.meta deleted file mode 100644 index 6d2c23abf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5388c9a6fc7770f44885176c24f68aaa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/Find.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs deleted file mode 100644 index c6056f218..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Finds a GameObject by tag. Returns Success.")] - public class FindGameObjectsWithTag : Action - { - [Tooltip("The tag of the GameObject to find")] - public SharedString tag; - [Tooltip("The objects found by name")] - [RequiredField] - public SharedGameObjectList storeValue; - - public override TaskStatus OnUpdate() - { - storeValue.Value.Clear(); - var gameObjects = GameObject.FindGameObjectsWithTag(tag.Value); - for (int i = 0; i < gameObjects.Length; ++i) { - storeValue.Value.Add(gameObjects[i]); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - tag.Value = null; - storeValue.Value = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs.meta deleted file mode 100644 index 525d91d0d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ccc3e1d2bf7cfc74089c17d593472f98 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindGameObjectsWithTag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs deleted file mode 100644 index 4730ebe24..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Finds a GameObject by tag. Returns success if an object is found.")] - public class FindWithTag : Action - { - [Tooltip("The tag of the GameObject to find")] - public SharedString tag; - [Tooltip("Should a random GameObject be found?")] - public SharedBool random; - [Tooltip("The object found by name")] - [RequiredField] - public SharedGameObject storeValue; - - public override TaskStatus OnUpdate() - { - if (random.Value) { - var gameObjects = GameObject.FindGameObjectsWithTag(tag.Value); - if (gameObjects == null || gameObjects.Length == 0) { return TaskStatus.Failure; } - storeValue.Value = gameObjects[Random.Range(0, gameObjects.Length)]; - } else { - storeValue.Value = GameObject.FindWithTag(tag.Value); - } - - return storeValue.Value != null ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - tag.Value = null; - storeValue.Value = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs.meta deleted file mode 100644 index e1dbf454d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d8768bdf841982f4aae662ee5dac3f2d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/FindWithTag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs deleted file mode 100644 index 387f3abd3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Returns the component of Type type if the game object has one attached, null if it doesn't. Returns Success.")] - public class GetComponent : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The type of component")] - public SharedString type; - [Tooltip("The component")] - [RequiredField] - public SharedObject storeValue; - - public override TaskStatus OnUpdate() - { - storeValue.Value = GetDefaultGameObject(targetGameObject.Value).GetComponent(type.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - type.Value = ""; - storeValue.Value = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs.meta deleted file mode 100644 index 8b31824fd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 46e3dd9b1b260584b893abde5f733359 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetComponent.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs deleted file mode 100644 index 2d271a3e0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Stores the GameObject tag. Returns Success.")] - public class GetTag : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Active state of the GameObject")] - [RequiredField] - public SharedString storeValue; - - public override TaskStatus OnUpdate() - { - storeValue.Value = GetDefaultGameObject(targetGameObject.Value).tag; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs.meta deleted file mode 100644 index 961a40689..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 44bf3273a8802dc408352f165f18c541 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/GetTag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs deleted file mode 100644 index c1929e274..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Instantiates a new GameObject. Returns Success.")] - public class Instantiate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the new GameObject")] - public SharedVector3 position; - [Tooltip("The rotation of the new GameObject")] - public SharedQuaternion rotation = Quaternion.identity; - [SharedRequired] - [Tooltip("The instantiated GameObject")] - public SharedGameObject storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = GameObject.Instantiate(targetGameObject.Value, position.Value, rotation.Value) as GameObject; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - rotation = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs.meta deleted file mode 100644 index 70b9057ec..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 804a64515d87a0546ad7c6c4408ed53f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/Instantiate.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs deleted file mode 100644 index 354fa41b8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Sends a message to the target GameObject. Returns Success.")] - public class SendMessage : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The message to send")] - public SharedString message; - [Tooltip("The value to send")] - public SharedGenericVariable value; - - public override TaskStatus OnUpdate() - { - if (value.Value != null) { - GetDefaultGameObject(targetGameObject.Value).SendMessage(message.Value, value.Value.value.GetValue()); - } else { - GetDefaultGameObject(targetGameObject.Value).SendMessage(message.Value); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - message = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs.meta deleted file mode 100644 index 674f84f2c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dd0f144b1db34024eaea548f6539d2ae -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/SendMessage.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs deleted file mode 100644 index f790089ab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Activates/Deactivates the GameObject. Returns Success.")] - public class SetActive : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Active state of the GameObject")] - public SharedBool active; - - public override TaskStatus OnUpdate() - { - GetDefaultGameObject(targetGameObject.Value).SetActive(active.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - active = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs.meta deleted file mode 100644 index 99f387038..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5237a810dcce11e499c1915171ec670b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetActive.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs deleted file mode 100644 index 283360b27..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject -{ - [TaskCategory("Unity/GameObject")] - [TaskDescription("Sets the GameObject tag. Returns Success.")] - public class SetTag : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The GameObject tag")] - public SharedString tag; - - public override TaskStatus OnUpdate() - { - GetDefaultGameObject(targetGameObject.Value).tag = tag.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - tag = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs.meta deleted file mode 100644 index 74b0f982b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e275477e6962d9b4fb90d7930bb6ff5a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/GameObject/SetTag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input.meta deleted file mode 100644 index 56aea24fb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 77642b8113f3f334d971d61be9516264 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs deleted file mode 100644 index d1a9f3728..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the acceleration value.")] - public class GetAcceleration : Action - { - [RequiredField] - [Tooltip("The stored result")] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Input.acceleration; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs.meta deleted file mode 100644 index 064196f7c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 06e82895d2abea24599ddfd6f0d7386a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetAcceleration.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs deleted file mode 100644 index 6338f95b0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the value of the specified axis and stores it in a float.")] - public class GetAxis : Action - { - [Tooltip("The name of the axis")] - public SharedString axisName; - [Tooltip("Axis values are in the range -1 to 1. Use the multiplier to set a larger range")] - public SharedFloat multiplier; - [RequiredField] - [Tooltip("The stored result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - var axisValue = Input.GetAxis(axisName.Value); - - // if variable set to none, assume multiplier of 1 - if (!multiplier.IsNone) { - axisValue *= multiplier.Value; - } - - storeResult.Value = axisValue; - return TaskStatus.Success; - } - - public override void OnReset() - { - axisName = ""; - multiplier = 1.0f; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs.meta deleted file mode 100644 index 5253a97cd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 84fa68d3aa9286f488ee60bb7f420079 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxis.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs deleted file mode 100644 index 8bf1bb073..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the raw value of the specified axis and stores it in a float.")] - public class GetAxisRaw : Action - { - [Tooltip("The name of the axis")] - public SharedString axisName; - [Tooltip("Axis values are in the range -1 to 1. Use the multiplier to set a larger range")] - public SharedFloat multiplier; - [RequiredField] - [Tooltip("The stored result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - var axisValue = Input.GetAxis(axisName.Value); - - // if variable set to none, assume multiplier of 1 - if (!multiplier.IsNone) { - axisValue *= multiplier.Value; - } - - storeResult.Value = axisValue; - return TaskStatus.Success; - } - - public override void OnReset() - { - axisName = ""; - multiplier = 1.0f; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs.meta deleted file mode 100644 index 93f9f99c4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d7ba1768defe9ae4489e2d849801caf2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetAxisRaw.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs deleted file mode 100644 index e52bd22a9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the state of the specified button.")] - public class GetButton : Action - { - [Tooltip("The name of the button")] - public SharedString buttonName; - [RequiredField] - [Tooltip("The stored result")] - public SharedBool storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Input.GetButton(buttonName.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - buttonName = "Fire1"; - storeResult = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs.meta deleted file mode 100644 index d816bb982..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7ca2e1ded24b0a144b628bb8ed81ccd0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetButton.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs deleted file mode 100644 index bb356ccb7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the pressed state of the specified key.")] - public class GetKey : Action - { - [Tooltip("The key to test.")] - public KeyCode key; - [RequiredField] - [Tooltip("The stored result")] - public SharedBool storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Input.GetKey(key); - return TaskStatus.Success; - } - - public override void OnReset() - { - key = KeyCode.None; - storeResult = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs.meta deleted file mode 100644 index 25cd1cbb7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8d91595c5c003b948abb908c7465a7ec -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetKey.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs deleted file mode 100644 index 94595b9f4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the state of the specified mouse button.")] - public class GetMouseButton : Action - { - [Tooltip("The index of the button")] - public SharedInt buttonIndex; - [RequiredField] - [Tooltip("The stored result")] - public SharedBool storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Input.GetMouseButton(buttonIndex.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - buttonIndex = 0; - storeResult = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs.meta deleted file mode 100644 index ba6172d39..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3449e6301a95d9e49a8f6b50ef862faa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetMouseButton.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs deleted file mode 100644 index d71d31e1a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Stores the mouse position.")] - public class GetMousePosition : Action - { - [RequiredField] - [Tooltip("The stored result")] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Input.mousePosition; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs.meta deleted file mode 100644 index 2734f2e2d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f11dbb85cfc5b3941ae4f82fa54b7d27 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/GetMousePosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs deleted file mode 100644 index 26d7d9814..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Returns success when the specified button is pressed.")] - public class IsButtonDown : Conditional - { - [Tooltip("The name of the button")] - public SharedString buttonName; - - public override TaskStatus OnUpdate() - { - return Input.GetButtonDown(buttonName.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - buttonName = "Fire1"; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs.meta deleted file mode 100644 index 4f97c74f8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 554c281a83ae5bb4bbcdf3bdeac6779e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonDown.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs deleted file mode 100644 index d3dafa495..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Returns success when the specified button is released.")] - public class IsButtonUp : Conditional - { - [Tooltip("The name of the button")] - public SharedString buttonName; - - public override TaskStatus OnUpdate() - { - return Input.GetButtonUp(buttonName.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - buttonName = "Fire1"; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs.meta deleted file mode 100644 index f53cdb845..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 71d9dda886873b943922eae52da81244 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/IsButtonUp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs deleted file mode 100644 index 51259664a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Returns success when the specified key is pressed.")] - public class IsKeyDown : Conditional - { - [Tooltip("The key to test")] - public KeyCode key; - - public override TaskStatus OnUpdate() - { - return Input.GetKeyDown(key) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - key = KeyCode.None; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs.meta deleted file mode 100644 index c5ac5581d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b4c02f1f071b9604389e1c1f1bfab3eb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyDown.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs deleted file mode 100644 index 889b54d57..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Returns success when the specified key is released.")] - public class IsKeyUp : Conditional - { - [Tooltip("The key to test")] - public KeyCode key; - - public override TaskStatus OnUpdate() - { - return Input.GetKeyUp(key) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - key = KeyCode.None; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs.meta deleted file mode 100644 index c9d9d0213..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7d8622d5540c851448ad036016f0f426 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/IsKeyUp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs deleted file mode 100644 index a095c99b1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Returns success when the specified mouse button is pressed.")] - public class IsMouseDown : Conditional - { - [Tooltip("The button index")] - public SharedInt buttonIndex; - - public override TaskStatus OnUpdate() - { - return Input.GetMouseButtonDown(buttonIndex.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - buttonIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs.meta deleted file mode 100644 index a8b084d78..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fd85264410cd9ac45b0c9c2e550f7c46 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseDown.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs deleted file mode 100644 index 4da08613c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityInput -{ - [TaskCategory("Unity/Input")] - [TaskDescription("Returns success when the specified mouse button is pressed.")] - public class IsMouseUp : Conditional - { - [Tooltip("The button index")] - public SharedInt buttonIndex; - - public override TaskStatus OnUpdate() - { - return Input.GetMouseButtonUp(buttonIndex.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - buttonIndex = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs.meta deleted file mode 100644 index dc1ed65c7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b2ecc8718d19d9b46832c51de0390245 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Input/IsMouseUp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask.meta deleted file mode 100644 index acfd7dc0b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 03592e079804666408280a195c972a69 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs deleted file mode 100644 index a5d0238e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLayerMask -{ - [TaskCategory("Unity/LayerMask")] - [TaskDescription("Gets the layer of a GameObject.")] - public class GetLayer : Action - { - [Tooltip("The GameObject to set the layer of")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the layer to get")] - [RequiredField] - public SharedString storeResult; - - public override TaskStatus OnUpdate() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - storeResult.Value = LayerMask.LayerToName(currentGameObject.layer); - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs.meta deleted file mode 100644 index f2768ad67..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4a7e0974f9cfb9945bb2d0f41ed55f10 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/LayerMask/GetLayer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs deleted file mode 100644 index 1e85c6797..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLayerMask -{ - [TaskCategory("Unity/LayerMask")] - [TaskDescription("Sets the layer of a GameObject.")] - public class SetLayer : Action - { - [Tooltip("The GameObject to set the layer of")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the layer to set")] - public SharedString layerName = "Default"; - - public override TaskStatus OnUpdate() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - currentGameObject.layer = LayerMask.NameToLayer(layerName.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - layerName = "Default"; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs.meta deleted file mode 100644 index fd32cb9ac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 483904cd6081c8440a146b11481d6623 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/LayerMask/SetLayer.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light.meta deleted file mode 100644 index 55d3e0b2e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 48823f7ab681c2b4f9439c617555cf7a -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs deleted file mode 100644 index b6971a12f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the color of the light.")] - public class GetColor : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The color to store")] - public SharedColor storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue = light.color; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Color.white; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs.meta deleted file mode 100644 index 69bb2f12e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 935c3e08c991a524fa451ba010bb7077 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetColor.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs deleted file mode 100644 index 4c1965049..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the light's cookie size.")] - public class GetCookieSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The size to store")] - public SharedFloat storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue = light.cookieSize; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs.meta deleted file mode 100644 index bcdcf3dad..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4c382d40893d45d46842714355d4cab4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetCookieSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs deleted file mode 100644 index e8c6b355c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the intensity of the light.")] - public class GetIntensity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The intensity to store")] - public SharedFloat storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue.Value = light.intensity; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs.meta deleted file mode 100644 index e1e1062e2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8af031ee741aec645bcf65ae806e78a7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetIntensity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs deleted file mode 100644 index d735777e9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the range of the light.")] - public class GetRange : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The range to store")] - public SharedFloat storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue = light.range; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs.meta deleted file mode 100644 index c53ed1aac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5ebab1924e0212c4ca589526a033fda6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetRange.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs deleted file mode 100644 index 55be16a7a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the shadow bias of the light.")] - public class GetShadowBias : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The shadow bias to store")] - public SharedFloat storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue = light.shadowBias; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs.meta deleted file mode 100644 index b1a351aa0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9d0cbb27de892b44193aaa9f12842ed2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowBias.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs deleted file mode 100644 index a5b49c482..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the color of the light.")] - public class GetShadowStrength : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The color to store")] - public SharedFloat storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue = light.shadowStrength; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs.meta deleted file mode 100644 index c81488475..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7a7fe83e412ff344888939e6a974a064 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetShadowStrength.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs deleted file mode 100644 index e17266097..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Stores the spot angle of the light.")] - public class GetSpotAngle : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [RequiredField] - [Tooltip("The spot angle to store")] - public SharedFloat storeValue; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - storeValue = light.spotAngle; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs.meta deleted file mode 100644 index 3de371575..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4dfc8df823e06cd45a09d929a060f99d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/GetSpotAngle.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs deleted file mode 100644 index aeed40a09..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the color of the light.")] - public class SetColor : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The color to set")] - public SharedColor color; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.color = color.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - color = Color.white; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs.meta deleted file mode 100644 index f1949ca97..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0ba683b0b18385042b3351c660f29d33 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetColor.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs deleted file mode 100644 index 785502be7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the cookie of the light.")] - public class SetCookie : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The cookie to set")] - public Texture2D cookie; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.cookie = cookie; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - cookie = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs.meta deleted file mode 100644 index dd306769e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 374f9a87dc387a04585b87f187d019c5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookie.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs deleted file mode 100644 index aeda25f63..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the light's cookie size.")] - public class SetCookieSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The size to set")] - public SharedFloat cookieSize; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.cookieSize = cookieSize.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - cookieSize = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs.meta deleted file mode 100644 index 74538fbda..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fbc2d3865f928144ea551b1d927ddc96 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetCookieSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs deleted file mode 100644 index 6ecf52375..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the culling mask of the light.")] - public class SetCullingMask : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The culling mask to set")] - public LayerMask cullingMask; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.cullingMask = cullingMask.value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - cullingMask = -1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs.meta deleted file mode 100644 index 43d9bd294..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3f67673818b7e914ebf088b3752d716b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetCullingMask.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs deleted file mode 100644 index d44c57318..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the intensity of the light.")] - public class SetIntensity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The intensity to set")] - public SharedFloat intensity; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.intensity = intensity.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - intensity = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs.meta deleted file mode 100644 index 359d6b605..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1f32aa9b9681f0a4285bd60ac0607d00 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetIntensity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs deleted file mode 100644 index 9866a174f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the range of the light.")] - public class SetRange : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The range to set")] - public SharedFloat range; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.range = range.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - range = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs.meta deleted file mode 100644 index 6cd16e2e6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f0b5d0c0a07806244a3c5b15e29cf90c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetRange.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs deleted file mode 100644 index 1ea35ab33..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the shadow bias of the light.")] - public class SetShadowBias : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The shadow bias to set")] - public SharedFloat shadowBias; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.shadowBias = shadowBias.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - shadowBias = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs.meta deleted file mode 100644 index a20e6def7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f2b374e3c2e26e94ba76dd68290ff538 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowBias.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs deleted file mode 100644 index 486f31cbd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the shadow strength of the light.")] - public class SetShadowSoftnessStrength : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The shadow strength to set")] - public SharedFloat shadowStrength; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.shadowStrength = shadowStrength.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - shadowStrength = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs.meta deleted file mode 100644 index ce9028fe8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 611e5846c0413be46bbc44fbd256b4e9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadowStrength.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs deleted file mode 100644 index dabe75264..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the shadow type of the light.")] - public class SetShadows : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The shadow type to set")] - public LightShadows shadows; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.shadows = shadows; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs.meta deleted file mode 100644 index edc332d59..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b6226eb03ad729445bc7ccfb1f0cd89d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetShadows.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs deleted file mode 100644 index 28b3ff688..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the spot angle of the light.")] - public class SetSpotAngle : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The spot angle to set")] - public SharedFloat spotAngle; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.spotAngle = spotAngle.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - spotAngle = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs.meta deleted file mode 100644 index 8cbdedb7c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9a8b9b0654618fe48953e059d4aa5ee3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetSpotAngle.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs deleted file mode 100644 index f4706a8ff..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityLight -{ - [TaskCategory("Unity/Light")] - [TaskDescription("Sets the type of the light.")] - public class SetType : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The type to set")] - public LightType type; - - // cache the light component - private Light light; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - light = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (light == null) { - Debug.LogWarning("Light is null"); - return TaskStatus.Failure; - } - - light.type = type; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs.meta deleted file mode 100644 index 5ee737ddb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 85cae5f82bfcbfb41ac7c66464eef85f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Light/SetType.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math.meta deleted file mode 100644 index 862668e71..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: fffa44303fdbffe4289373d6e5087b4a -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs deleted file mode 100644 index e176fa77d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Performs a comparison between two bools.")] - public class BoolComparison : Conditional - { - [Tooltip("The first bool")] - public SharedBool bool1; - [Tooltip("The second bool")] - public SharedBool bool2; - - public override TaskStatus OnUpdate() - { - return bool1.Value == bool2.Value ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - bool1 = false; - bool2 = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs.meta deleted file mode 100644 index 717e21442..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: abaa3d78e68f249428f3be7acae86b0d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/BoolComparison.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs deleted file mode 100644 index 351e31530..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Flips the value of the bool.")] - public class BoolFlip : Action - { - [Tooltip("The bool to flip the value of")] - public SharedBool boolVariable; - - public override TaskStatus OnUpdate() - { - boolVariable.Value = !boolVariable.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - boolVariable.Value = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs.meta deleted file mode 100644 index 1834ac745..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 54aae1e47fe3be6458751bf1f9defe8f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/BoolFlip.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs deleted file mode 100644 index 7311642c5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs +++ /dev/null @@ -1,50 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Performs a math operation on two bools: AND, OR, NAND, or XOR.")] - public class BoolOperator : Action - { - public enum Operation - { - AND, - OR, - NAND, - XOR - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first bool")] - public SharedBool bool1; - [Tooltip("The second bool")] - public SharedBool bool2; - [Tooltip("The variable to store the result")] - public SharedBool storeResult; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.AND: - storeResult.Value = bool1.Value && bool2.Value; - break; - case Operation.OR: - storeResult.Value = bool1.Value || bool2.Value; - break; - case Operation.NAND: - storeResult.Value = !(bool1.Value && bool2.Value); - break; - case Operation.XOR: - storeResult.Value = bool1.Value ^ bool2.Value; - break; - } - return TaskStatus.Success; - } - - public override void OnReset() - { - operation = Operation.AND; - bool1 = false; - bool2 = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs.meta deleted file mode 100644 index ad020b473..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bd7b9dfddd114be4a8c8a8521262970d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/BoolOperator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs deleted file mode 100644 index b5be228d2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Stores the absolute value of the float.")] - public class FloatAbs : Action - { - [Tooltip("The float to return the absolute value of")] - public SharedFloat floatVariable; - - public override TaskStatus OnUpdate() - { - floatVariable.Value = Mathf.Abs(floatVariable.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - floatVariable = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs.meta deleted file mode 100644 index 53b2a5c7d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ab5531c4ed335b643a6f310c048a6b00 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/FloatAbs.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs deleted file mode 100644 index 667b09766..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Clamps the float between two values.")] - public class FloatClamp : Action - { - [Tooltip("The float to clamp")] - public SharedFloat floatVariable; - [Tooltip("The maximum value of the float")] - public SharedFloat minValue; - [Tooltip("The maximum value of the float")] - public SharedFloat maxValue; - - public override TaskStatus OnUpdate() - { - floatVariable.Value = Mathf.Clamp(floatVariable.Value, minValue.Value, maxValue.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - floatVariable = 0; - minValue = 0; - maxValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs.meta deleted file mode 100644 index 4dcb9c5f9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 75c3634f2c8f1dd49b826a7ac0c7bdbe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/FloatClamp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs deleted file mode 100644 index a1d238224..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs +++ /dev/null @@ -1,50 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Performs comparison between two floats: less than, less than or equal to, equal to, not equal to, greater than or equal to, or greater than.")] - public class FloatComparison : Conditional - { - public enum Operation - { - LessThan, - LessThanOrEqualTo, - EqualTo, - NotEqualTo, - GreaterThanOrEqualTo, - GreaterThan - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first float")] - public SharedFloat float1; - [Tooltip("The second float")] - public SharedFloat float2; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.LessThan: - return float1.Value < float2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.LessThanOrEqualTo: - return float1.Value <= float2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.EqualTo: - return UnityEngine.Mathf.Approximately(float1.Value, float2.Value) ? TaskStatus.Success : TaskStatus.Failure; - case Operation.NotEqualTo: - return !UnityEngine.Mathf.Approximately(float1.Value, float2.Value) ? TaskStatus.Success : TaskStatus.Failure; - case Operation.GreaterThanOrEqualTo: - return float1.Value >= float2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.GreaterThan: - return float1.Value > float2.Value ? TaskStatus.Success : TaskStatus.Failure; - } - return TaskStatus.Failure; - } - - public override void OnReset() - { - operation = Operation.LessThan; - float1.Value = 0; - float2.Value = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs.meta deleted file mode 100644 index c1422d16c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 79c81f4e67dbdc44880734e78153117c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/FloatComparison.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs deleted file mode 100644 index d222db4ec..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs +++ /dev/null @@ -1,65 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Performs a math operation on two floats: Add, Subtract, Multiply, Divide, Min, or Max.")] - public class FloatOperator : Action - { - public enum Operation - { - Add, - Subtract, - Multiply, - Divide, - Min, - Max, - Modulo - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first float")] - public SharedFloat float1; - [Tooltip("The second float")] - public SharedFloat float2; - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.Add: - storeResult.Value = float1.Value + float2.Value; - break; - case Operation.Subtract: - storeResult.Value = float1.Value - float2.Value; - break; - case Operation.Multiply: - storeResult.Value = float1.Value * float2.Value; - break; - case Operation.Divide: - storeResult.Value = float1.Value / float2.Value; - break; - case Operation.Min: - storeResult.Value = Mathf.Min(float1.Value, float2.Value); - break; - case Operation.Max: - storeResult.Value = Mathf.Max(float1.Value, float2.Value); - break; - case Operation.Modulo: - storeResult.Value = float1.Value % float2.Value; - break; - } - return TaskStatus.Success; - } - - public override void OnReset() - { - operation = Operation.Add; - float1 = 0; - float2 = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs.meta deleted file mode 100644 index d6a33a649..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9144ac2a8b796c941aeb3d6a4bc2cf7c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/FloatOperator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs deleted file mode 100644 index d2ae96a41..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Stores the absolute value of the int.")] - public class IntAbs : Action - { - [Tooltip("The int to return the absolute value of")] - public SharedInt intVariable; - - public override TaskStatus OnUpdate() - { - intVariable.Value = Mathf.Abs(intVariable.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - intVariable = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs.meta deleted file mode 100644 index e67d341f6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8edcbab77068fe044842381cfe0acc19 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/IntAbs.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs deleted file mode 100644 index f26a11041..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Clamps the int between two values.")] - public class IntClamp : Action - { - [Tooltip("The int to clamp")] - public SharedInt intVariable; - [Tooltip("The maximum value of the int")] - public SharedInt minValue; - [Tooltip("The maximum value of the int")] - public SharedInt maxValue; - - public override TaskStatus OnUpdate() - { - intVariable.Value = Mathf.Clamp(intVariable.Value, minValue.Value, maxValue.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - intVariable = 0; - minValue = 0; - maxValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs.meta deleted file mode 100644 index de4f54ca9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 67cbe30015f2b4940a069cbbee22d888 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/IntClamp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs deleted file mode 100644 index 24d55a93e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs +++ /dev/null @@ -1,50 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Performs comparison between two integers: less than, less than or equal to, equal to, not equal to, greater than or equal to, or greater than.")] - public class IntComparison : Conditional - { - public enum Operation - { - LessThan, - LessThanOrEqualTo, - EqualTo, - NotEqualTo, - GreaterThanOrEqualTo, - GreaterThan - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first integer")] - public SharedInt integer1; - [Tooltip("The second integer")] - public SharedInt integer2; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.LessThan: - return integer1.Value < integer2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.LessThanOrEqualTo: - return integer1.Value <= integer2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.EqualTo: - return integer1.Value == integer2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.NotEqualTo: - return integer1.Value != integer2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.GreaterThanOrEqualTo: - return integer1.Value >= integer2.Value ? TaskStatus.Success : TaskStatus.Failure; - case Operation.GreaterThan: - return integer1.Value > integer2.Value ? TaskStatus.Success : TaskStatus.Failure; - } - return TaskStatus.Failure; - } - - public override void OnReset() - { - operation = Operation.LessThan; - integer1.Value = 0; - integer2.Value = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs.meta deleted file mode 100644 index beecdd19d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 99108c35b6d8e9942b8cf441a63f97b5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/IntComparison.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs deleted file mode 100644 index f104ebbc1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Performs a math operation on two integers: Add, Subtract, Multiply, Divide, Min, or Max.")] - public class IntOperator : Action - { - public enum Operation - { - Add, - Subtract, - Multiply, - Divide, - Min, - Max, - Modulo - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first integer")] - public SharedInt integer1; - [Tooltip("The second integer")] - public SharedInt integer2; - [RequiredField] - [Tooltip("The variable to store the result")] - public SharedInt storeResult; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.Add: - storeResult.Value = integer1.Value + integer2.Value; - break; - case Operation.Subtract: - storeResult.Value = integer1.Value - integer2.Value; - break; - case Operation.Multiply: - storeResult.Value = integer1.Value * integer2.Value; - break; - case Operation.Divide: - storeResult.Value = integer1.Value / integer2.Value; - break; - case Operation.Min: - storeResult.Value = Mathf.Min(integer1.Value, integer2.Value); - break; - case Operation.Max: - storeResult.Value = Mathf.Max(integer1.Value, integer2.Value); - break; - case Operation.Modulo: - storeResult.Value = integer1.Value % integer2.Value; - break; - } - return TaskStatus.Success; - } - - public override void OnReset() - { - operation = Operation.Add; - integer1 = 0; - integer2 = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs.meta deleted file mode 100644 index f943860b5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 84208004fb80c0945acc5685aa0a2681 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/IntOperator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs deleted file mode 100644 index 076b93f36..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Is the float a positive value?")] - public class IsFloatPositive : Conditional - { - [Tooltip("The float to check if positive")] - public SharedFloat floatVariable; - - public override TaskStatus OnUpdate() - { - return floatVariable.Value > 0 ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - floatVariable = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs.meta deleted file mode 100644 index 39a9df238..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: db01d0da1f282134ca0ff7332eb19208 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/IsFloatPositive.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs deleted file mode 100644 index a69e35128..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Is the int a positive value?")] - public class IsIntPositive : Conditional - { - [Tooltip("The int to check if positive")] - public SharedInt intVariable; - - public override TaskStatus OnUpdate() - { - return intVariable.Value > 0 ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - intVariable = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs.meta deleted file mode 100644 index 6889a4fc4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0caff63c23ae17343a455fcbe6eab40a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/IsIntPositive.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs deleted file mode 100644 index 384f591dd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Lerp the float by an amount.")] - public class Lerp : Action - { - [Tooltip("The from value")] - public SharedFloat fromValue; - [Tooltip("The to value")] - public SharedFloat toValue; - [Tooltip("The amount to lerp")] - public SharedFloat lerpAmount; - [Tooltip("The lerp resut")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Mathf.Lerp(fromValue.Value, toValue.Value, lerpAmount.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromValue = 0; - toValue = 0; - lerpAmount = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs.meta deleted file mode 100644 index 91b2882ed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 355f3f83182cc434cb3a1bfb66862e29 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/Lerp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs deleted file mode 100644 index dcde263ee..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Lerp the angle by an amount.")] - public class LerpAngle : Action - { - [Tooltip("The from value")] - public SharedFloat fromValue; - [Tooltip("The to value")] - public SharedFloat toValue; - [Tooltip("The amount to lerp")] - public SharedFloat lerpAmount; - [Tooltip("The lerp resut")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Mathf.LerpAngle(fromValue.Value, toValue.Value, lerpAmount.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromValue = 0; - toValue = 0; - lerpAmount = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs.meta deleted file mode 100644 index 3ddaf4001..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c3b148edcb926b744a2bb789f7967e24 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/LerpAngle.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs deleted file mode 100644 index 8a2e2fa55..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs +++ /dev/null @@ -1,18 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Sets a random bool value")] - public class RandomBool : Action - { - [Tooltip("The variable to store the result")] - public SharedBool storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Random.value < 0.5f; - return TaskStatus.Success; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs.meta deleted file mode 100644 index f539f2e7e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 76d2565ca99ca26459dbefb44dcac109 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/RandomBool.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs deleted file mode 100644 index 1c6ef2ebf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Sets a random float value")] - public class RandomFloat : Action - { - [Tooltip("The minimum amount")] - public SharedFloat min; - [Tooltip("The maximum amount")] - public SharedFloat max; - [Tooltip("Is the maximum value inclusive?")] - public bool inclusive; - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - if (inclusive) { - storeResult.Value = Random.Range(min.Value, max.Value); - } else { - storeResult.Value = Random.Range(min.Value, max.Value - 0.00001f); - } - return TaskStatus.Success; - } - - public override void OnReset() - { - min.Value = 0; - max.Value = 0; - inclusive = false; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs.meta deleted file mode 100644 index 58a07468b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9f81e111c77731b418178f1226975c3f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/RandomFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs deleted file mode 100644 index 7ac570895..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Sets a random int value")] - public class RandomInt : Action - { - [Tooltip("The minimum amount")] - public SharedInt min; - [Tooltip("The maximum amount")] - public SharedInt max; - [Tooltip("Is the maximum value inclusive?")] - public bool inclusive; - [Tooltip("The variable to store the result")] - public SharedInt storeResult; - - public override TaskStatus OnUpdate() - { - if (inclusive) { - storeResult.Value = Random.Range(min.Value, max.Value + 1); - } else { - storeResult.Value = Random.Range(min.Value, max.Value); - } - return TaskStatus.Success; - } - - public override void OnReset() - { - min.Value = 0; - max.Value = 0; - inclusive = false; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs.meta deleted file mode 100644 index 195e6e25e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 067384c41f33cff49bcdf6adec9da049 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/RandomInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs deleted file mode 100644 index f95dced4b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Sets a bool value")] - public class SetBool : Action - { - [Tooltip("The bool value to set")] - public SharedBool boolValue; - [Tooltip("The variable to store the result")] - public SharedBool storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = boolValue.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - boolValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs.meta deleted file mode 100644 index 42018ffbf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 55f244424a532d24bba59542e2f0fc59 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/SetBool.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs deleted file mode 100644 index 11f79a6cd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Sets a float value")] - public class SetFloat : Action - { - [Tooltip("The float value to set")] - public SharedFloat floatValue; - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = floatValue.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - floatValue = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs.meta deleted file mode 100644 index fc9af394a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4d915065ba447c64ba05f8e2841c6efd -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/SetFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs deleted file mode 100644 index 03af02d04..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.Math -{ - [TaskCategory("Unity/Math")] - [TaskDescription("Sets an int value")] - public class SetInt : Action - { - [Tooltip("The int value to set")] - public SharedInt intValue; - [Tooltip("The variable to store the result")] - public SharedInt storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = intValue.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - intValue = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs.meta deleted file mode 100644 index 9907e0a72..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: da57a0a43f227e445b9311bae043401f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Math/SetInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent.meta deleted file mode 100644 index bbaf1415b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 7e052e6171d06ed43bea8c8143e7bce5 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs deleted file mode 100644 index 58945db11..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Gets the maximum acceleration of an agent as it follows a path, given in units / sec^2.. Returns Success.")] - public class GetAcceleration : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The NavMeshAgent acceleration")] - public SharedFloat storeValue; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - storeValue.Value = navMeshAgent.acceleration; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs.meta deleted file mode 100644 index 69f087d71..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7e00211632663cc43bc88ab068ab5d44 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAcceleration.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs deleted file mode 100644 index d912e57e1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Gets the maximum turning speed in (deg/s) while following a path.. Returns Success.")] - public class GetAngularSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The NavMeshAgent angular speed")] - public SharedFloat storeValue; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - storeValue.Value = navMeshAgent.angularSpeed; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs.meta deleted file mode 100644 index 8524a594c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 110bcd7b4d1baae4096b5da6737c1e16 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetAngularSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs deleted file mode 100644 index a937e61c4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Gets the destination of the agent in world-space units. Returns Success.")] - public class GetDestination : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The NavMeshAgent destination")] - public SharedVector3 storeValue; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - storeValue.Value = navMeshAgent.destination; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs.meta deleted file mode 100644 index e28d64439..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4368ae3e22d36604697d420dff004cbe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetDestination.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs deleted file mode 100644 index 1c5328a4c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Gets the stop status. Returns Success.")] - public class GetIsStopped : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The stop status")] - public SharedBool storeValue; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - storeValue.Value = navMeshAgent.isStopped; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs.meta deleted file mode 100644 index 3aa93c64a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 16a58d9763ce6c34690e0946a64c4176 -timeCreated: 1507381813 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetIsStopped.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs deleted file mode 100644 index 782ef8c62..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Gets the distance between the agent's position and the destination on the current path. Returns Success.")] - public class GetRemainingDistance : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The remaining distance")] - public SharedFloat storeValue; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - storeValue.Value = navMeshAgent.remainingDistance; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs.meta deleted file mode 100644 index 197f93bdf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ab046b37543b6744aa440cd708a93b81 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetRemainingDistance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs deleted file mode 100644 index 6e18c9da1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Gets the maximum movement speed when following a path. Returns Success.")] - public class GetSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The NavMeshAgent speed")] - public SharedFloat storeValue; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - storeValue.Value = navMeshAgent.speed; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs.meta deleted file mode 100644 index 341ba471f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b6397854a3aea4b44a5ab4ccf98d082d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/GetSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs deleted file mode 100644 index aea54fafc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Is the agent stopped?")] - public class IsStopped : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - return navMeshAgent.isStopped ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs.meta deleted file mode 100644 index 38b6bd0e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 1b7f86ab194623f4997c385d2cce0caf -timeCreated: 1507329647 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/IsStopped.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs deleted file mode 100644 index a7c480896..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Apply relative movement to the current position. Returns Success.")] - public class Move : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The relative movement vector")] - public SharedVector3 offset; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.Move(offset.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - offset = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs.meta deleted file mode 100644 index 3538fc5cc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 55ea16e678f6fae47a46affd3d22b883 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Move.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs deleted file mode 100644 index 0c1357022..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Clears the current path. Returns Success.")] - public class ResetPath : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.ResetPath(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs.meta deleted file mode 100644 index d140d2c3a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e90973887b9e7d04aafc5d13ecdfc8b9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/ResetPath.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs deleted file mode 100644 index 4faf7ad3e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Resumes the movement along the current path after a pause. Returns Success.")] - public class Resume : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.isStopped = false; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs.meta deleted file mode 100644 index ee3c8e36e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2c87e343e0ec23041b0cf7d8090d4814 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Resume.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs deleted file mode 100644 index 3552b5a2e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Sets the maximum acceleration of an agent as it follows a path, given in units / sec^2. Returns Success.")] - public class SetAcceleration : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The NavMeshAgent acceleration")] - public SharedFloat acceleration; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.acceleration = acceleration.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - acceleration = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs.meta deleted file mode 100644 index df38f2412..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a8357209bccc16442b549c580872bb05 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAcceleration.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs deleted file mode 100644 index 1fa682f6a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Sets the maximum turning speed in (deg/s) while following a path. Returns Success.")] - public class SetAngularSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The NavMeshAgent angular speed")] - public SharedFloat angularSpeed; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.angularSpeed = angularSpeed.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularSpeed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs.meta deleted file mode 100644 index 0faf66a95..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0d8e213aa17540848b83b17ba1609c74 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetAngularSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs deleted file mode 100644 index 0ec07bc15..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Sets the destination of the agent in world-space units. Returns Success if the destination is valid.")] - public class SetDestination: Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [SharedRequired] - [Tooltip("The NavMeshAgent destination")] - public SharedVector3 destination; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - return navMeshAgent.SetDestination(destination.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - destination = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs.meta deleted file mode 100644 index e171feeef..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 55d9c2d20e895104181ae1b484868ead -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetDestination.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs deleted file mode 100644 index 36ad7a593..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Sets the stop status. Returns Success.")] - public class SetIsStopped : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The stop status")] - public SharedBool isStopped; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.isStopped = isStopped.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs.meta deleted file mode 100644 index 65bc861c8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 8b7446e67db5ff34a88b8fbc7899e5e9 -timeCreated: 1507381999 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetIsStopped.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs deleted file mode 100644 index d54f91e84..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Sets the maximum movement speed when following a path. Returns Success.")] - public class SetSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The NavMeshAgent speed")] - public SharedFloat speed; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.speed = speed.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - speed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs.meta deleted file mode 100644 index 6db9c1a9d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 34372b45870504b419f34165fb1fa4fb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/SetSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs deleted file mode 100644 index f168fc61e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Stop movement of this agent along its current path. Returns Success.")] - public class Stop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.isStopped = true; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs.meta deleted file mode 100644 index a7e0650df..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b20958b8b92e47f40ba3178c99576182 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Stop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs deleted file mode 100644 index 37b0bdf1b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; -using UnityEngine.AI; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityNavMeshAgent -{ - [TaskCategory("Unity/NavMeshAgent")] - [TaskDescription("Warps agent to the provided position. Returns Success.")] - public class Warp : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position to warp to")] - public SharedVector3 newPosition; - - // cache the navmeshagent component - private NavMeshAgent navMeshAgent; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - navMeshAgent = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (navMeshAgent == null) { - Debug.LogWarning("NavMeshAgent is null"); - return TaskStatus.Failure; - } - - navMeshAgent.Warp(newPosition.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - newPosition = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs.meta deleted file mode 100644 index 052e7c623..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9d2356bfaf0a64b4d9d65d32708630db -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/NavMeshAgent/Warp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem.meta deleted file mode 100644 index 7cee88f91..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 298b24307673c7a49b5cabe1dbcae115 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs deleted file mode 100644 index d6ffc68c0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Clear the Particle System.")] - public class Clear : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Clear(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs.meta deleted file mode 100644 index e6bee4a7d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: de273e542591d5946a8728190438ae27 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Clear.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs deleted file mode 100644 index ef2f9c945..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores the duration of the Particle System.")] - public class GetDuration : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The duration of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.main.duration; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs.meta deleted file mode 100644 index 7dffd6aba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 02a4d610e82f1854c87701c4d51957fb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetDuration.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs deleted file mode 100644 index 6313f4fad..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores if the Particle System is emitting particles.")] - public class GetEnableEmission : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Is the Particle System emitting particles?")] - [RequiredField] - public SharedBool storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.emission.enabled; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs.meta deleted file mode 100644 index 788c6f6da..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 81dc1a241a2c872409a7919742df7581 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetEnableEmission.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs deleted file mode 100644 index ca5417038..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores if the Particle System should loop.")] - public class GetLoop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Should the ParticleSystem loop?")] - [RequiredField] - public SharedBool storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.main.loop; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = false; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs.meta deleted file mode 100644 index ed4320d4e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 82f4ee8cf50887a4488fe6d0da18afc0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetLoop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs deleted file mode 100644 index a3344e494..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores the max particles of the Particle System.")] - public class GetMaxParticles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The max particles of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.main.maxParticles; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs.meta deleted file mode 100644 index 42176bfcf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 429771af65df81c49aaf4b34630473fe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetMaxParticles.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs deleted file mode 100644 index c5b6e664f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores the particle count of the Particle System.")] - public class GetParticleCount : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The particle count of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.particleCount; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs.meta deleted file mode 100644 index 7fd77bde7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f32e2ff9de4ff7b47a256ac3b51123c6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetParticleCount.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs deleted file mode 100644 index 8a7b93e98..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores the playback speed of the Particle System.")] - public class GetPlaybackSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - storeResult.Value = mainParticleSystem.simulationSpeed; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs.meta deleted file mode 100644 index db7c5d2ac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f8f29f170ac706b498e7c933136d8036 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetPlaybackSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs deleted file mode 100644 index c9f73dad6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stores the time of the Particle System.")] - public class GetTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.time; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs.meta deleted file mode 100644 index 3e1046af1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9b15c7efbf98f7649adf8dd4474b0579 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/GetTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs deleted file mode 100644 index baef730e5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Is the Particle System alive?")] - public class IsAlive : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.IsAlive() ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs.meta deleted file mode 100644 index 04c90952a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3d554784e9a9fa040a2446402ba3f10e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsAlive.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs deleted file mode 100644 index 53b61fc75..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Is the Particle System paused?")] - public class IsPaused : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.isPaused ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs.meta deleted file mode 100644 index 94bc449f7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e4e9ab132f20dfa4095b3c90303ebf74 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPaused.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs deleted file mode 100644 index d27d63bdb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Is the Particle System playing?")] - public class IsPlaying : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.isPlaying ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs.meta deleted file mode 100644 index e1b50179a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 654b51e99f64bfb489e12866a569f00e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsPlaying.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs deleted file mode 100644 index 2820df745..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Is the Particle System stopped?")] - public class IsStopped : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.isStopped ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs.meta deleted file mode 100644 index d1e2ee1c8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c719a7379c22b184380b4e63ccdfd064 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/IsStopped.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs deleted file mode 100644 index dc93485c9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Pause the Particle System.")] - public class Pause : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Pause(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs.meta deleted file mode 100644 index 21cbd69a6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c9c9cc56691817b49af4fd1cfbc3e363 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Pause.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs deleted file mode 100644 index 907aba4d6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Play the Particle System.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Play(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs.meta deleted file mode 100644 index 9561dd728..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a8ffb889d35074d4fb08d8502155c0b2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Play.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs deleted file mode 100644 index 8248738c2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Enables or disables the Particle System emission.")] - public class SetEnableEmission : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Enable the ParticleSystem emissions?")] - public SharedBool enable; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - var emission = particleSystem.emission; - emission.enabled = enable.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - enable = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs.meta deleted file mode 100644 index 5bd414806..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f7c295b4d24628146a885d21bf699993 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetEnableEmission.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs deleted file mode 100644 index ea13ccd01..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets if the Particle System should loop.")] - public class SetLoop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Should the ParticleSystem loop?")] - public SharedBool loop; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.loop = loop.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - loop = false; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs.meta deleted file mode 100644 index a478eb53f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b9fa90adc0377cc4592de00e410a4060 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetLoop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs deleted file mode 100644 index e37909e61..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the max particles of the Particle System.")] - public class SetMaxParticles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The max particles of the ParticleSystem")] - public SharedInt maxParticles; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.maxParticles = maxParticles.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - maxParticles = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs.meta deleted file mode 100644 index 6c527452a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: eadca930ad32a404886060ee43e4d802 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetMaxParticles.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs deleted file mode 100644 index e4eabc6db..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the playback speed of the Particle System.")] - public class SetPlaybackSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the ParticleSystem")] - public SharedFloat playbackSpeed = 1; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.simulationSpeed = playbackSpeed.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - playbackSpeed = 1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs.meta deleted file mode 100644 index 19554ab32..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8f4d79e34ac8820458a2813895d3962d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetPlaybackSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs deleted file mode 100644 index 43a2f88ee..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the start color of the Particle System.")] - public class SetStartColor : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start color of the ParticleSystem")] - public SharedColor startColor; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startColor = startColor.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startColor = Color.white; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs.meta deleted file mode 100644 index 47ec91954..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f91be163d0c01ec42bf120c267dcceea -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartColor.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs deleted file mode 100644 index e56181cd4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the start delay of the Particle System.")] - public class SetStartDelay : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start delay of the ParticleSystem")] - public SharedFloat startDelay; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startDelay = startDelay.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startDelay = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs.meta deleted file mode 100644 index 3a3727b55..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 532026cf3b430c840897e66bdde5006e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartDelay.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs deleted file mode 100644 index 627f5a330..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the start lifetime of the Particle System.")] - public class SetStartLifetime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start lifetime of the ParticleSystem")] - public SharedFloat startLifetime; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startLifetime = startLifetime.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startLifetime = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs.meta deleted file mode 100644 index a4bd8ac1d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 311b9ed850b4e2243ae44487b9ece819 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartLifetime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs deleted file mode 100644 index cd00f9673..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the start rotation of the Particle System.")] - public class SetStartRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start rotation of the ParticleSystem")] - public SharedFloat startRotation; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startRotation = startRotation.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startRotation = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs.meta deleted file mode 100644 index d6cedc226..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ae611ab09913de6438aeb81d7a621c51 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs deleted file mode 100644 index cef0ef80b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the start size of the Particle System.")] - public class SetStartSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start size of the ParticleSystem")] - public SharedFloat startSize; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startSize = startSize.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startSize = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs.meta deleted file mode 100644 index 6713e32ab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d7be6a1da3f4f7a418e5739a6cc6e78e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs deleted file mode 100644 index 4856dd280..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the start speed of the Particle System.")] - public class SetStartSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start speed of the ParticleSystem")] - public SharedFloat startSpeed; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startSpeed = startSpeed.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startSpeed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs.meta deleted file mode 100644 index 79723b90f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b7716318475d3854a96729d1a7540d4a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetStartSpeed.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs deleted file mode 100644 index 35e9e429d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Sets the time of the Particle System.")] - public class SetTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time of the ParticleSystem")] - public SharedFloat time; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.time = time.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs.meta deleted file mode 100644 index cd15c57d6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 103e78e9c755fe3469e63115eb1c0d80 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/SetTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs deleted file mode 100644 index 0c7541211..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Simulate the Particle System.")] - public class Simulate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Time to fastfoward the Particle System to")] - public SharedFloat time; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Simulate(time.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs.meta deleted file mode 100644 index 472e5b55b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 24d79d661acf61e44918320624b49dd5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Simulate.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs deleted file mode 100644 index 291184730..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityParticleSystem -{ - [TaskCategory("Unity/ParticleSystem")] - [TaskDescription("Stop the Particle System.")] - public class Stop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Stop(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs.meta deleted file mode 100644 index e8bd88241..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fd83617024d6bff44824a83b472db8e6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/ParticleSystem/Stop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics.meta deleted file mode 100644 index 267455f17..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: f029d04458be91f4d9b9bec1c9ccfde7 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs deleted file mode 100644 index 1abefa760..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPhysics -{ - [TaskCategory("Unity/Physics")] - [TaskDescription("Returns success if there is any collider intersecting the line between start and end")] - public class Linecast : Action - { - [Tooltip("The starting position of the linecast")] - public SharedVector3 startPosition; - [Tooltip("The ending position of the linecast")] - public SharedVector3 endPosition; - [Tooltip("Selectively ignore colliders.")] - public LayerMask layerMask = -1; - - public override TaskStatus OnUpdate() - { - return Physics.Linecast(startPosition.Value, endPosition.Value, layerMask) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - startPosition = Vector3.zero; - endPosition = Vector3.zero; - layerMask = -1; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs.meta deleted file mode 100644 index 3cb06649e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 163f5567b8906cd45adf138c3c022152 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Physics/Linecast.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs deleted file mode 100644 index 1c163dd60..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs +++ /dev/null @@ -1,70 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPhysics -{ - [TaskCategory("Unity/Physics")] - [TaskDescription("Casts a ray against all colliders in the scene. Returns success if a collider was hit.")] - public class Raycast : Action - { - [Tooltip("Starts the ray at the GameObject's position. If null the originPosition will be used")] - public SharedGameObject originGameObject; - [Tooltip("Starts the ray at the position. Only used if originGameObject is null")] - public SharedVector3 originPosition; - [Tooltip("The direction of the ray")] - public SharedVector3 direction; - [Tooltip("The length of the ray. Set to -1 for infinity")] - public SharedFloat distance = -1; - [Tooltip("Selectively ignore colliders")] - public LayerMask layerMask = -1; - [Tooltip("Cast the ray in world or local space. The direction is in world space if no GameObject is specified")] - public Space space = Space.Self; - - [SharedRequired] - [Tooltip("Stores the hit object of the raycast")] - public SharedGameObject storeHitObject; - [SharedRequired] - [Tooltip("Stores the hit point of the raycast")] - public SharedVector3 storeHitPoint; - [SharedRequired] - [Tooltip("Stores the hit normal of the raycast")] - public SharedVector3 storeHitNormal; - [SharedRequired] - [Tooltip("Stores the hit distance of the raycast")] - public SharedFloat storeHitDistance; - - public override TaskStatus OnUpdate() - { - Vector3 position; - Vector3 dir = direction.Value; - if (originGameObject.Value != null) { - position = originGameObject.Value.transform.position; - if (space == Space.Self) { - dir = originGameObject.Value.transform.TransformDirection(direction.Value); - } - } else { - position = originPosition.Value; - } - - RaycastHit hit; - if (Physics.Raycast(position, dir, out hit, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask)) { - storeHitObject.Value = hit.collider.gameObject; - storeHitPoint.Value = hit.point; - storeHitNormal.Value = hit.normal; - storeHitDistance.Value = hit.distance; - return TaskStatus.Success; - } - - return TaskStatus.Failure; - } - - public override void OnReset() - { - originGameObject = null; - originPosition = Vector3.zero; - direction = Vector3.zero; - distance = -1; - layerMask = -1; - space = Space.Self; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs.meta deleted file mode 100644 index 7af51e09b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: afcf9d39edef45146ad7a043b8bfa76e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Physics/Raycast.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs deleted file mode 100644 index d168e2f2b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs +++ /dev/null @@ -1,73 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPhysics -{ - [TaskCategory("Unity/Physics")] - [TaskDescription("Casts a sphere against all colliders in the scene. Returns success if a collider was hit.")] - public class SphereCast : Action - { - [Tooltip("Starts the spherecast at the GameObject's position. If null the originPosition will be used")] - public SharedGameObject originGameObject; - [Tooltip("Starts the sherecast at the position. Only used if originGameObject is null")] - public SharedVector3 originPosition; - [Tooltip("The radius of the spherecast")] - public SharedFloat radius; - [Tooltip("The direction of the spherecast")] - public SharedVector3 direction; - [Tooltip("The length of the spherecast. Set to -1 for infinity")] - public SharedFloat distance = -1; - [Tooltip("Selectively ignore colliders")] - public LayerMask layerMask = -1; - [Tooltip("Use world or local space. The direction is in world space if no GameObject is specified")] - public Space space = Space.Self; - - [SharedRequired] - [Tooltip("Stores the hit object of the spherecast")] - public SharedGameObject storeHitObject; - [SharedRequired] - [Tooltip("Stores the hit point of the spherecast")] - public SharedVector3 storeHitPoint; - [SharedRequired] - [Tooltip("Stores the hit normal of the spherecast")] - public SharedVector3 storeHitNormal; - [SharedRequired] - [Tooltip("Stores the hit distance of the spherecast")] - public SharedFloat storeHitDistance; - - public override TaskStatus OnUpdate() - { - Vector3 position; - Vector3 dir = direction.Value; - if (originGameObject.Value != null) { - position = originGameObject.Value.transform.position; - if (space == Space.Self) { - dir = originGameObject.Value.transform.TransformDirection(direction.Value); - } - } else { - position = originPosition.Value; - } - - RaycastHit hit; - if (Physics.SphereCast(position, radius.Value, dir, out hit, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask)) { - storeHitObject.Value = hit.collider.gameObject; - storeHitPoint.Value = hit.point; - storeHitNormal.Value = hit.normal; - storeHitDistance.Value = hit.distance; - return TaskStatus.Success; - } - - return TaskStatus.Failure; - } - - public override void OnReset() - { - originGameObject = null; - originPosition = Vector3.zero; - radius = 0; - direction = Vector3.zero; - distance = -1; - layerMask = -1; - space = Space.Self; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs.meta deleted file mode 100644 index cb2f2d834..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2058f3f94c5bdf5409f9ff80ea61d44a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Physics/Spherecast.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D.meta deleted file mode 100644 index 57df9f4ca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 056a8d0f58dcb4749949548a468e90c0 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs deleted file mode 100644 index e00abdcaf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs +++ /dev/null @@ -1,72 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPhysics2D -{ - [TaskCategory("Unity/Physics2D")] - [TaskDescription("Casts a circle against all colliders in the scene. Returns success if a collider was hit.")] - public class Circlecast : Action - { - [Tooltip("Starts the circlecast at the GameObject's position. If null the originPosition will be used.")] - public SharedGameObject originGameObject; - [Tooltip("Starts the circlecast at the position. Only used if originGameObject is null.")] - public SharedVector2 originPosition; - [Tooltip("The radius of the circlecast")] - public SharedFloat radius; - [Tooltip("The direction of the circlecast")] - public SharedVector2 direction; - [Tooltip("The length of the ray. Set to -1 for infinity.")] - public SharedFloat distance = -1; - [Tooltip("Selectively ignore colliders.")] - public LayerMask layerMask = -1; - [Tooltip("Use world or local space. The direction is in world space if no GameObject is specified.")] - public Space space = Space.Self; - - [SharedRequired] - [Tooltip("Stores the hit object of the circlecast.")] - public SharedGameObject storeHitObject; - [SharedRequired] - [Tooltip("Stores the hit point of the circlecast.")] - public SharedVector2 storeHitPoint; - [SharedRequired] - [Tooltip("Stores the hit normal of the circlecast.")] - public SharedVector2 storeHitNormal; - [SharedRequired] - [Tooltip("Stores the hit distance of the circlecast.")] - public SharedFloat storeHitDistance; - - public override TaskStatus OnUpdate() - { - Vector2 position; - Vector2 dir = direction.Value; - if (originGameObject.Value != null) { - position = originGameObject.Value.transform.position; - if (space == Space.Self) { - dir = originGameObject.Value.transform.TransformDirection(direction.Value); - } - } else { - position = originPosition.Value; - } - - var hit = Physics2D.CircleCast(position, radius.Value, dir, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask); - if (hit.collider != null) { - storeHitObject.Value = hit.collider.gameObject; - storeHitPoint.Value = hit.point; - storeHitNormal.Value = hit.normal; - storeHitDistance.Value = hit.distance; - return TaskStatus.Success; - } - return TaskStatus.Failure; - } - - public override void OnReset() - { - originGameObject = null; - originPosition = Vector2.zero; - direction = Vector2.zero; - radius = 0; - distance = -1; - layerMask = -1; - space = Space.Self; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs.meta deleted file mode 100644 index dd34ffcde..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6989aa8730764ee459a07f88d84302e0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Circlecast.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs deleted file mode 100644 index 8f83668a3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPhysics2D -{ - [TaskCategory("Unity/Physics2D")] - [TaskDescription("Returns success if there is any collider intersecting the line between start and end")] - public class Linecast : Action - { - [Tooltip("The starting position of the linecast.")] - public SharedVector2 startPosition; - [Tooltip("The ending position of the linecast.")] - public SharedVector2 endPosition; - [Tooltip("Selectively ignore colliders.")] - public LayerMask layerMask = -1; - - public override TaskStatus OnUpdate() - { - return Physics2D.Linecast(startPosition.Value, endPosition.Value, layerMask) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - startPosition = Vector2.zero; - endPosition = Vector2.zero; - layerMask = -1; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs.meta deleted file mode 100644 index 3d76d740a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a402dbfe872764f49b3a03d7048e866e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Linecast.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs deleted file mode 100644 index 7bc62c81a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs +++ /dev/null @@ -1,69 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPhysics2D -{ - [TaskCategory("Unity/Physics2D")] - [TaskDescription("Casts a ray against all colliders in the scene. Returns success if a collider was hit.")] - public class Raycast : Action - { - [Tooltip("Starts the ray at the GameObject's position. If null the originPosition will be used.")] - public SharedGameObject originGameObject; - [Tooltip("Starts the ray at the position. Only used if originGameObject is null.")] - public SharedVector2 originPosition; - [Tooltip("The direction of the ray")] - public SharedVector2 direction; - [Tooltip("The length of the ray. Set to -1 for infinity.")] - public SharedFloat distance = -1; - [Tooltip("Selectively ignore colliders.")] - public LayerMask layerMask = -1; - [Tooltip("Cast the ray in world or local space. The direction is in world space if no GameObject is specified.")] - public Space space = Space.Self; - - [SharedRequired] - [Tooltip("Stores the hit object of the raycast.")] - public SharedGameObject storeHitObject; - [SharedRequired] - [Tooltip("Stores the hit point of the raycast.")] - public SharedVector2 storeHitPoint; - [SharedRequired] - [Tooltip("Stores the hit normal of the raycast.")] - public SharedVector2 storeHitNormal; - [SharedRequired] - [Tooltip("Stores the hit distance of the raycast.")] - public SharedFloat storeHitDistance; - - public override TaskStatus OnUpdate() - { - Vector2 position; - Vector2 dir = direction.Value; - if (originGameObject.Value != null) { - position = originGameObject.Value.transform.position; - if (space == Space.Self) { - dir = originGameObject.Value.transform.TransformDirection(direction.Value); - } - } else { - position = originPosition.Value; - } - - var hit = Physics2D.Raycast(position, dir, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask); - if (hit.collider != null) { - storeHitObject.Value = hit.collider.gameObject; - storeHitPoint.Value = hit.point; - storeHitNormal.Value = hit.normal; - storeHitDistance.Value = hit.distance; - return TaskStatus.Success; - } - return TaskStatus.Failure; - } - - public override void OnReset() - { - originGameObject = null; - originPosition = Vector2.zero; - direction = Vector2.zero; - distance = -1; - layerMask = -1; - space = Space.Self; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs.meta deleted file mode 100644 index 3a15b3acb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 513dc641bb68bcc4d9c3bdfb1ccc57b6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Physics2D/Raycast.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs.meta deleted file mode 100644 index a55270885..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: ae97053a4ac34f74d8edc5c635b28bda -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs deleted file mode 100644 index 256032624..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Deletes all entries from the PlayerPrefs.")] - public class DeleteAll : Action - { - public override TaskStatus OnUpdate() - { - PlayerPrefs.DeleteAll(); - - return TaskStatus.Success; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs.meta deleted file mode 100644 index 7e351cdef..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0c6d6b2dabc08ac42875cdbe1f86642b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteAll.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs deleted file mode 100644 index bad8eb958..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Deletes the specified key from the PlayerPrefs.")] - public class DeleteKey : Action - { - [Tooltip("The key to delete")] - public SharedString key; - - public override TaskStatus OnUpdate() - { - PlayerPrefs.DeleteKey(key.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs.meta deleted file mode 100644 index 1aca23a77..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ed24098bd046f724e90474d47e1677d3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/DeleteKey.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs deleted file mode 100644 index e9c808c44..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Stores the value with the specified key from the PlayerPrefs.")] - public class GetFloat : Action - { - [Tooltip("The key to store")] - public SharedString key; - [Tooltip("The default value")] - public SharedFloat defaultValue; - [Tooltip("The value retrieved from the PlayerPrefs")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = PlayerPrefs.GetFloat(key.Value, defaultValue.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - defaultValue = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs.meta deleted file mode 100644 index 56e7ba306..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 14752e1987d17d546838a32459045c67 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs deleted file mode 100644 index f5ec055e4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Stores the value with the specified key from the PlayerPrefs.")] - public class GetInt : Action - { - [Tooltip("The key to store")] - public SharedString key; - [Tooltip("The default value")] - public SharedInt defaultValue; - [Tooltip("The value retrieved from the PlayerPrefs")] - [RequiredField] - public SharedInt storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = PlayerPrefs.GetInt(key.Value, defaultValue.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - defaultValue = 0; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs.meta deleted file mode 100644 index 9f9271d85..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 66c5c9cfd0fb52344875db0cefc5d6f8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs deleted file mode 100644 index cc38b813d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Stores the value with the specified key from the PlayerPrefs.")] - public class GetString : Action - { - [Tooltip("The key to store")] - public SharedString key; - [Tooltip("The default value")] - public SharedString defaultValue; - [Tooltip("The value retrieved from the PlayerPrefs")] - [RequiredField] - public SharedString storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = PlayerPrefs.GetString(key.Value, defaultValue.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - defaultValue = ""; - storeResult = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs.meta deleted file mode 100644 index 18cd338d1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 418066da4d19f1742a6435c0ee7aa01b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/GetString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs deleted file mode 100644 index 08c2951ab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Retruns success if the specified key exists.")] - public class HasKey : Conditional - { - [Tooltip("The key to check")] - public SharedString key; - - public override TaskStatus OnUpdate() - { - return PlayerPrefs.HasKey(key.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - key = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs.meta deleted file mode 100644 index d0fee9a26..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3b16fab74ec9f364f911696814716ca2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/HasKey.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs deleted file mode 100644 index e5e2c5339..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Saves the PlayerPrefs.")] - public class Save : Action - { - public override TaskStatus OnUpdate() - { - PlayerPrefs.Save(); - - return TaskStatus.Success; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs.meta deleted file mode 100644 index e9f7ad5b9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 898765f1bc90e154e9cab895a814221e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/Save.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs deleted file mode 100644 index 399808386..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Sets the value with the specified key from the PlayerPrefs.")] - public class SetFloat : Action - { - [Tooltip("The key to store")] - public SharedString key; - [Tooltip("The value to set")] - public SharedFloat value; - - public override TaskStatus OnUpdate() - { - PlayerPrefs.SetFloat(key.Value, value.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - value = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs.meta deleted file mode 100644 index 53529c5ec..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 88feec854545b9b428ed714fbebe872f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs deleted file mode 100644 index d67afee58..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Sets the value with the specified key from the PlayerPrefs.")] - public class SetInt : Action - { - [Tooltip("The key to store")] - public SharedString key; - [Tooltip("The value to set")] - public SharedInt value; - - public override TaskStatus OnUpdate() - { - PlayerPrefs.SetInt(key.Value, value.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - value = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs.meta deleted file mode 100644 index e1cf424e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ad23859aa9f9e68468891ba9600b9828 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs deleted file mode 100644 index 6a9c0e661..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs -{ - [TaskCategory("Unity/PlayerPrefs")] - [TaskDescription("Sets the value with the specified key from the PlayerPrefs.")] - public class SetString : Action - { - [Tooltip("The key to store")] - public SharedString key; - [Tooltip("The value to set")] - public SharedString value; - - public override TaskStatus OnUpdate() - { - PlayerPrefs.SetString(key.Value, value.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - key = ""; - value = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs.meta deleted file mode 100644 index 0078506cb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 923ae6162a2661e47be9af80a19e48b6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/PlayerPrefs/SetString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion.meta deleted file mode 100644 index de31e0f5d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: fdfca1ec6223a5644919a38e092a933c -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs deleted file mode 100644 index 5bd74f49a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the angle in degrees between two rotations.")] - public class Angle : Action - { - [Tooltip("The first rotation")] - public SharedQuaternion firstRotation; - [Tooltip("The second rotation")] - public SharedQuaternion secondRotation; - [Tooltip("The stored result")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.Angle(firstRotation.Value, secondRotation.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - firstRotation = secondRotation = Quaternion.identity; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs.meta deleted file mode 100644 index dee4d9057..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0d316a25dcddd6f4a981df05a1eeaf7c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Angle.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs deleted file mode 100644 index 62b55b0b2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the rotation which rotates the specified degrees around the specified axis.")] - public class AngleAxis : Action - { - [Tooltip("The number of degrees")] - public SharedFloat degrees; - [Tooltip("The axis direction")] - public SharedVector3 axis; - [Tooltip("The stored result")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.AngleAxis(degrees.Value, axis.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - degrees = 0; - axis = Vector3.zero; - storeResult = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs.meta deleted file mode 100644 index 92486f527..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 82152b844829f8f43ab44f35bf7d786f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/AngleAxis.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs deleted file mode 100644 index d022ef925..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the dot product between two rotations.")] - public class Dot : Action - { - [Tooltip("The first rotation")] - public SharedQuaternion leftRotation; - [Tooltip("The second rotation")] - public SharedQuaternion rightRotation; - [Tooltip("The stored result")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.Dot(leftRotation.Value, rightRotation.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - leftRotation = rightRotation = Quaternion.identity; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs.meta deleted file mode 100644 index a28d0eb54..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fa9235523569d574aa7d22ce89423eca -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Dot.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs deleted file mode 100644 index 2462a1192..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the quaternion of a euler vector.")] - public class Euler : Action - { - [Tooltip("The euler vector")] - public SharedVector3 eulerVector; - [Tooltip("The stored quaternion")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.Euler(eulerVector.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - eulerVector = Vector3.zero; - storeResult = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs.meta deleted file mode 100644 index b48d8e3ed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b4d275b4450a324409ace385a718d9ee -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Euler.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs deleted file mode 100644 index b1aeb95ae..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores a rotation which rotates from the first direction to the second.")] - public class FromToRotation : Action - { - [Tooltip("The from rotation")] - public SharedVector3 fromDirection; - [Tooltip("The to rotation")] - public SharedVector3 toDirection; - [Tooltip("The stored result")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.FromToRotation(fromDirection.Value, toDirection.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromDirection = toDirection = Vector3.zero; - storeResult = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs.meta deleted file mode 100644 index 69c5d544d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 56740b2c218d500408dd75c6c15006ec -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/FromToRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs deleted file mode 100644 index 47099847d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the quaternion identity.")] - public class Identity : Action - { - [Tooltip("The identity")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.identity; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs.meta deleted file mode 100644 index 6fd6bebd5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f4eefb6e25898904688a422ca79d763c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Identity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs deleted file mode 100644 index d4d42abbd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the inverse of the specified quaternion.")] - public class Inverse : Action - { - [Tooltip("The target quaternion")] - public SharedQuaternion targetQuaternion; - [Tooltip("The stored quaternion")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.Inverse(targetQuaternion.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - targetQuaternion = storeResult = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs.meta deleted file mode 100644 index 86f2cf86c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ab8f5048bc0e5ce409bf3408c60bc3eb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Inverse.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs deleted file mode 100644 index 826448b8b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Lerps between two quaternions.")] - public class Lerp : Action - { - [Tooltip("The from rotation")] - public SharedQuaternion fromQuaternion; - [Tooltip("The to rotation")] - public SharedQuaternion toQuaternion; - [Tooltip("The amount to lerp")] - public SharedFloat amount; - [Tooltip("The stored result")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.Lerp(fromQuaternion.Value, toQuaternion.Value, amount.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromQuaternion = toQuaternion = storeResult = Quaternion.identity; - amount = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs.meta deleted file mode 100644 index 203ff7666..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fb19d83a245337542a5c0f02593e8dab -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Lerp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs deleted file mode 100644 index 698d553eb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the quaternion of a forward vector.")] - public class LookRotation : Action - { - [Tooltip("The forward vector")] - public SharedVector3 forwardVector; - [Tooltip("The second Vector3")] - public SharedVector3 secondVector3 = Vector3.up; - [Tooltip("The stored quaternion")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.LookRotation(forwardVector.Value, secondVector3.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - forwardVector = Vector3.zero; - storeResult = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs.meta deleted file mode 100644 index 0f36214a8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e006fb91f87854448b9bd6cb1d20b2f1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/LookRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs deleted file mode 100644 index bbdfecfce..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Stores the quaternion after a rotation.")] - public class RotateTowards : Action - { - [Tooltip("The from rotation")] - public SharedQuaternion fromQuaternion; - [Tooltip("The to rotation")] - public SharedQuaternion toQuaternion; - [Tooltip("The maximum degrees delta")] - public SharedFloat maxDeltaDegrees; - [Tooltip("The stored result")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.RotateTowards(fromQuaternion.Value, toQuaternion.Value, maxDeltaDegrees.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromQuaternion = toQuaternion = storeResult = Quaternion.identity; - maxDeltaDegrees = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs.meta deleted file mode 100644 index 2b9a71709..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b5e043a106ab4784aab997fa0e27f972 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/RotateTowards.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs deleted file mode 100644 index 0a4fb2062..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityQuaternion -{ - [TaskCategory("Unity/Quaternion")] - [TaskDescription("Spherically lerp between two quaternions.")] - public class Slerp : Action - { - [Tooltip("The from rotation")] - public SharedQuaternion fromQuaternion; - [Tooltip("The to rotation")] - public SharedQuaternion toQuaternion; - [Tooltip("The amount to lerp")] - public SharedFloat amount; - [Tooltip("The stored result")] - [RequiredField] - public SharedQuaternion storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Quaternion.Slerp(fromQuaternion.Value, toQuaternion.Value, amount.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromQuaternion = toQuaternion = storeResult = Quaternion.identity; - amount = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs.meta deleted file mode 100644 index 2b6658b19..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b36eacb0f1a46624193a622ef50979ff -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Quaternion/Slerp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer.meta deleted file mode 100644 index 6eedf10e9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: b7bee06bd6fde844784243b656f96db8 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs deleted file mode 100644 index 157b4f7d6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRenderer -{ - [TaskCategory("Unity/Renderer")] - [TaskDescription("Returns Success if the Renderer is visible, otherwise Failure.")] - public class IsVisible : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - // cache the renderer component - private Renderer renderer; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - renderer = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (renderer == null) { - Debug.LogWarning("Renderer is null"); - return TaskStatus.Failure; - } - - return renderer.isVisible ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs.meta deleted file mode 100644 index 64ab2d0c9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3b6ba7f7e8884c14c9ef4a74b50b0a8e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Renderer/IsVisible.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs deleted file mode 100644 index a8da2abdf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRenderer -{ - [TaskCategory("Unity/Renderer")] - [TaskDescription("Sets the material on the Renderer.")] - public class SetMaterial : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The material to set")] - public SharedMaterial material; - - // cache the renderer component - private Renderer renderer; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - renderer = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (renderer == null) { - Debug.LogWarning("Renderer is null"); - return TaskStatus.Failure; - } - - renderer.material = material.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - material = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs.meta deleted file mode 100644 index 0b11f5f9c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bf71e4b9292cad342877356107f76d39 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Renderer/SetMaterial.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody.meta deleted file mode 100644 index cfa304f01..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: f560fb42f946dcb4a819c0cca91d9c9d -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs deleted file mode 100644 index 3ee43276c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs +++ /dev/null @@ -1,57 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Applies a force to the rigidbody that simulates explosion effects. Returns Success.")] - public class AddExplosionForce : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The force of the explosion")] - public SharedFloat explosionForce; - [Tooltip("The position of the explosion")] - public SharedVector3 explosionPosition; - [Tooltip("The radius of the explosion")] - public SharedFloat explosionRadius; - [Tooltip("Applies the force as if it was applied from beneath the object")] - public float upwardsModifier = 0; - [Tooltip("The type of force")] - public ForceMode forceMode = ForceMode.Force; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.AddExplosionForce(explosionForce.Value, explosionPosition.Value, explosionRadius.Value, upwardsModifier, forceMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - explosionForce = 0; - explosionPosition = Vector3.zero; - explosionRadius = 0; - upwardsModifier = 0; - forceMode = ForceMode.Force; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs.meta deleted file mode 100644 index 1615c4a4f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ccb592e850d4c734995a2a1c3f930b62 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddExplosionForce.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs deleted file mode 100644 index 32ef6e8ad..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [RequiredComponent(typeof(Rigidbody))] - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Applies a force to the rigidbody. 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 SharedVector3 force; - [Tooltip("The type of force")] - public ForceMode forceMode = ForceMode.Force; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.AddForce(force.Value, forceMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - if (force != null) { - force.Value = Vector3.zero; - } - forceMode = ForceMode.Force; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs.meta deleted file mode 100644 index 5eb41a9e5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5748d4214b99b8c49ba67902a8495a30 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForce.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs deleted file mode 100644 index cefd11283..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Applies a force at the specified position to the rigidbody. 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 SharedVector3 force; - [Tooltip("The position of the force")] - public SharedVector3 position; - [Tooltip("The type of force")] - public ForceMode forceMode = ForceMode.Force; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.AddForceAtPosition(force.Value, position.Value, forceMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - force = Vector3.zero; - position = Vector3.zero; - forceMode = ForceMode.Force; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs.meta deleted file mode 100644 index 41b3b5941..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c3938bcd4e88b45419aa86adee51a2c2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddForceAtPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs deleted file mode 100644 index 46a04a60f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Applies a force to the rigidbody relative to its coordinate system. Returns Success.")] - public class AddRelativeForce : 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 SharedVector3 force; - [Tooltip("The type of force")] - public ForceMode forceMode = ForceMode.Force; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.AddRelativeForce(force.Value, forceMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - force = Vector3.zero; - forceMode = ForceMode.Force; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs.meta deleted file mode 100644 index 7ba7d2fd0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1de05a2b6197b2d4b9da1c36bf382649 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeForce.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs deleted file mode 100644 index 58f4cb3f9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Applies a torque to the rigidbody relative to its coordinate system. Returns Success.")] - public class AddRelativeTorque : 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 SharedVector3 torque; - [Tooltip("The type of torque")] - public ForceMode forceMode = ForceMode.Force; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - rigidbody.AddRelativeTorque(torque.Value, forceMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - torque = Vector3.zero; - forceMode = ForceMode.Force; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs.meta deleted file mode 100644 index d83437e77..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 71136c1193309b24c93d450b5f2e47be -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddRelativeTorque.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs deleted file mode 100644 index f0ee46b8f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Applies a torque to the rigidbody. 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 SharedVector3 torque; - [Tooltip("The type of torque")] - public ForceMode forceMode = ForceMode.Force; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.AddTorque(torque.Value, forceMode); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - torque = Vector3.zero; - forceMode = ForceMode.Force; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs.meta deleted file mode 100644 index 78551b0b2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 88c726c1cb324e6429637f55d36c3d01 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/AddTorque.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs deleted file mode 100644 index dcfa906c2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the angular damping of the Rigidbody. Returns Success.")] - public class GetAngularDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular damping of the Rigidbody")] - [RequiredField] - public SharedFloat storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.angularDamping; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs.meta deleted file mode 100644 index 12ebf1484..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f60ce080533afc14697dba511a66e791 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs deleted file mode 100644 index 0620956bc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the angular drag of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedFloat storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.angularDrag; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs.meta deleted file mode 100644 index 8764c872d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5fb34b334a02db64db2d6a2fb2448be5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs deleted file mode 100644 index 1769d7275..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the angular velocity of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedVector3 storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.angularVelocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs.meta deleted file mode 100644 index 90784178c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 492dc3a13d07ed149bcd19d36e2f7ee7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetAngularVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs deleted file mode 100644 index 3fa69fdff..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the center of mass of the Rigidbody. Returns Success.")] - public class GetCenterOfMass : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of mass of the Rigidbody")] - [RequiredField] - public SharedVector3 storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.centerOfMass; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs.meta deleted file mode 100644 index bc593afd5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b993020e1d60f5242a7e3618501f871e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetCenterOfMass.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs deleted file mode 100644 index 6656fc032..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the drag of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedFloat storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.drag; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs.meta deleted file mode 100644 index 24edd2926..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 69bd087f6899c604f82441b108ead2a8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs deleted file mode 100644 index 8deef57d1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the freeze rotation value of the Rigidbody. Returns Success.")] - public class GetFreezeRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The freeze rotation value of the Rigidbody")] - [RequiredField] - public SharedBool storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.freezeRotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs.meta deleted file mode 100644 index 57e050817..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 889065cfad95df04a802761fcccb8359 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetFreezeRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs deleted file mode 100644 index 36454f27e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the is kinematic value of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedBool storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.isKinematic; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs.meta deleted file mode 100644 index cb2ac1ffb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a531151d14b8a9640be8d499d9db4538 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetIsKinematic.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs deleted file mode 100644 index 1b97140dd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the linear damping of the Rigidbody. Returns Success.")] - public class GetLinearDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear damping of the Rigidbody")] - [RequiredField] - public SharedFloat storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.linearDamping; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs.meta deleted file mode 100644 index e60454782..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7afb2b3e1a7ad25409fdf5a331dab2b9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs deleted file mode 100644 index a2d2b5a0f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the linear velocity of the Rigidbody. Returns Success.")] - public class GetLinearVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear velocity of the Rigidbody")] - [RequiredField] - public SharedVector3 storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.linearVelocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs.meta deleted file mode 100644 index 43d3e92e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e61901825ecea2f4c9ac0dfcd0108f3d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetLinearVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs deleted file mode 100644 index f13f0fb3b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the mass of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedFloat storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.mass; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs.meta deleted file mode 100644 index 8222e442d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2638ca749ba5a404f84fd72811b16c81 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetMass.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs deleted file mode 100644 index 908746a38..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the position of the Rigidbody. 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 position of the Rigidbody")] - [RequiredField] - public SharedVector3 storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.position; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs.meta deleted file mode 100644 index bfc7520ea..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 25f9090c180831b4daaa1a24894681ac -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs deleted file mode 100644 index 6dcac3ed4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the rotation of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedQuaternion storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.rotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs.meta deleted file mode 100644 index be3330f4d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 937400bc82220b543aa9b3074f17f4d6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs deleted file mode 100644 index b7cdfda3d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the use gravity value of the Rigidbody. Returns Success.")] - public class GetUseGravity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The use gravity value of the Rigidbody")] - [RequiredField] - public SharedBool storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.useGravity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs.meta deleted file mode 100644 index 7980cb1ed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1d7358afc7810ca4aa2ae8a2cd4b9e6e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetUseGravity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs deleted file mode 100644 index 023dfc7ae..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs +++ /dev/null @@ -1,48 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the velocity of the Rigidbody. 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 Rigidbody")] - [RequiredField] - public SharedVector3 storeValue; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - storeValue.Value = rigidbody.velocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs.meta deleted file mode 100644 index 774194d54..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9c18365eb6865164ebb5b0057dcc6bb4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/GetVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs deleted file mode 100644 index 9273777a6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Returns Success if the Rigidbody 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; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - return rigidbody.isKinematic ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs.meta deleted file mode 100644 index 443a5b465..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 30be28b36412643418c2e61640147eac -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsKinematic.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs deleted file mode 100644 index 286fe39fd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Returns Success if the Rigidbody 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; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - return rigidbody.IsSleeping() ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs.meta deleted file mode 100644 index 4f6d162d7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 37e8153613f519240a11c3f6583d1030 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/IsSleeping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs deleted file mode 100644 index f7506b47b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Moves the Rigidbody 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 SharedVector3 position; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.MovePosition(position.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs.meta deleted file mode 100644 index a6305629c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 87176662744aee049b8af51b01bcb526 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MovePosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs deleted file mode 100644 index ea87fdba4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Rotates the Rigidbody 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 SharedQuaternion rotation; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.MoveRotation(rotation.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rotation = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs.meta deleted file mode 100644 index 43b8e1185..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f1ba2e66d5ca98a4ba4020b4eff4da6e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/MoveRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs deleted file mode 100644 index 327b6b2b6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the angular damping of the Rigidbody. Returns Success.")] - public class SetAngularDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular damping of the Rigidbody")] - public SharedFloat angularDamping; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.angularDamping = angularDamping.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularDamping = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs.meta deleted file mode 100644 index d630c1225..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d629171245e48c548b0a1c1d3a8ca215 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs deleted file mode 100644 index 677237caf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the angular drag of the Rigidbody. 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 Rigidbody")] - public SharedFloat angularDrag; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.angularDrag = angularDrag.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularDrag = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs.meta deleted file mode 100644 index 608a1bedc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2883595af7ee1c649ae45353482beed8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs deleted file mode 100644 index a0f1ac618..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the angular velocity of the Rigidbody. 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 Rigidbody")] - public SharedVector3 angularVelocity; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.angularVelocity = angularVelocity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularVelocity = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs.meta deleted file mode 100644 index 4f9a5f555..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8652396368a6dad4eb6e1259e680595c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetAngularVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs deleted file mode 100644 index 61dd56c2f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the center of mass of the Rigidbody. Returns Success.")] - public class SetCenterOfMass : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of mass of the Rigidbody")] - public SharedVector3 centerOfMass; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.centerOfMass = centerOfMass.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - centerOfMass = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs.meta deleted file mode 100644 index 8bde4d9a5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 594f2d37fbfc0d545a0377cf63543f41 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetCenterOfMass.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs deleted file mode 100644 index 1b19dc9ba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the constraints of the Rigidbody. Returns Success.")] - public class SetConstraints : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The constraints of the Rigidbody")] - public RigidbodyConstraints constraints = RigidbodyConstraints.None; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.constraints = constraints; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - constraints = RigidbodyConstraints.None; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs.meta deleted file mode 100644 index 34777df89..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dd098240974b0184ca8c66cb6e450753 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetConstraints.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs deleted file mode 100644 index 2b3369d6a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the linear drag of the Rigidbody. Returns Success.")] - public class SetLinearDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear drag of the Rigidbody")] - public SharedFloat linearDrag; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.linearDamping = linearDrag.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - linearDrag = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs.meta deleted file mode 100644 index 8d5cf0917..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d21de5deadcafb74da260c46f4b26f8e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs deleted file mode 100644 index ccbc72aa2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the drag of the Rigidbody. 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 Rigidbody")] - public SharedFloat drag; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.drag = drag.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - drag = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs.meta deleted file mode 100644 index 82427e9fb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8984a684f33e6644abbb9cfe6c9068d9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs deleted file mode 100644 index df97a2f77..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the freeze rotation value of the Rigidbody. Returns Success.")] - public class SetFreezeRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The freeze rotation value of the Rigidbody")] - public SharedBool freezeRotation; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.freezeRotation = freezeRotation.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - freezeRotation = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs.meta deleted file mode 100644 index 91de0c64d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4160755a1f5174546b6ccbabff469187 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetFreezeRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs deleted file mode 100644 index ec6f8525b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the is kinematic value of the Rigidbody. 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 Rigidbody")] - public SharedBool isKinematic; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.isKinematic = isKinematic.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - isKinematic = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs.meta deleted file mode 100644 index c673c5712..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6d93194d82815024cadf3f4f842666d0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetIsKinematic.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs deleted file mode 100644 index f71206b3f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the linear velocity of the Rigidbody. Returns Success.")] - public class SetLinearVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear velocity of the Rigidbody")] - public SharedVector3 linearVelocity; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.linearVelocity = linearVelocity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - linearVelocity = Vector3.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs.meta deleted file mode 100644 index d8355c849..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 13f1f40859ff4594da624b19f4a23536 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetLinearVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs deleted file mode 100644 index 8a823f0b9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the mass of the Rigidbody. 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 Rigidbody")] - public SharedFloat mass; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.mass = mass.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - mass = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs.meta deleted file mode 100644 index 4be5221ca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 82f7a92bee3553d49bbb1ebabfaffc12 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetMass.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs deleted file mode 100644 index add8f6386..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the position of the Rigidbody. Returns Success.")] - public class SetPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Rigidbody")] - public SharedVector3 position; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.position = position.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs.meta deleted file mode 100644 index 5f8a8fddf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8a33b86eb94a87c449e1f3344973cc50 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs deleted file mode 100644 index 24be3eca5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Stores the rotation of the Rigidbody. Returns Success.")] - public class SetRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The rotation of the Rigidbody")] - public SharedQuaternion rotation; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.rotation = rotation.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rotation = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs.meta deleted file mode 100644 index 9fd8b2312..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c5ac2e84278f4a845ba47d1e4469e869 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs deleted file mode 100644 index 0380dbf6b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the use gravity value of the Rigidbody. Returns Success.")] - public class SetUseGravity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The use gravity value of the Rigidbody")] - public SharedBool useGravity; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.useGravity = useGravity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - useGravity = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs.meta deleted file mode 100644 index c3903a660..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 19548f438ad1c684180d41713cbdeb76 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetUseGravity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs deleted file mode 100644 index b8c9b891c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Sets the velocity of the Rigidbody. 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 Rigidbody")] - public SharedVector3 velocity; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.velocity = velocity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - velocity = Vector3.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs.meta deleted file mode 100644 index dce43d5bd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3e3fc3ca798c87644a42b1c930fff3f0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/SetVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs deleted file mode 100644 index 80ceee63a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Forces the Rigidbody 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; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.Sleep(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs.meta deleted file mode 100644 index 5a13ec663..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1683ca7168c4ce74db4396c4d3cb65ce -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/Sleep.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs deleted file mode 100644 index 6933c91d0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Returns Success if the Rigidbody is using gravity, otherwise Failure.")] - public class UseGravity : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - return rigidbody.useGravity ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs.meta deleted file mode 100644 index c3ae88a37..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a0d11b67c4ae058469e7f7b00db7103f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/UseGravity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs deleted file mode 100644 index b699040d6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody -{ - [TaskCategory("Unity/Rigidbody")] - [TaskDescription("Forces the Rigidbody 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; - - // cache the rigidbody component - private Rigidbody rigidbody; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - rigidbody = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (rigidbody == null) { - Debug.LogWarning("Rigidbody is null"); - return TaskStatus.Failure; - } - - rigidbody.WakeUp(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs.meta deleted file mode 100644 index b8cfb1017..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d4314af88b4d86046bdac1f10f6f9a47 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody/WakeUp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D.meta deleted file mode 100644 index 84e1cee7b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 842427c186c2e5941b1b02873f6480e3 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs deleted file mode 100644 index 86e2d3e06..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs.meta deleted file mode 100644 index 0a5dc9333..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9ea79154ee01cf441a9744c877542a1f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForce.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs deleted file mode 100644 index 8d8be2f18..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs.meta deleted file mode 100644 index f610cf3d2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dd82f0f77306bad46bae7944a5c66664 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddForceAtPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs deleted file mode 100644 index f214d95ed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs.meta deleted file mode 100644 index 73f2aa54e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: cc561d806d4518044becff628e148424 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/AddTorque.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs deleted file mode 100644 index 08233cb50..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Stores the angular damping of the Rigidbody2D. Returns Success.")] - public class GetAngularDamping : 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.angularDamping; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs.meta deleted file mode 100644 index e497a147b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 40c14c70e51345d4fa5523c63ffe77e0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs deleted file mode 100644 index a61d7ff7e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs.meta deleted file mode 100644 index 66406a8ba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 10833270578d69041b561c5126bb31f2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs deleted file mode 100644 index d3edc1cd2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs.meta deleted file mode 100644 index cb1af494b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 68ac62a9384c11245a850220f1bc72b8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetAngularVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs deleted file mode 100644 index 098e2a20f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs.meta deleted file mode 100644 index 791242658..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6e39198e5d65d514185f2816cced7c7b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs deleted file mode 100644 index 41a2a7f78..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs.meta deleted file mode 100644 index 9c6fffc71..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e2d17fb9baea6554082f2edc46483e8c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetGravtyScale.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs deleted file mode 100644 index e060e25aa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs.meta deleted file mode 100644 index 6405fb4fd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 66c6175d42bd49e48be458378e0a7875 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetIsKinematic.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs deleted file mode 100644 index 307b6ea6a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Stores the linear damping of the Rigidbody2D. Returns Success.")] - public class GetLinearDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear damping 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.linearDamping; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs.meta deleted file mode 100644 index e904c8cb4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e963283adaf432448aefe729bad714a6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs deleted file mode 100644 index b6df0b73a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Stores the linear velocity of the Rigidbody2D. Returns Success.")] - public class GetLinearVelocity : 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.linearVelocity; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector2.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs.meta deleted file mode 100644 index db5b88ae6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 927643ae29ab68a4e8831669fff0793f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetLinearVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs deleted file mode 100644 index f7faaee2f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs.meta deleted file mode 100644 index a75c67861..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 72d52ef5efe5e974994c91279536555e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetMass.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs deleted file mode 100644 index da0dd26ec..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs.meta deleted file mode 100644 index 17b2f7b5a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 98dff23734f3a834cbf5ccf87c9904f7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs deleted file mode 100644 index d59f50f06..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Stores the Rigidbody2D type. Returns Success.")] - public class GetRigidbodyType : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The Rigidbody2D type")] - [RequiredField] - public SharedRigidbodyType2D 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.bodyType; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs.meta deleted file mode 100644 index 28b1420c4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9d7f835c3b1502d43b1aac17359a9d5b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRigidbodyType.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs deleted file mode 100644 index 5b89ff372..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs.meta deleted file mode 100644 index b8a7f5b69..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a7d82ab7ef780f34cb5df06366b0bdbf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs deleted file mode 100644 index c32135412..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs.meta deleted file mode 100644 index 8cf1a26d6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 13009f7b6ee1bc04884442484a065cc3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/GetVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs deleted file mode 100644 index 0daebea82..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } -#if UNITY_6000_0_OR_NEWER - return rigidbody2D.bodyType == RigidbodyType2D.Kinematic ? TaskStatus.Success : TaskStatus.Failure; -#else - return rigidbody2D.isKinematic ? TaskStatus.Success : TaskStatus.Failure; -#endif - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs.meta deleted file mode 100644 index 28a0fd642..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 47d2e6e60a2251c41a2c548dc9a8c922 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsKinematic.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs deleted file mode 100644 index 248a23e96..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs.meta deleted file mode 100644 index ecc50b3e1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 52859810158277a4a917e70a834a82a5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/IsSleeping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs deleted file mode 100644 index f77e34d5e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs.meta deleted file mode 100644 index 4b065f112..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3e72fab171287194ea2d8eb2aa239cd4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MovePosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs deleted file mode 100644 index f55821f1c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs.meta deleted file mode 100644 index 56d316009..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 38b0095c420511f4b9ed263b1b5c6054 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/MoveRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs deleted file mode 100644 index 321e2dc03..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Sets the angular damping of the Rigidbody2D. Returns Success.")] - public class SetAngularDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The angular damping of the Rigidbody2D")] - public SharedFloat angularDamping; - - 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.angularDamping = angularDamping.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - angularDamping = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs.meta deleted file mode 100644 index 9dac7aac8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f357c8e5586a0b0448d31458b10d068e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs deleted file mode 100644 index 2b5508705..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs.meta deleted file mode 100644 index 249e8929e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1717a737318274e4caa244f86c908851 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs deleted file mode 100644 index ef1595f1f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs.meta deleted file mode 100644 index a87368d35..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c73dfb332d90cbe4280c21fafa59e2fa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetAngularVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs deleted file mode 100644 index e75c30be9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs.meta deleted file mode 100644 index 90f9d71af..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3148efd94c23d634a9f02cc9c808de80 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetDrag.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs deleted file mode 100644 index 85ebe613d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs.meta deleted file mode 100644 index 9c106f1c8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ac896135858701649bcaffc7ef00637f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetGravityScale.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs deleted file mode 100644 index a01525e83..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs.meta deleted file mode 100644 index c59f3570d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b7c96d64d821e304a8c67c031565d902 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetIsKinematic.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs deleted file mode 100644 index eb994094b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Sets the linear damping of the Rigidbody2D. Returns Success.")] - public class SetLinearDamping : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear damping of the Rigidbody2D")] - public SharedFloat linearDamping; - - 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.linearDamping = linearDamping.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - linearDamping = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs.meta deleted file mode 100644 index 16c38c97f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fe42816d615df1645a8ab0789d5684fc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearDamping.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs deleted file mode 100644 index e2d29a9ff..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Sets the linear velocity of the Rigidbody2D. Returns Success.")] - public class SetLinearVelocity : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The linear velocity of the Rigidbody2D")] - public SharedVector2 linearVelocity; - - 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.linearVelocity = linearVelocity.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - linearVelocity = Vector2.zero; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs.meta deleted file mode 100644 index becd5f703..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9bf0c67aaacedf94ebbff1d6302e6833 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetLinearVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs deleted file mode 100644 index 1042b6ddb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs.meta deleted file mode 100644 index 5e8dce93b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: facbfd14ece02214889d587f06215105 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetMass.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs deleted file mode 100644 index 352b1b65d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/Rigidbody2D")] - [TaskDescription("Sets the body type value of the Rigidbody2D. Returns Success.")] - public class SetRigidbodyType : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The body type of the Rigidbody2D")] - public SharedRigidbodyType2D bodyType; - - 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.bodyType = bodyType.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - bodyType = RigidbodyType2D.Static; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs.meta deleted file mode 100644 index e198bd92e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 0102788792bf11f4f93f93129bbb1c67 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetRigidbodyType.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs deleted file mode 100644 index 9ffe5c6da..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if !UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs.meta deleted file mode 100644 index 8bddb8ada..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5830960da4f9a3148ba5d8cd87228748 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/SetVelocity.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs deleted file mode 100644 index 345386f0a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs.meta deleted file mode 100644 index 91d8f81df..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7e24fd00ca72fda48a132dc9bfa71070 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/Sleep.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs deleted file mode 100644 index dfe49106e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityRigidbody2D -{ - [TaskCategory("Unity/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/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs.meta deleted file mode 100644 index a4e80367f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 954f1f9c196c39345b2fd389516ad613 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Rigidbody2D/WakeUp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables.meta deleted file mode 100644 index 33f2d8fbc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 1ca8022ad636ccc4ab940c05d58dfd6b -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs deleted file mode 100644 index 453f10afd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs.meta deleted file mode 100644 index b7c2824e9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ba0766a97c2e5c94fbc49d8cb1dea8e3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedBool.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs deleted file mode 100644 index f37908f6e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs.meta deleted file mode 100644 index 2256d59c9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c9e83747d98bd064b9a5ad62b36d7657 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedColor.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs deleted file mode 100644 index 3c58f8d44..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs.meta deleted file mode 100644 index 59828f44c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6925a99e92b6d804db1f4b607e7501d3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs deleted file mode 100644 index 8f550e379..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs.meta deleted file mode 100644 index 450397088..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: daa5c3b8a325bcd4bb3da10a6715f6d0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs deleted file mode 100644 index 0362e597b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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; - - for (int i = 0; i < variable.Value.Count; ++i) { - if (variable.Value[i] != compareTo.Value[i]) { - return TaskStatus.Failure; - } - } - return TaskStatus.Success; - } - - public override void OnReset() - { - variable = null; - compareTo = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs.meta deleted file mode 100644 index 3dd1d6afa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a2b81932d36a0be4fba0868f7ed3e53c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedGameObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs deleted file mode 100644 index ce216d9ba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs.meta deleted file mode 100644 index d3a7b5ca3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 40307a4117777b4479a1402fd67811ff -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs deleted file mode 100644 index 6ea4fedd3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs.meta deleted file mode 100644 index 67d28a3e2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 66a9105498519ae4082d9ac7adcf5da4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs deleted file mode 100644 index be59a5846..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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; - - for (int i = 0; i < variable.Value.Count; ++i) { - if (variable.Value[i] != compareTo.Value[i]) { - return TaskStatus.Failure; - } - } - return TaskStatus.Success; - } - - public override void OnReset() - { - variable = null; - compareTo = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs.meta deleted file mode 100644 index cae43de42..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ac4cab9acc737904885d379388e83950 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs deleted file mode 100644 index 9867ed545..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs.meta deleted file mode 100644 index fddc0a313..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 101b2ac215bf58149ab91be3b55d5145 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedQuaternion.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs deleted file mode 100644 index 92060a810..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs.meta deleted file mode 100644 index c752fcf44..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d73d97622bbe61d4c91f9b4cacb3e0c2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedRect.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs deleted file mode 100644 index 2c566a529..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs.meta deleted file mode 100644 index 992192348..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8b1a3248c84732345914404e47a55fcc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs deleted file mode 100644 index 6210a6d7e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs.meta deleted file mode 100644 index ee34b0def..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a21f70566ff2afc4e95454d3d658c1fa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransform.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs deleted file mode 100644 index 16248c902..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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; - - for (int i = 0; i < variable.Value.Count; ++i) { - if (variable.Value[i] != compareTo.Value[i]) { - return TaskStatus.Failure; - } - } - return TaskStatus.Success; - } - - public override void OnReset() - { - variable = null; - compareTo = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs.meta deleted file mode 100644 index 97ba49c23..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8ea22243f4fc22946a0033142f3a2380 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedTransformList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs deleted file mode 100644 index 72892c565..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs.meta deleted file mode 100644 index 73e68fbec..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ce90fa6ac7a64b044936fa647e5f0e80 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector2.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs deleted file mode 100644 index 0b9e6ada9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs.meta deleted file mode 100644 index d1ccf6169..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 617192db87511d844940d400c960d13d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector3.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs deleted file mode 100644 index 8085c55d3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs.meta deleted file mode 100644 index 11ed5a474..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9738be23ad39d2c4ba8adc018b545ece -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/CompareSharedVector4.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs deleted file mode 100644 index 70643f06a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs.meta deleted file mode 100644 index d6fec28db..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 54f63c79d78692a4e84e502f7cd705a6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedBool.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs deleted file mode 100644 index 663e69e72..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs.meta deleted file mode 100644 index e225ca476..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 48c49264be0e7244ba46b8c970027a20 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedColor.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs deleted file mode 100644 index 9d6df7e8a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs.meta deleted file mode 100644 index dea9c4ba2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4d5b15c88fb154446b9b1ad90cb3987f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs deleted file mode 100644 index a6fd5e633..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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; - [Tooltip("Can the target value be null?")] - public SharedBool valueCanBeNull; - - public override TaskStatus OnUpdate() - { - targetVariable.Value = ((targetValue.Value != null || valueCanBeNull.Value) ? targetValue.Value : gameObject); - - return TaskStatus.Success; - } - - public override void OnReset() - { - valueCanBeNull = false; - targetValue = null; - targetVariable = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs.meta deleted file mode 100644 index aa9f925d9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bf4af224a0ebd5946bc4f01f18d0627b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs deleted file mode 100644 index f71bef4e4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs.meta deleted file mode 100644 index 67e6b27d4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b02b163c1dc1b894ca53f80378e39b26 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedGameObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs deleted file mode 100644 index b62b2a914..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs.meta deleted file mode 100644 index 70d649c39..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 742d2b1426f291e45b03bcf845c53a67 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs deleted file mode 100644 index b6711fcc0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs.meta deleted file mode 100644 index 560bcf686..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f80da138a03cfdd4e98af96ed5f6681b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs deleted file mode 100644 index 39ca4bb77..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs.meta deleted file mode 100644 index 2fb03fd83..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b5c211b64a2cf364e99b99dab3ce3c87 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs deleted file mode 100644 index acca1c590..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs.meta deleted file mode 100644 index f849203f4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 42f84705fc5571e4088098d1239b5f46 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedQuaternion.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs deleted file mode 100644 index a598b81bd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs.meta deleted file mode 100644 index 7aaf32bd6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7313c7640a9d92b4294a7702b3c5339b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedRect.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs deleted file mode 100644 index 0c2c726d0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs.meta deleted file mode 100644 index 14f6caadc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 92060068b2f07c54f930e1b8a8976c11 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs deleted file mode 100644 index c9262941c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs.meta deleted file mode 100644 index b91e4405d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 78e7da45e8b6c2e4cbbf4fdf474070e5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransform.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs deleted file mode 100644 index 198fef2a8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs.meta deleted file mode 100644 index eac89125b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fae9cd59e50283949a2cc8ec460ffafe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedTransformList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs deleted file mode 100644 index a2e67e89d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs.meta deleted file mode 100644 index dfb28827b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c70cf248c723950409d74c11d0781c06 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector2.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs deleted file mode 100644 index d8283eec5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs.meta deleted file mode 100644 index 31df725ac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 281820e8b30038d48b4fa8f25728e6c3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector3.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs deleted file mode 100644 index 83572d1eb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs.meta deleted file mode 100644 index af3a796e2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5ca30d99da0685a4fa32d79624a5c0a0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SetSharedVector4.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs deleted file mode 100644 index 28e8842eb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - sharedGameObject = null; - sharedTransform = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs.meta deleted file mode 100644 index bcd88a1f3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c08dcd1e915bef6448649ffe4d3bef3d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectToTransform.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs deleted file mode 100644 index aadcfb694..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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(); - } - - 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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta deleted file mode 100644 index b52efafdd..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4460871f1a9671343896ef9e56d9ceab -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedGameObjectsToGameObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs deleted file mode 100644 index a9d9e7858..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs.meta deleted file mode 100644 index 0d3f8a2c6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f2fd208ea1a8e1642a32148186f9e077 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformToGameObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs deleted file mode 100644 index 05d3c8c45..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.SharedVariables -{ - [TaskCategory("Unity/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(); - } - - 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/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs.meta deleted file mode 100644 index 9a3cd955d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3533c6733499e9446b1eae98c8fcaeea -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SharedVariables/SharedTransformsToTransformList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider.meta deleted file mode 100644 index 330a861c7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 79bf48a44f2371244a34ff82aaeaaded -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs deleted file mode 100644 index a8626d2dc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnitySphereCollider -{ - [TaskCategory("Unity/SphereCollider")] - [TaskDescription("Stores the center of the SphereCollider. Returns Success.")] - public class GetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the SphereCollider")] - [RequiredField] - public SharedVector3 storeValue; - - private SphereCollider sphereCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - sphereCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (sphereCollider == null) { - Debug.LogWarning("SphereCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = sphereCollider.center; - - return TaskStatus.Success; - } - - public override void OnReset() - { - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs.meta deleted file mode 100644 index 32fa0f155..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d95a2896b550c5b4382b7ed35860f504 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs deleted file mode 100644 index 3dc28097b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnitySphereCollider -{ - [TaskCategory("Unity/SphereCollider")] - [TaskDescription("Stores the radius of the SphereCollider. Returns Success.")] - public class GetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the SphereCollider")] - [RequiredField] - public SharedFloat storeValue; - - private SphereCollider sphereCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - sphereCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (sphereCollider == null) { - Debug.LogWarning("SphereCollider is null"); - return TaskStatus.Failure; - } - - storeValue.Value = sphereCollider.radius; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs.meta deleted file mode 100644 index e1e190e76..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2ff93bf538eee1444b3c51aadfc9bb7f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/GetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs deleted file mode 100644 index 718fd4f0c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnitySphereCollider -{ - [TaskCategory("Unity/SphereCollider")] - [TaskDescription("Sets the center of the SphereCollider. Returns Success.")] - public class SetCenter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The center of the SphereCollider")] - public SharedVector3 center; - - private SphereCollider sphereCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - sphereCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (sphereCollider == null) { - Debug.LogWarning("SphereCollider is null"); - return TaskStatus.Failure; - } - - sphereCollider.center = center.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - center = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs.meta deleted file mode 100644 index e076800af..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dffebfe905e60814ab75e0d7c57432ec -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetCenter.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs deleted file mode 100644 index 0c2e2fc60..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnitySphereCollider -{ - [TaskCategory("Unity/SphereCollider")] - [TaskDescription("Sets the radius of the SphereCollider. Returns Success.")] - public class SetRadius : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The radius of the SphereCollider")] - public SharedFloat radius; - - private SphereCollider sphereCollider; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - sphereCollider = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (sphereCollider == null) { - Debug.LogWarning("SphereCollider is null"); - return TaskStatus.Failure; - } - - sphereCollider.radius = radius.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - radius = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs.meta deleted file mode 100644 index 2f8854e8c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5f45a94e6b603f2498481f61218b1769 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/SphereCollider/SetRadius.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String.meta deleted file mode 100644 index 738cfb1b7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: f1fb420b7a56bfa4ebafed6237009045 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs deleted file mode 100644 index 884d4b11f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Creates a string from multiple other strings.")] - public class BuildString : Action - { - [Tooltip("The array of strings")] - public SharedString[] source; - [Tooltip("The stored result")] - [RequiredField] - public SharedString storeResult; - - public override TaskStatus OnUpdate() - { - for (int i = 0; i < source.Length; ++i) { - storeResult.Value += source[i]; - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - source = null; - storeResult = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs.meta deleted file mode 100644 index dd2750732..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9373af75c434e1a4784c2a165ad3ce3b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/BuildString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs deleted file mode 100644 index 92448f6a7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Compares the first string to the second string. Returns an int which indicates whether the first string precedes, matches, or follows the second string.")] - public class CompareTo : Action - { - [Tooltip("The string to compare")] - public SharedString firstString; - [Tooltip("The string to compare to")] - public SharedString secondString; - [Tooltip("The stored result")] - [RequiredField] - public SharedInt storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = firstString.Value.CompareTo(secondString.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - firstString = ""; - secondString = ""; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs.meta deleted file mode 100644 index d8cc66a2f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c752378530d87cb4c98ba15e55936abf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/CompareTo.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs deleted file mode 100644 index 02d899bfb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using System; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Stores a string with the specified format.")] - public class Format : Action - { - [Tooltip("The format of the string")] - public SharedString format; - [Tooltip("Any variables to appear in the string")] - public SharedGenericVariable[] variables; - [Tooltip("The result of the format")] - [RequiredField] - public SharedString storeResult; - - private object[] variableValues; - - public override void OnAwake() - { - variableValues = new object[variables.Length]; - } - - public override TaskStatus OnUpdate() - { - for (int i = 0; i < variableValues.Length; ++i) { - variableValues[i] = variables[i].Value.value.GetValue(); - } - - try { - storeResult.Value = string.Format(format.Value, variableValues); - } catch (Exception e) { - Debug.LogError(e.Message); - return TaskStatus.Failure; - } - return TaskStatus.Success; - } - - public override void OnReset() - { - format = ""; - variables = null; - storeResult = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs.meta deleted file mode 100644 index 5863de4f8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d96c5da37483da346b96ef02fde824cb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/Format.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs deleted file mode 100644 index 82dfed2a8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Stores the length of the string")] - public class GetLength : Action - { - [Tooltip("The target string")] - public SharedString targetString; - [Tooltip("The stored result")] - [RequiredField] - public SharedInt storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = targetString.Value.Length; - return TaskStatus.Success; - } - - public override void OnReset() - { - targetString = ""; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs.meta deleted file mode 100644 index 1f304bb85..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5ab3e7e038a50c14f9fa0b019399f3be -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/GetLength.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs deleted file mode 100644 index 8cf97603f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Randomly selects a string from the array of strings.")] - public class GetRandomString : Action - { - [Tooltip("The array of strings")] - public SharedString[] source; - [Tooltip("The stored result")] - [RequiredField] - public SharedString storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = source[Random.Range(0, source.Length)].Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - source = null; - storeResult = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs.meta deleted file mode 100644 index e8a72dd45..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 355abdec2d73d2545b16d5e0d5f4c589 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/GetRandomString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs deleted file mode 100644 index 56db62377..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Stores a substring of the target string")] - public class GetSubstring : Action - { - [Tooltip("The target string")] - public SharedString targetString; - [Tooltip("The start substring index")] - public SharedInt startIndex = 0; - [Tooltip("The length of the substring. Don't use if -1")] - public SharedInt length = -1; - [Tooltip("The stored result")] - [RequiredField] - public SharedString storeResult; - - public override TaskStatus OnUpdate() - { - if (length.Value != -1) { - storeResult.Value = targetString.Value.Substring(startIndex.Value, length.Value); - } else { - storeResult.Value = targetString.Value.Substring(startIndex.Value); - } - return TaskStatus.Success; - } - - public override void OnReset() - { - targetString = ""; - startIndex = 0; - length = -1; - storeResult = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs.meta deleted file mode 100644 index d9809b988..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6ce20430f88c32b418f29b42531eca4a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/GetSubstring.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs deleted file mode 100644 index 4f91f749d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Returns success if the string is null or empty")] - public class IsNullOrEmpty : Conditional - { - [Tooltip("The target string")] - public SharedString targetString; - - public override TaskStatus OnUpdate() - { - return string.IsNullOrEmpty(targetString.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetString = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs.meta deleted file mode 100644 index 86ef19354..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f6f4d4c690c09bb48a388f36f4e30245 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/IsNullOrEmpty.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs deleted file mode 100644 index 86fd98d09..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Replaces a string with the new string")] - public class Replace : Action - { - [Tooltip("The target string")] - public SharedString targetString; - [Tooltip("The old replace")] - public SharedString oldString; - [Tooltip("The new string")] - public SharedString newString; - [Tooltip("The stored result")] - [RequiredField] - public SharedString storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = targetString.Value.Replace(oldString.Value, newString.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetString = ""; - oldString = ""; - newString = ""; - storeResult = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs.meta deleted file mode 100644 index 094d3e8e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 30fc7adfdddc39245a433ea477c01adf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/Replace.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs deleted file mode 100644 index 96060db7b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityString -{ - [TaskCategory("Unity/String")] - [TaskDescription("Sets the variable string to the value string.")] - public class SetString : Action - { - [Tooltip("The target string")] - [RequiredField] - public SharedString variable; - [Tooltip("The value string")] - public SharedString value; - - public override TaskStatus OnUpdate() - { - variable.Value = value.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - variable = ""; - value = ""; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs.meta deleted file mode 100644 index a3d9b1cf3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: da59105cbc94b5d4da3c805897f4a099 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/String/SetString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time.meta deleted file mode 100644 index e59fe44b9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: d8d2d4d347504b146a2c930a2b806d71 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs deleted file mode 100644 index 0a8e5f5b1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTime -{ - [TaskCategory("Unity/Time")] - [TaskDescription("Returns the time in seconds it took to complete the last frame.")] - public class GetDeltaTime : Action - { - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Time.deltaTime; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs.meta deleted file mode 100644 index 5942f87d9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d9d47b1b40fc1214298a3f6bfdc37e87 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Time/GetDeltaTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs deleted file mode 100644 index 43bd70b0a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTime -{ - [TaskCategory("Unity/Time")] - [TaskDescription("Returns the real time in seconds since the game started.")] - public class GetRealtimeSinceStartup : Action - { - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Time.realtimeSinceStartup; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs.meta deleted file mode 100644 index a60664560..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c265b103d220b0e4fa45138fcd605f62 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Time/GetRealtimeSinceStartup.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs deleted file mode 100644 index 3bae7705e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTime -{ - [TaskCategory("Unity/Time")] - [TaskDescription("Returns the time in second since the start of the game.")] - public class GetTime : Action - { - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Time.time; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs.meta deleted file mode 100644 index d64b03554..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5afd2ca3dda059243bf7a9156438475e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Time/GetTime.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs deleted file mode 100644 index 4df0525ac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTime -{ - [TaskCategory("Unity/Time")] - [TaskDescription("Returns the scale at which time is passing.")] - public class GetTimeScale : Action - { - [Tooltip("The variable to store the result")] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Time.timeScale; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs.meta deleted file mode 100644 index 080186e6d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 79be8ba43b4c1db468d2476318e7e71a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Time/GetTimeScale.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs deleted file mode 100644 index d315b194b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTime -{ - [TaskCategory("Unity/Time")] - [TaskDescription("Sets the scale at which time is passing.")] - public class SetTimeScale : Action - { - [Tooltip("The timescale")] - public SharedFloat timeScale; - - public override TaskStatus OnUpdate() - { - Time.timeScale = timeScale.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - timeScale.Value = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs.meta deleted file mode 100644 index 283586dbc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6283d9f4bb690c64b9d986b6ff1271f0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Time/SetTimeScale.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline.meta deleted file mode 100644 index 0ceb76af2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 50e6b8a5d6bb9cb49957395165f737a7 -folderAsset: yes -timeCreated: 1519216643 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs deleted file mode 100644 index f502f087f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; -using UnityEngine.Playables; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Timeline -{ - [TaskCategory("Unity/Timeline")] - [TaskDescription("Is the timeline currently paused?")] - public class IsPaused : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private PlayableDirector playableDirector; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - playableDirector = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (playableDirector == null) { - Debug.LogWarning("PlayableDirector is null"); - return TaskStatus.Failure; - } - - return playableDirector.state == PlayState.Paused ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs.meta deleted file mode 100644 index 81792bec2..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 52231614084966e4ea648e3293e3de67 -timeCreated: 1519216674 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPaused.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs deleted file mode 100644 index bf1331bb5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; -using UnityEngine.Playables; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Timeline -{ - [TaskCategory("Unity/Timeline")] - [TaskDescription("Is the timeline currently playing?")] - public class IsPlaying : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private PlayableDirector playableDirector; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - playableDirector = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (playableDirector == null) { - Debug.LogWarning("PlayableDirector is null"); - return TaskStatus.Failure; - } - - return playableDirector.state == PlayState.Playing ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs.meta deleted file mode 100644 index 6a34bf7f6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 61a5af2ddf414484cb4f4048f2342c4f -timeCreated: 1519216674 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Timeline/IsPlaying.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs deleted file mode 100644 index 449aa24aa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; -using UnityEngine.Playables; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Timeline -{ - [TaskCategory("Unity/Timeline")] - [TaskDescription("Pauses playback of the currently running playable.")] - public class Pause : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private PlayableDirector playableDirector; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - playableDirector = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (playableDirector == null) { - Debug.LogWarning("PlayableDirector is null"); - return TaskStatus.Failure; - } - - playableDirector.Pause(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs.meta deleted file mode 100644 index f74516403..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 158fd9e1af5fac248913c0f749720737 -timeCreated: 1519216674 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Timeline/Pause.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs deleted file mode 100644 index b1ab42ea1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs +++ /dev/null @@ -1,62 +0,0 @@ -using UnityEngine; -using UnityEngine.Playables; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Timeline -{ - [TaskCategory("Unity/Timeline")] - [TaskDescription("Instatiates a Playable using the provided PlayableAsset and starts playback.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("An asset to instantiate a playable from.")] - public PlayableAsset playableAsset; - [Tooltip("Should the task be stopped when the timeline has stopped playing?")] - public SharedBool stopWhenComplete; - - private PlayableDirector playableDirector; - private GameObject prevGameObject; - private bool playbackStarted; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - playableDirector = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - playbackStarted = false; - } - - public override TaskStatus OnUpdate() - { - if (playableDirector == null) { - Debug.LogWarning("PlayableDirector is null"); - return TaskStatus.Failure; - } - - if (playbackStarted) { - if (stopWhenComplete.Value && playableDirector.state == PlayState.Playing) { - return TaskStatus.Running; - } - return TaskStatus.Success; - } - - if (playableAsset == null) { - playableDirector.Play(); - } else { - playableDirector.Play(playableAsset); - } - playbackStarted = true; - - return stopWhenComplete.Value ? TaskStatus.Running : TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - playableAsset = null; - stopWhenComplete = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs.meta deleted file mode 100644 index 3a04dcc96..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 3268be37f87a5134e8c90f65a338172e -timeCreated: 1519216674 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Timeline/Play.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs deleted file mode 100644 index c665f53c1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs +++ /dev/null @@ -1,55 +0,0 @@ -using UnityEngine; -using UnityEngine.Playables; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Timeline -{ - [TaskCategory("Unity/Timeline")] - [TaskDescription("Resume playing a paused playable.")] - public class Resume : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Should the task be stopped when the timeline has stopped playing?")] - public SharedBool stopWhenComplete; - - private PlayableDirector playableDirector; - private GameObject prevGameObject; - private bool playbackStarted; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - playableDirector = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - playbackStarted = false; - } - - public override TaskStatus OnUpdate() - { - if (playableDirector == null) { - Debug.LogWarning("PlayableDirector is null"); - return TaskStatus.Failure; - } - - if (playbackStarted) { - if (stopWhenComplete.Value && playableDirector.state == PlayState.Playing) { - return TaskStatus.Running; - } - return TaskStatus.Success; - } - - playableDirector.Resume(); - playbackStarted = true; - - return stopWhenComplete.Value ? TaskStatus.Running : TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - stopWhenComplete = false; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs.meta deleted file mode 100644 index 6526afbc3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 08ea323394eb79c48a2aa692cb4e82ac -timeCreated: 1519216674 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Timeline/Resume.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs deleted file mode 100644 index 733126714..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; -using UnityEngine.Playables; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.Timeline -{ - [TaskCategory("Unity/Timeline")] - [TaskDescription("Stops playback of the current Playable and destroys the corresponding graph.")] - public class Stop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private PlayableDirector playableDirector; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - playableDirector = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (playableDirector == null) { - Debug.LogWarning("PlayableDirector is null"); - return TaskStatus.Failure; - } - - playableDirector.Stop(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs.meta deleted file mode 100644 index 95cc7bb7a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 7941758d54ddf364ca7b43af93da05ec -timeCreated: 1519216674 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Timeline/Stop.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform.meta deleted file mode 100644 index 633ff139c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: d2f1ebdae5c7ffb4d8c7a9daa37b5130 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs deleted file mode 100644 index 2a8f89384..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Finds a transform by name. Returns success if an object is found.")] - public class Find : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The transform name to find")] - public SharedString transformName; - [Tooltip("The object found by name")] - [RequiredField] - public SharedTransform storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.Find(transformName.Value); - - return storeValue.Value != null ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - transformName = null; - storeValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs.meta deleted file mode 100644 index dfa7e8c8b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 387fd22087393ab4e91f0ad4fce4e77f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/Find.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs deleted file mode 100644 index 370c2b02d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Gets the Angle between a GameObject's forward direction and a target. Returns Success.")] - public class GetAngleToTarget : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The target object to measure the angle to. If null the targetPosition will be used.")] - public SharedGameObject targetObject; - [Tooltip("The world position to measure an angle to. If the targetObject is also not null, this value is used as an offset from that object's position.")] - public SharedVector3 targetPosition; - [Tooltip("Ignore height differences when calculating the angle?")] - public SharedBool ignoreHeight = true; - [Tooltip("The angle to the target")] - [RequiredField] - public SharedFloat storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - Vector3 targetPos; - if (targetObject.Value != null) { - targetPos = targetObject.Value.transform.InverseTransformPoint(targetPosition.Value); - } else { - targetPos = targetPosition.Value; - } - - if (ignoreHeight.Value) { - targetPos.y = targetTransform.position.y; - } - - var targetDir = targetPos - targetTransform.position; - storeValue.Value = Vector3.Angle(targetDir, targetTransform.forward); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - targetObject = null; - targetPosition = Vector3.zero; - ignoreHeight = true; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs.meta deleted file mode 100644 index 73e17b9e8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ae176a605fff9a2468198085313c26ad -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetAngleToTarget.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs deleted file mode 100644 index 9a12c8aab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the transform child at the specified index. Returns Success.")] - public class GetChild : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The index of the child")] - public SharedInt index; - [Tooltip("The child of the Transform")] - [RequiredField] - public SharedTransform storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.GetChild(index.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - storeValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs.meta deleted file mode 100644 index c01f51fd5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 04ea225bb12181a4daf7f3d6a21eaa5d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChild.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs deleted file mode 100644 index faa7a03b3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the number of children a Transform has. Returns Success.")] - public class GetChildCount : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The number of children")] - [RequiredField] - public SharedInt storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.childCount; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs.meta deleted file mode 100644 index 15ec85082..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8e31c13112e4d334ab9d67feaac94d3f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetChildCount.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs deleted file mode 100644 index f44f0f13c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the euler angles of the Transform. Returns Success.")] - public class GetEulerAngles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The euler angles of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.eulerAngles; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs.meta deleted file mode 100644 index 44eb065a0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 43295a23f5d9cb345ae408d5ac843b52 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetEulerAngles.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs deleted file mode 100644 index a98596df9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the forward vector of the Transform. Returns Success.")] - public class GetForwardVector : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.forward; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs.meta deleted file mode 100644 index 4e0a087ab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a5748c07a5ebe54429eb3e9ae032b5e2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetForwardVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs deleted file mode 100644 index fddd98bb8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the local euler angles of the Transform. Returns Success.")] - public class GetLocalEulerAngles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local euler angles of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.localEulerAngles; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs.meta deleted file mode 100644 index b8803d6ab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 459c793e1b836104f901813471414ccc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalEulerAngles.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs deleted file mode 100644 index 084b111e7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the local position of the Transform. Returns Success.")] - public class GetLocalPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local position of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.localPosition; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs.meta deleted file mode 100644 index 432f15868..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4fdc0d751b2c91f438142cf65fcbba34 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs deleted file mode 100644 index 992c0344c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the local rotation of the Transform. Returns Success.")] - public class GetLocalRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local rotation of the Transform")] - [RequiredField] - public SharedQuaternion storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.localRotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs.meta deleted file mode 100644 index 0299d4191..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2334ddf0e58b67e40ad16e2f63dad8ee -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs deleted file mode 100644 index efc187ece..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the local scale of the Transform. Returns Success.")] - public class GetLocalScale : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local scale of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.localScale; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs.meta deleted file mode 100644 index ad5117ae5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e0b10fe3fcda1914fbbdde4a860cd403 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetLocalScale.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs deleted file mode 100644 index d29f7aa8b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the parent of the Transform. Returns Success.")] - public class GetParent : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The parent of the Transform")] - [RequiredField] - public SharedTransform storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.parent; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs.meta deleted file mode 100644 index b936210df..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f149245d8fce789498c301657a7eaf88 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetParent.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs deleted file mode 100644 index c5151fc23..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the position of the Transform. 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("Can the target GameObject be empty?")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.position; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs.meta deleted file mode 100644 index 081e0a29c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9ce1fdc3f652b3043b5116efba12cc48 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs deleted file mode 100644 index 4bc1b3664..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the right vector of the Transform. Returns Success.")] - public class GetRightVector : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.right; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs.meta deleted file mode 100644 index 5c4a75259..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6b5147164f2674547888db24cba68770 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRightVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs deleted file mode 100644 index bb1c43998..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the rotation of the Transform. 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 Transform")] - [RequiredField] - public SharedQuaternion storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.rotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs.meta deleted file mode 100644 index 96bc222ea..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5384b69809f40f5489ca7d7d345471d2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs deleted file mode 100644 index abb5ef189..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Stores the up vector of the Transform. Returns Success.")] - public class GetUpVector : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - [RequiredField] - public SharedVector3 storeValue; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - storeValue.Value = targetTransform.up; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs.meta deleted file mode 100644 index 28ec9ba28..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 605a7c93705031042be47bd4a4ab6079 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/GetUpVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs deleted file mode 100644 index f26259368..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Returns Success if the transform is a child of the specified GameObject.")] - public class IsChildOf : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The interested transform")] - public SharedTransform transformName; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - return targetTransform.IsChildOf(transformName.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - transformName = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs.meta deleted file mode 100644 index 10bdb9933..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 304e488eb1caa4f45a8bd903292492ca -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/IsChildOf.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs deleted file mode 100644 index a1ddca1c4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs +++ /dev/null @@ -1,54 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Rotates the transform so the forward vector points at worldPosition. Returns Success.")] - public class LookAt : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The GameObject to look at. If null the world position will be used.")] - public SharedGameObject targetLookAt; - [Tooltip("Point to look at")] - public SharedVector3 worldPosition; - [Tooltip("Vector specifying the upward direction")] - public Vector3 worldUp; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - if (targetLookAt.Value != null) { - targetTransform.LookAt(targetLookAt.Value.transform); - } else { - targetTransform.LookAt(worldPosition.Value, worldUp); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - targetLookAt = null; - worldPosition = Vector3.up; - worldUp = Vector3.up; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs.meta deleted file mode 100644 index ea7c8233c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 64883614392671f438244b3aa5b91c6c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/LookAt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs deleted file mode 100644 index 85415277b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Applies a rotation. Returns Success.")] - public class Rotate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Amount to rotate")] - public SharedVector3 eulerAngles; - [Tooltip("Specifies which axis the rotation is relative to")] - public Space relativeTo = Space.Self; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.Rotate(eulerAngles.Value, relativeTo); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - eulerAngles = Vector3.zero; - relativeTo = Space.Self; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs.meta deleted file mode 100644 index e9b6f7e99..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: db0cba6372babb541a0da57412963760 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/Rotate.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs deleted file mode 100644 index b36fa3df7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs +++ /dev/null @@ -1,50 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Applies a rotation. Returns Success.")] - public class RotateAround : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Point to rotate around")] - public SharedVector3 point; - [Tooltip("Axis to rotate around")] - public SharedVector3 axis; - [Tooltip("Amount to rotate")] - public SharedFloat angle; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.RotateAround(point.Value, axis.Value, angle.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - point = Vector3.zero; - axis = Vector3.zero; - angle = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs.meta deleted file mode 100644 index 7a5d2f5d7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 65cef920fcc4ec449a1e6a29fe79c024 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/RotateAround.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs deleted file mode 100644 index 249c3682e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the euler angles of the Transform. Returns Success.")] - public class SetEulerAngles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The euler angles of the Transform")] - public SharedVector3 eulerAngles; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.eulerAngles = eulerAngles.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - eulerAngles = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs.meta deleted file mode 100644 index 5cf0c9ed1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: edad3f12ad10ba14aac656b7f431ff31 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetEulerAngles.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs deleted file mode 100644 index 9c7369131..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the forward vector of the Transform. Returns Success.")] - public class SetForwardVector : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - public SharedVector3 position; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.forward = position.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs.meta deleted file mode 100644 index 1c5729a0e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4cf669b5419d7294cb72c90881267c0c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetForwardVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs deleted file mode 100644 index 9fd68c04e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the local euler angles of the Transform. Returns Success.")] - public class SetLocalEulerAngles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local euler angles of the Transform")] - public SharedVector3 localEulerAngles; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.localEulerAngles = localEulerAngles.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - localEulerAngles = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs.meta deleted file mode 100644 index 8d783ffdb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2e1ed691ebf9f154e88bb8be7319baad -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalEulerAngles.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs deleted file mode 100644 index 7d276aeed..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the local position of the Transform. Returns Success.")] - public class SetLocalPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local position of the Transform")] - public SharedVector3 localPosition; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.localPosition = localPosition.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - localPosition = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs.meta deleted file mode 100644 index db8cb519b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5af08673c7a3bb54c974bb23094d4587 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs deleted file mode 100644 index a7ead69cb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the local rotation of the Transform. Returns Success.")] - public class SetLocalRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local rotation of the Transform")] - public SharedQuaternion localRotation; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.localRotation = localRotation.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - localRotation = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs.meta deleted file mode 100644 index 493437d3d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: de22c6e6826367540b2f25957757a1d4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs deleted file mode 100644 index 381f8435a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the local scale of the Transform. Returns Success.")] - public class SetLocalScale : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The local scale of the Transform")] - public SharedVector3 localScale; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.localScale = localScale.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - localScale = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs.meta deleted file mode 100644 index 32ea44ce6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 354ce71974ea2b44ab820c8285f72421 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetLocalScale.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs deleted file mode 100644 index 80e3f7d48..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the parent of the Transform. Returns Success.")] - public class SetParent : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The parent of the Transform")] - public SharedTransform parent; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.parent = parent.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - parent = null; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs.meta deleted file mode 100644 index d93b755a5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a19c91d6c31b48d45b2ea97efeae14aa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetParent.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs deleted file mode 100644 index 250d78f52..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the position of the Transform. Returns Success.")] - public class SetPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - public SharedVector3 position; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.position = position.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs.meta deleted file mode 100644 index a8da06544..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d0586a5078618624398df51fd677a2e0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetPosition.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs deleted file mode 100644 index 2d94fed8f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the right vector of the Transform. Returns Success.")] - public class SetRightVector : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - public SharedVector3 position; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.right = position.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs.meta deleted file mode 100644 index c0d321dca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 4629bee77af22ca42a716dfa8ad3e669 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRightVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs deleted file mode 100644 index 76038c47d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the rotation of the Transform. Returns Success.")] - public class SetRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The rotation of the Transform")] - public SharedQuaternion rotation; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.rotation = rotation.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rotation = Quaternion.identity; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs.meta deleted file mode 100644 index 02cfaa8fa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fb61cc6175ff14c4d84c3c72541bc30d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetRotation.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs deleted file mode 100644 index d1895249c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Sets the up vector of the Transform. Returns Success.")] - public class SetUpVector : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position of the Transform")] - public SharedVector3 position; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.up = position.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs.meta deleted file mode 100644 index 1f6bbc89b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2e65dee462c24694a9835796a770af6e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/SetUpVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs deleted file mode 100644 index 439c83a25..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityTransform -{ - [TaskCategory("Unity/Transform")] - [TaskDescription("Moves the transform in the direction and distance of translation. Returns Success.")] - public class Translate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Move direction and distance")] - public SharedVector3 translation; - [Tooltip("Specifies which axis the rotation is relative to")] - public Space relativeTo = Space.Self; - - private Transform targetTransform; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - targetTransform = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (targetTransform == null) { - Debug.LogWarning("Transform is null"); - return TaskStatus.Failure; - } - - targetTransform.Translate(translation.Value, relativeTo); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - translation = Vector3.zero; - relativeTo = Space.Self; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs.meta deleted file mode 100644 index fa685cf47..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d4a788705b79d3745a26867acf47a63a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Transform/Translate.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2.meta deleted file mode 100644 index a0115a94b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: ea5a99c944135bb47be3809004f4ca10 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs deleted file mode 100644 index a1dbc698d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Clamps the magnitude of the Vector2.")] - public class ClampMagnitude : Action - { - [Tooltip("The Vector2 to clamp the magnitude of")] - public SharedVector2 vector2Variable; - [Tooltip("The max length of the magnitude")] - public SharedFloat maxLength; - [Tooltip("The clamp magnitude resut")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.ClampMagnitude(vector2Variable.Value, maxLength.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = Vector2.zero; - storeResult = Vector2.zero; - maxLength = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs.meta deleted file mode 100644 index e1ffada85..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a2a5d2ecd681ef64ea5b5fbf81cc0b2d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/ClampMagnitude.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs deleted file mode 100644 index 9be80d656..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Returns the distance between two Vector2s.")] - public class Distance : Action - { - [Tooltip("The first Vector2")] - public SharedVector2 firstVector2; - [Tooltip("The second Vector2")] - public SharedVector2 secondVector2; - [Tooltip("The distance")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.Distance(firstVector2.Value, secondVector2.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - firstVector2 = Vector2.zero; - secondVector2 = Vector2.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs.meta deleted file mode 100644 index 0c9fbc1f4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a35c2cb53a768894f8d81c2e8dc87b9b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs deleted file mode 100644 index 1d57a5d41..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the dot product of two Vector2 values.")] - public class Dot : Action - { - [Tooltip("The left hand side of the dot product")] - public SharedVector2 leftHandSide; - [Tooltip("The right hand side of the dot product")] - public SharedVector2 rightHandSide; - [Tooltip("The dot product result")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.Dot(leftHandSide.Value, rightHandSide.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - leftHandSide = Vector2.zero; - rightHandSide = Vector2.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs.meta deleted file mode 100644 index fb4bea6e3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c9c233b5173aece4493146b736d4e65d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/Dot.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs deleted file mode 100644 index b799ac128..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the magnitude of the Vector2.")] - public class GetMagnitude : Action - { - [Tooltip("The Vector2 to get the magnitude of")] - public SharedVector2 vector2Variable; - [Tooltip("The magnitude of the vector")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector2Variable.Value.magnitude; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = Vector2.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs.meta deleted file mode 100644 index 4eee5c4d8..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 64a63651c7294144197858c8b6387b49 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetMagnitude.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs deleted file mode 100644 index f9ba29ced..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the right vector value.")] - public class GetRightVector : Action - { - [Tooltip("The stored result")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.right; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs.meta deleted file mode 100644 index 023424c94..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f46062197c393bb4a809f7faf8e9fc70 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetRightVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs deleted file mode 100644 index 69ac61650..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the square magnitude of the Vector2.")] - public class GetSqrMagnitude : Action - { - [Tooltip("The Vector2 to get the square magnitude of")] - public SharedVector2 vector2Variable; - [Tooltip("The square magnitude of the vector")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector2Variable.Value.sqrMagnitude; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = Vector2.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs.meta deleted file mode 100644 index 5e25b2fa3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 5366ccb4258ea7f49ae280d05d2a195c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetSqrMagnitude.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs deleted file mode 100644 index 9e5986620..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the up vector value.")] - public class GetUpVector : Action - { - [Tooltip("The stored result")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.up; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs.meta deleted file mode 100644 index a16498b24..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7ec54e34058d3a04dbd9ed27538731b0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetUpVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs deleted file mode 100644 index 929884fb1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the Vector3 value of the Vector2.")] - public class GetVector3 : Action - { - [Tooltip("The Vector2 to get the Vector3 value of")] - public SharedVector2 vector3Variable; - [Tooltip("The Vector3 value")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector3Variable.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector2.zero; - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs.meta deleted file mode 100644 index 80dc9138c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 89ba2f45bfecb9c40a4de0394c8019e0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetVector3.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs deleted file mode 100644 index 154d5fc86..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Stores the X and Y values of the Vector2.")] - public class GetXY : Action - { - [Tooltip("The Vector2 to get the values of")] - public SharedVector2 vector2Variable; - [Tooltip("The X value")] - [RequiredField] - public SharedFloat storeX; - [Tooltip("The Y value")] - [RequiredField] - public SharedFloat storeY; - - public override TaskStatus OnUpdate() - { - storeX.Value = vector2Variable.Value.x; - storeY.Value = vector2Variable.Value.y; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = Vector2.zero; - storeX = storeY = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs.meta deleted file mode 100644 index 83f284e81..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e258a57c9873ecf4fb8a1432e418ecb4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/GetXY.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs deleted file mode 100644 index 81919fe22..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Lerp the Vector2 by an amount.")] - public class Lerp : Action - { - [Tooltip("The from value")] - public SharedVector2 fromVector2; - [Tooltip("The to value")] - public SharedVector2 toVector2; - [Tooltip("The amount to lerp")] - public SharedFloat lerpAmount; - [Tooltip("The lerp resut")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.Lerp(fromVector2.Value, toVector2.Value, lerpAmount.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromVector2 = Vector2.zero; - toVector2 = Vector2.zero; - storeResult = Vector2.zero; - lerpAmount = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs.meta deleted file mode 100644 index c8b0177e7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 6f709035ad060c04d9f758980ad7e2c3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/Lerp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs deleted file mode 100644 index 1d17e4764..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Move from the current position to the target position.")] - public class MoveTowards : Action - { - [Tooltip("The current position")] - public SharedVector2 currentPosition; - [Tooltip("The target position")] - public SharedVector2 targetPosition; - [Tooltip("The movement speed")] - public SharedFloat speed; - [Tooltip("The move resut")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector2.MoveTowards(currentPosition.Value, targetPosition.Value, speed.Value * Time.deltaTime); - return TaskStatus.Success; - } - - public override void OnReset() - { - currentPosition = Vector2.zero; - targetPosition = Vector2.zero; - storeResult = Vector2.zero; - speed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs.meta deleted file mode 100644 index c736ee5fb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ab464382cafa087498bef68f6988dff7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/MoveTowards.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs deleted file mode 100644 index 82bb7bf98..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Multiply the Vector2 by a float.")] - public class Multiply : Action - { - [Tooltip("The Vector2 to multiply of")] - public SharedVector2 vector2Variable; - [Tooltip("The value to multiply the Vector2 of")] - public SharedFloat multiplyBy; - [Tooltip("The multiplication resut")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector2Variable.Value * multiplyBy.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = storeResult = Vector2.zero; - multiplyBy = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs.meta deleted file mode 100644 index ab7a9a181..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 7f21148eaa498684baa11ac8ac177599 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/Multiply.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs deleted file mode 100644 index da1440ecb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Normalize the Vector2.")] - public class Normalize : Action - { - [Tooltip("The Vector2 to normalize")] - public SharedVector2 vector2Variable; - [Tooltip("The normalized resut")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector2Variable.Value.normalized; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = Vector2.zero; - storeResult = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs.meta deleted file mode 100644 index 9726d23e1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ed5b59611a512984f9755c358afc67d8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/Normalize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs deleted file mode 100644 index 0af22caac..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Performs a math operation on two Vector2s: Add, Subtract, Multiply, Divide, Min, or Max.")] - public class Operator : Action - { - public enum Operation - { - Add, - Subtract, - Scale - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first Vector2")] - public SharedVector2 firstVector2; - [Tooltip("The second Vector2")] - public SharedVector2 secondVector2; - [Tooltip("The variable to store the result")] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.Add: - storeResult.Value = firstVector2.Value + secondVector2.Value; - break; - case Operation.Subtract: - storeResult.Value = firstVector2.Value - secondVector2.Value; - break; - case Operation.Scale: - storeResult.Value = Vector2.Scale(firstVector2.Value, secondVector2.Value); - break; - } - return TaskStatus.Success; - } - - public override void OnReset() - { - operation = Operation.Add; - firstVector2 = Vector2.zero; - secondVector2 = Vector2.zero; - storeResult = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs.meta deleted file mode 100644 index 17b327e88..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2ae8ac6f41714174fa63df41c7e32019 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/Operator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs deleted file mode 100644 index 246c155cc..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Sets the value of the Vector2.")] - public class SetValue : Action - { - [Tooltip("The Vector2 to get the values of")] - public SharedVector2 vector2Value; - [Tooltip("The Vector2 to set the values of")] - public SharedVector2 vector2Variable; - - public override TaskStatus OnUpdate() - { - vector2Variable.Value = vector2Value.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Value = Vector2.zero; - vector2Variable = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs.meta deleted file mode 100644 index 5917c8857..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 61e3d384c43977148b829dab4090ab3b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs deleted file mode 100644 index f6c23d0d4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2 -{ - [TaskCategory("Unity/Vector2")] - [TaskDescription("Sets the X and Y values of the Vector2.")] - public class SetXY : Action - { - [Tooltip("The Vector2 to set the values of")] - public SharedVector2 vector2Variable; - [Tooltip("The X value. Set to None to have the value ignored")] - public SharedFloat xValue; - [Tooltip("The Y value. Set to None to have the value ignored")] - public SharedFloat yValue; - - public override TaskStatus OnUpdate() - { - var vector2Value = vector2Variable.Value; - if (!xValue.IsNone) { - vector2Value.x = xValue.Value; - } - if (!yValue.IsNone) { - vector2Value.y = yValue.Value; - } - vector2Variable.Value = vector2Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector2Variable = Vector2.zero; - xValue = 0; - yValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs.meta deleted file mode 100644 index 7f0aefdaf..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: a24836a22bca9bd4ab701e35bf36f6a9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector2/SetXY.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3.meta deleted file mode 100644 index 1dea60080..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 65391955a7357ef4e82aa0214dc9b407 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs deleted file mode 100644 index 054c9c2f3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Returns the angle between two Vector3s.")] - public class Angle : Action - { - [Tooltip("The first Vector3")] - public SharedVector3 firstVector3; - [Tooltip("The second Vector3")] - public SharedVector3 secondVector3; - [Tooltip("The angle")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.Angle(firstVector3.Value, secondVector3.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - firstVector3 = Vector3.zero; - secondVector3 = Vector3.zero; - storeResult = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs.meta deleted file mode 100644 index e45bf3f06..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1e3b18a7f2f7db54992b881f449091ad -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Angle.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs deleted file mode 100644 index 9795cdcae..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Clamps the magnitude of the Vector3.")] - public class ClampMagnitude : Action - { - [Tooltip("The Vector3 to clamp the magnitude of")] - public SharedVector3 vector3Variable; - [Tooltip("The max length of the magnitude")] - public SharedFloat maxLength; - [Tooltip("The clamp magnitude resut")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.ClampMagnitude(vector3Variable.Value, maxLength.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeResult = Vector3.zero; - maxLength = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs.meta deleted file mode 100644 index b9f2fe763..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e3d2efd14a9499b47a17ea16bf45512f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/ClampMagnitude.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs deleted file mode 100644 index 2266cf266..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Returns the distance between two Vector3s.")] - public class Distance : Action - { - [Tooltip("The first Vector3")] - public SharedVector3 firstVector3; - [Tooltip("The second Vector3")] - public SharedVector3 secondVector3; - [Tooltip("The distance")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.Distance(firstVector3.Value, secondVector3.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - firstVector3 = Vector3.zero; - secondVector3 = Vector3.zero; - storeResult = 0; - } - } -} diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs.meta deleted file mode 100644 index 3addaa373..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 8c4522b996b52d040822fb808cfc9d97 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Distance.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs deleted file mode 100644 index b68ea0409..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the dot product of two Vector3 values.")] - public class Dot : Action - { - [Tooltip("The left hand side of the dot product")] - public SharedVector3 leftHandSide; - [Tooltip("The right hand side of the dot product")] - public SharedVector3 rightHandSide; - [Tooltip("The dot product result")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.Dot(leftHandSide.Value, rightHandSide.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - leftHandSide = Vector3.zero; - rightHandSide = Vector3.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs.meta deleted file mode 100644 index 1431c0f32..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fe5e2655abffbe94eba3f6a0abd34b5c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Dot.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs deleted file mode 100644 index eee7e008e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the forward vector value.")] - public class GetForwardVector : Action - { - [Tooltip("The stored result")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.forward; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs.meta deleted file mode 100644 index 2e6093207..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b09c11f987794eb45b65e0ef249cdb3f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetForwardVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs deleted file mode 100644 index 5a7c5165a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the magnitude of the Vector3.")] - public class GetMagnitude : Action - { - [Tooltip("The Vector3 to get the magnitude of")] - public SharedVector3 vector3Variable; - [Tooltip("The magnitude of the vector")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector3Variable.Value.magnitude; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs.meta deleted file mode 100644 index 96a82e74e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: dcf2397966692fe4a819a0db18186778 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetMagnitude.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs deleted file mode 100644 index 7e496020f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the right vector value.")] - public class GetRightVector : Action - { - [Tooltip("The stored result")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.right; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs.meta deleted file mode 100644 index 2bc9e657b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ca338b1189144fe47ab9b1fa6a54e970 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetRightVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs deleted file mode 100644 index 92dfeb250..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the square magnitude of the Vector3.")] - public class GetSqrMagnitude : Action - { - [Tooltip("The Vector3 to get the square magnitude of")] - public SharedVector3 vector3Variable; - [Tooltip("The square magnitude of the vector")] - [RequiredField] - public SharedFloat storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector3Variable.Value.sqrMagnitude; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs.meta deleted file mode 100644 index df334e710..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fb704714eacb92948bd59ddd38865b59 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetSqrMagnitude.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs deleted file mode 100644 index 95fa362e0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the up vector value.")] - public class GetUpVector : Action - { - [Tooltip("The stored result")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.up; - return TaskStatus.Success; - } - - public override void OnReset() - { - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs.meta deleted file mode 100644 index 1cc8e18da..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 225a4566a02bdec4e82a2335b4e6c5fc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetUpVector.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs deleted file mode 100644 index ef9230014..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the Vector2 value of the Vector3.")] - public class GetVector2 : Action - { - [Tooltip("The Vector3 to get the Vector2 value of")] - public SharedVector3 vector3Variable; - [Tooltip("The Vector2 value")] - [RequiredField] - public SharedVector2 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector3Variable.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeResult = Vector2.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs.meta deleted file mode 100644 index 8bd39085e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 959ed107c681b1c44af1b842ed7ca445 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetVector2.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs deleted file mode 100644 index 56307e99d..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Stores the X, Y, and Z values of the Vector3.")] - public class GetXYZ : Action - { - [Tooltip("The Vector3 to get the values of")] - public SharedVector3 vector3Variable; - [Tooltip("The X value")] - [RequiredField] - public SharedFloat storeX; - [Tooltip("The Y value")] - [RequiredField] - public SharedFloat storeY; - [Tooltip("The Z value")] - [RequiredField] - public SharedFloat storeZ; - - public override TaskStatus OnUpdate() - { - storeX.Value = vector3Variable.Value.x; - storeY.Value = vector3Variable.Value.y; - storeZ.Value = vector3Variable.Value.z; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeX = 0; - storeY = 0; - storeZ = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs.meta deleted file mode 100644 index 7f8d1a57e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: fbab043af227fe14e8875a1df65cbae4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/GetXYZ.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs deleted file mode 100644 index e939878c0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Lerp the Vector3 by an amount.")] - public class Lerp : Action - { - [Tooltip("The from value")] - public SharedVector3 fromVector3; - [Tooltip("The to value")] - public SharedVector3 toVector3; - [Tooltip("The amount to lerp")] - public SharedFloat lerpAmount; - [Tooltip("The lerp resut")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.Lerp(fromVector3.Value, toVector3.Value, lerpAmount.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - fromVector3 = toVector3 = storeResult = Vector3.zero; - lerpAmount = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs.meta deleted file mode 100644 index 5dfbcbf64..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: ef769062529820342a12a00e9cf8611d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Lerp.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs deleted file mode 100644 index b082f2008..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Move from the current position to the target position.")] - public class MoveTowards : Action - { - [Tooltip("The current position")] - public SharedVector3 currentPosition; - [Tooltip("The target position")] - public SharedVector3 targetPosition; - [Tooltip("The movement speed")] - public SharedFloat speed; - [Tooltip("The move resut")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.MoveTowards(currentPosition.Value, targetPosition.Value, speed.Value * Time.deltaTime); - return TaskStatus.Success; - } - - public override void OnReset() - { - currentPosition = Vector3.zero; - targetPosition = Vector3.zero; - storeResult = Vector3.zero; - speed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs.meta deleted file mode 100644 index da0d9a555..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: b6562a7b02f6ab1478612f41defc5299 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/MoveTowards.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs deleted file mode 100644 index 880415696..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Multiply the Vector3 by a float.")] - public class Multiply : Action - { - [Tooltip("The Vector3 to multiply of")] - public SharedVector3 vector3Variable; - [Tooltip("The value to multiply the Vector3 of")] - public SharedFloat multiplyBy; - [Tooltip("The multiplication resut")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = vector3Variable.Value * multiplyBy.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeResult = Vector3.zero; - multiplyBy = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs.meta deleted file mode 100644 index 77a6cc449..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1d1d7bd2678e229468abd363ac4a3dd6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Multiply.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs deleted file mode 100644 index 6d03c73a7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Normalize the Vector3.")] - public class Normalize : Action - { - [Tooltip("The Vector3 to normalize")] - public SharedVector3 vector3Variable; - [Tooltip("The normalized resut")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.Normalize(vector3Variable.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs.meta deleted file mode 100644 index 2a28a5df6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: bc8d58dc29ef6ab49a11e77f517e30ca -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Normalize.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs deleted file mode 100644 index 64f6dfdba..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Performs a math operation on two Vector3s: Add, Subtract, Multiply, Divide, Min, or Max.")] - public class Operator : Action - { - public enum Operation - { - Add, - Subtract, - Scale - } - - [Tooltip("The operation to perform")] - public Operation operation; - [Tooltip("The first Vector3")] - public SharedVector3 firstVector3; - [Tooltip("The second Vector3")] - public SharedVector3 secondVector3; - [Tooltip("The variable to store the result")] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - switch (operation) { - case Operation.Add: - storeResult.Value = firstVector3.Value + secondVector3.Value; - break; - case Operation.Subtract: - storeResult.Value = firstVector3.Value - secondVector3.Value; - break; - case Operation.Scale: - storeResult.Value = Vector3.Scale(firstVector3.Value, secondVector3.Value); - break; - } - return TaskStatus.Success; - } - - public override void OnReset() - { - operation = Operation.Add; - firstVector3 = Vector3.zero; - secondVector3 = Vector3.zero; - storeResult = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs.meta deleted file mode 100644 index 0fab5ed81..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 606d84afee1cfbe4892d452884d36be8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/Operator.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs deleted file mode 100644 index 72e1f5c8e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Rotate the current rotation to the target rotation.")] - public class RotateTowards : Action - { - [Tooltip("The current rotation in euler angles")] - public SharedVector3 currentRotation; - [Tooltip("The target rotation in euler angles")] - public SharedVector3 targetRotation; - [Tooltip("The maximum delta of the degrees")] - public SharedFloat maxDegreesDelta; - [Tooltip("The maximum delta of the magnitude")] - public SharedFloat maxMagnitudeDelta; - [Tooltip("The rotation resut")] - [RequiredField] - public SharedVector3 storeResult; - - public override TaskStatus OnUpdate() - { - storeResult.Value = Vector3.RotateTowards(currentRotation.Value, targetRotation.Value, maxDegreesDelta.Value * Mathf.Deg2Rad * Time.deltaTime, maxMagnitudeDelta.Value); - return TaskStatus.Success; - } - - public override void OnReset() - { - currentRotation = Vector3.zero; - targetRotation = Vector3.zero; - storeResult = Vector3.zero; - maxDegreesDelta = 0; - maxMagnitudeDelta = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs.meta deleted file mode 100644 index 77cbdcbca..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 55175ed9420ee88429fbb91a9b433b9c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/RotateTowards.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs deleted file mode 100644 index 194fa6e98..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Sets the value of the Vector3.")] - public class SetValue : Action - { - [Tooltip("The Vector3 to get the values of")] - public SharedVector3 vector3Value; - [Tooltip("The Vector3 to set the values of")] - public SharedVector3 vector3Variable; - - public override TaskStatus OnUpdate() - { - vector3Variable.Value = vector3Value.Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Value = Vector3.zero; - vector3Variable = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs.meta deleted file mode 100644 index 2d843eb99..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d512a8eb2bde4ea49868fdd746dafb0d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetValue.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs deleted file mode 100644 index 23d05a0da..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector3 -{ - [TaskCategory("Unity/Vector3")] - [TaskDescription("Sets the X, Y, and Z values of the Vector3.")] - public class SetXYZ : Action - { - [Tooltip("The Vector3 to set the values of")] - public SharedVector3 vector3Variable; - [Tooltip("The X value. Set to None to have the value ignored")] - public SharedFloat xValue; - [Tooltip("The Y value. Set to None to have the value ignored")] - public SharedFloat yValue; - [Tooltip("The Z value. Set to None to have the value ignored")] - public SharedFloat zValue; - - public override TaskStatus OnUpdate() - { - var vector3Value = vector3Variable.Value; - if (!xValue.IsNone) { - vector3Value.x = xValue.Value; - } - if (!yValue.IsNone) { - vector3Value.y = yValue.Value; - } - if (!zValue.IsNone) { - vector3Value.z = zValue.Value; - } - vector3Variable.Value = vector3Value; - return TaskStatus.Success; - } - - public override void OnReset() - { - vector3Variable = Vector3.zero; - xValue = yValue = zValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs.meta b/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs.meta deleted file mode 100644 index 72bdc2de3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: efcd4530935b0c445804e64d0820f27b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Tasks/Unity/Vector3/SetXYZ.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables.meta b/Assets/External/Behavior Designer/Runtime/Variables.meta deleted file mode 100644 index c91b795e3..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: a52d5a185c5a1614f875fcb1828d78d8 -DefaultImporter: - userData: diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs deleted file mode 100644 index f7c8a6de5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedAnimationCurve : SharedVariable - { - public static implicit operator SharedAnimationCurve(AnimationCurve value) { return new SharedAnimationCurve { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs.meta deleted file mode 100644 index 1452a4ef7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: e30f25f7530f8424a997bd05af4ef4fd -timeCreated: 1500510014 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedAnimationCurve.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedBehaviour.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedBehaviour.cs deleted file mode 100644 index e896be7c4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedBehaviour.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedBehaviour : SharedVariable - { - public static explicit operator SharedBehaviour(Behaviour value) { return new SharedBehaviour { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedBehaviour.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedBehaviour.cs.meta deleted file mode 100644 index 751acfc15..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedBehaviour.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 30ee055ba23074141b455674e2e17bff -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedBehaviour.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedBool.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedBool.cs deleted file mode 100644 index 233470f81..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedBool.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedBool : SharedVariable - { - public static implicit operator SharedBool(bool value) { return new SharedBool { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedBool.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedBool.cs.meta deleted file mode 100644 index a3af7fb6b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedBool.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c2f4e02925f3d454c8a49a9f9cc1d497 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedBool.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedCollider.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedCollider.cs deleted file mode 100644 index 9311dc4c1..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedCollider.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedCollider : SharedVariable - { - public static implicit operator SharedCollider(Collider value) { return new SharedCollider { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedCollider.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedCollider.cs.meta deleted file mode 100644 index cb2d86077..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedCollider.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 9e04c1684b0b8b7439be44cc63a4d5f2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedCollider.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedColor.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedColor.cs deleted file mode 100644 index 7a893ab34..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedColor.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedColor : SharedVariable - { - public static implicit operator SharedColor(Color value) { return new SharedColor { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedColor.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedColor.cs.meta deleted file mode 100644 index 865842bcb..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedColor.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1aebb6343767438449d67bf4118aeefe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedColor.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedFloat.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedFloat.cs deleted file mode 100644 index 465595909..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedFloat.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedFloat : SharedVariable - { - public static implicit operator SharedFloat(float value) { return new SharedFloat { Value = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta deleted file mode 100644 index 70b782c1a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 954735ce9c49fd845add7abd7883211c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedFloat.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObject.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObject.cs deleted file mode 100644 index 1347a43ab..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObject.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedGameObject : SharedVariable - { - public static implicit operator SharedGameObject(GameObject value) { return new SharedGameObject { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta deleted file mode 100644 index ed7d07b39..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: df84e4f8f0e526344a46be1b083e0218 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedGameObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs deleted file mode 100644 index 638a10d92..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedGameObjectList : SharedVariable> - { - public SharedGameObjectList() - { - mValue = new List(); - } - - public static implicit operator SharedGameObjectList(List value) { return new SharedGameObjectList { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta deleted file mode 100644 index df4c90b61..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 70650d45c2fa6794a9fdd7d2a74bb59a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs deleted file mode 100644 index 207ffa665..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedHumanBodyBones : SharedVariable - { - public static implicit operator SharedHumanBodyBones(UnityEngine.HumanBodyBones value) { return new SharedHumanBodyBones { Value = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs.meta deleted file mode 100644 index 81a1c5927..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 150c45a094adbb54c90e721a86180763 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedHumanBodyBones.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedInt.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedInt.cs deleted file mode 100644 index 6b5229c7b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedInt.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedInt : SharedVariable - { - public static implicit operator SharedInt(int value) { return new SharedInt { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedInt.cs.meta deleted file mode 100644 index 82f64a3f7..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 00de328b40e8ac84ebf75e48fe353f38 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedLayerMask.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedLayerMask.cs deleted file mode 100644 index 3701e7ba5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedLayerMask.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedLayerMask : SharedVariable - { - public static implicit operator SharedLayerMask(UnityEngine.LayerMask value) { return new SharedLayerMask { Value = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedLayerMask.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedLayerMask.cs.meta deleted file mode 100644 index f7c79c91e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedLayerMask.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 86ff0dd68e1e479408158dfe30d4258f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedLayerMask.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedMaterial.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedMaterial.cs deleted file mode 100644 index 31813e469..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedMaterial.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedMaterial : SharedVariable - { - public static implicit operator SharedMaterial(Material value) { return new SharedMaterial { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta deleted file mode 100644 index 02edee8f0..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2e84514e0f685a64795ecdb776888407 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedMaterial.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedObject.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedObject.cs deleted file mode 100644 index 8d948cc49..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedObject.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedObject : SharedVariable - { - public static explicit operator SharedObject(Object value) { return new SharedObject { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedObject.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedObject.cs.meta deleted file mode 100644 index 30f57ca1c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedObject.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d5ffddfc2d65c6e4ca1dedda5afd6ccc -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedObject.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedObjectList.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedObjectList.cs deleted file mode 100644 index c20f8d0ea..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedObjectList.cs +++ /dev/null @@ -1,11 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedObjectList : SharedVariable> - { - public static implicit operator SharedObjectList(List value) { return new SharedObjectList { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta deleted file mode 100644 index c56728ac9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: c7644e981f746b5458fb6adbda412b2d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedObjectList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedQuaternion.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedQuaternion.cs deleted file mode 100644 index 217bd707e..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedQuaternion.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedQuaternion : SharedVariable - { - public static implicit operator SharedQuaternion(Quaternion value) { return new SharedQuaternion { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta deleted file mode 100644 index 41311659f..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 1ec5ca504fe011b449506c42d3e5ac7f -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedQuaternion.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedRect.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedRect.cs deleted file mode 100644 index 3e026fcf5..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedRect.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedRect : SharedVariable - { - public static implicit operator SharedRect(Rect value) { return new SharedRect { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedRect.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedRect.cs.meta deleted file mode 100644 index 7a4c1bac4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedRect.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 23ef607e9df5ab742afbea152c79eed5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedRect.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs deleted file mode 100644 index f564360aa..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs +++ /dev/null @@ -1,12 +0,0 @@ -#if UNITY_6000_0_OR_NEWER -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedRigidbodyType2D : SharedVariable - { - public static implicit operator SharedRigidbodyType2D(RigidbodyType2D value) { return new SharedRigidbodyType2D { mValue = value }; } - } -} -#endif \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs.meta deleted file mode 100644 index fdf744dc9..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: d4f4ba86f1177664c90e808bdc278fc1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedRigidbodyType2D.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedString.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedString.cs deleted file mode 100644 index ae9974672..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedString.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedString : SharedVariable - { - public static implicit operator SharedString(string value) { return new SharedString { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedString.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedString.cs.meta deleted file mode 100644 index f31728936..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedString.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2b562573ea4266848bc3f78352dca3a5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedString.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransform.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedTransform.cs deleted file mode 100644 index ac12b573a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransform.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedTransform : SharedVariable - { - public static implicit operator SharedTransform(Transform value) { return new SharedTransform { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta deleted file mode 100644 index 7cb09b655..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 3e084053b0dbe6541bc2408005c85606 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedTransform.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransformList.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedTransformList.cs deleted file mode 100644 index 9dc315879..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransformList.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedTransformList : SharedVariable> - { - public SharedTransformList() - { - mValue = new List(); - } - - public static implicit operator SharedTransformList(List value) { return new SharedTransformList { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta deleted file mode 100644 index a4ddfe7c4..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 11f38abc81b11804aabe69ae80011a60 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedTransformList.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedUInt.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedUInt.cs deleted file mode 100644 index cd8129769..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedUInt.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedUInt : SharedVariable - { - public static implicit operator SharedUInt(uint value) { return new SharedUInt { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedUInt.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedUInt.cs.meta deleted file mode 100644 index 5a3ba3575..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedUInt.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: f63201b0b2f3043409fc893c5556cd35 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedUInt.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2.cs deleted file mode 100644 index 46d0b3093..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedVector2 : SharedVariable - { - public static implicit operator SharedVector2(Vector2 value) { return new SharedVector2 { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta deleted file mode 100644 index 50ad14058..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2398d4531b638134384482dcac3e850c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedVector2.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2Int.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2Int.cs deleted file mode 100644 index 85b1bcd64..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2Int.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedVector2Int : SharedVariable - { - public static implicit operator SharedVector2Int(Vector2Int value) { return new SharedVector2Int { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2Int.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2Int.cs.meta deleted file mode 100644 index 7778f1124..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector2Int.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 2030317e0987d01489996e3719960b2d -timeCreated: 1516763749 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedVector2Int.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3.cs deleted file mode 100644 index e78560ae6..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedVector3 : SharedVariable - { - public static implicit operator SharedVector3(Vector3 value) { return new SharedVector3 { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta deleted file mode 100644 index c8ee92c3a..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: 2093670c041663d4096c217e7c790683 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedVector3.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3Int.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3Int.cs deleted file mode 100644 index b811c173b..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3Int.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedVector3Int : SharedVariable - { - public static implicit operator SharedVector3Int(Vector3Int value) { return new SharedVector3Int { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3Int.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3Int.cs.meta deleted file mode 100644 index b344f5f6c..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector3Int.cs.meta +++ /dev/null @@ -1,19 +0,0 @@ -fileFormatVersion: 2 -guid: 6b50923655e14e64986162aa7f34d318 -timeCreated: 1516763759 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedVector3Int.cs - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector4.cs b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector4.cs deleted file mode 100644 index 8d7d43950..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector4.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime -{ - [System.Serializable] - public class SharedVector4 : SharedVariable - { - public static implicit operator SharedVector4(Vector4 value) { return new SharedVector4 { mValue = value }; } - } -} \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta b/Assets/External/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta deleted file mode 100644 index e49af9686..000000000 --- a/Assets/External/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta +++ /dev/null @@ -1,15 +0,0 @@ -fileFormatVersion: 2 -guid: e12e4a2550a6e5f4aa39fdd59126ed66 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/Variables/SharedVector4.cs - uploadId: 732694 diff --git a/Assets/Gizmos.meta b/Assets/Gizmos.meta deleted file mode 100644 index 0fff1654f..000000000 --- a/Assets/Gizmos.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 69df387ba02d50f4692c8bafdb54fb0d -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Gizmos/Behavior Designer Hier Icon.png b/Assets/Gizmos/Behavior Designer Hier Icon.png deleted file mode 100644 index 3c1e732c5..000000000 --- a/Assets/Gizmos/Behavior Designer Hier Icon.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c057bcea816186c241089984fe1b1b146b72242eb45efbd6199def03f01db0b3 -size 584 diff --git a/Assets/Gizmos/Behavior Designer Hier Icon.png.meta b/Assets/Gizmos/Behavior Designer Hier Icon.png.meta deleted file mode 100644 index bf04cb044..000000000 --- a/Assets/Gizmos/Behavior Designer Hier Icon.png.meta +++ /dev/null @@ -1,42 +0,0 @@ -fileFormatVersion: 2 -guid: f011c2328e41d994b83d3c757e68904c -TextureImporter: - serializedVersion: 2 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - linearTexture: 1 - correctGamma: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: .25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 0 - seamlessCubemap: 0 - textureFormat: -3 - maxTextureSize: 1024 - textureSettings: - filterMode: -1 - aniso: 1 - mipBias: -1 - wrapMode: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - textureType: 2 - buildTargetSettings: [] - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Gizmos/Behavior Designer Hier Icon.png - uploadId: 732694 diff --git a/Assets/Gizmos/Behavior Designer Scene Icon.png b/Assets/Gizmos/Behavior Designer Scene Icon.png deleted file mode 100644 index 6926dbf6a..000000000 --- a/Assets/Gizmos/Behavior Designer Scene Icon.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3821296411145c99e28f086226a938b8b7a203a7e0c2a3ceae7d64ac04ce9ef5 -size 14081 diff --git a/Assets/Gizmos/Behavior Designer Scene Icon.png.meta b/Assets/Gizmos/Behavior Designer Scene Icon.png.meta deleted file mode 100644 index b970c0709..000000000 --- a/Assets/Gizmos/Behavior Designer Scene Icon.png.meta +++ /dev/null @@ -1,42 +0,0 @@ -fileFormatVersion: 2 -guid: 5b5f458971c6fd5459c51a7b8079bc3b -TextureImporter: - serializedVersion: 2 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - linearTexture: 1 - correctGamma: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: .25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 0 - seamlessCubemap: 0 - textureFormat: -3 - maxTextureSize: 1024 - textureSettings: - filterMode: -1 - aniso: 1 - mipBias: -1 - wrapMode: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - textureType: 2 - buildTargetSettings: [] - userData: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Gizmos/Behavior Designer Scene Icon.png - uploadId: 732694 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection.meta b/Assets/Opsive.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection.meta rename to Assets/Opsive.meta index 2ea332682..7655400c4 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Reflection.meta +++ b/Assets/Opsive.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1fb2ec5c5ded45443834596a451000f9 +guid: aded46b136094463786481233b062938 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Opsive/ImportStatus.asset b/Assets/Opsive/ImportStatus.asset new file mode 100644 index 000000000..f88428ca1 --- /dev/null +++ b/Assets/Opsive/ImportStatus.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46c9ab330620d16b0bffbed007128d7dbe5bd2993753eb219b2e22e81c79105c +size 465 diff --git a/Assets/Opsive/ImportStatus.asset.meta b/Assets/Opsive/ImportStatus.asset.meta new file mode 100644 index 000000000..2898ca824 --- /dev/null +++ b/Assets/Opsive/ImportStatus.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ee0635fca372247ae932a53c9c4d415e +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/BillingMode.json b/Assets/Resources/BillingMode.json deleted file mode 100644 index 6f4bfb710..000000000 --- a/Assets/Resources/BillingMode.json +++ /dev/null @@ -1 +0,0 @@ -{"androidStore":"GooglePlay"} \ No newline at end of file diff --git a/Assets/Resources/BillingMode.json.meta b/Assets/Resources/BillingMode.json.meta deleted file mode 100644 index 2ad428504..000000000 --- a/Assets/Resources/BillingMode.json.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: bfa79e278e5fe1c44b7456bf18c2db99 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: -AssetOrigin: - serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Resources/BillingMode.json - uploadId: 732694 diff --git a/Assets/_DDD/_Addressables/Prefabs/RestaurantNpc.prefab b/Assets/_DDD/_Addressables/Prefabs/RestaurantNpc.prefab index 685b5b6b4..a83cc9148 100644 --- a/Assets/_DDD/_Addressables/Prefabs/RestaurantNpc.prefab +++ b/Assets/_DDD/_Addressables/Prefabs/RestaurantNpc.prefab @@ -102,9 +102,6 @@ PrefabInstance: - targetCorrespondingSourceObject: {fileID: 5259510642736920361, guid: 3db3fc62639929c4ba6031ca4ae6600c, type: 3} insertIndex: 5 addedObject: {fileID: 325877664603524396} - - targetCorrespondingSourceObject: {fileID: 5259510642736920361, guid: 3db3fc62639929c4ba6031ca4ae6600c, type: 3} - insertIndex: 6 - addedObject: {fileID: 6826437533270866908} - targetCorrespondingSourceObject: {fileID: 5259510642736920361, guid: 3db3fc62639929c4ba6031ca4ae6600c, type: 3} insertIndex: -1 addedObject: {fileID: 8626078465432105892} @@ -205,46 +202,6 @@ MonoBehaviour: quality: 0 splitAtEveryPortal: 0 accountForGridPenalties: 0 ---- !u!114 &6826437533270866908 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7462519206451630147} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8d7b55c7ecdb49a4a89fa5e6f9022861, type: 3} - m_Name: - m_EditorClassIdentifier: - startWhenEnabled: 0 - asynchronousLoad: 0 - pauseWhenDisabled: 0 - restartWhenComplete: 0 - logTaskChanges: 0 - group: 0 - resetValuesOnRestart: 0 - externalBehavior: {fileID: 0} - mBehaviorSource: - behaviorName: Behavior - behaviorDescription: - mTaskData: - types: [] - parentIndex: - startIndex: - variableStartIndex: - JSONSerialization: - fieldSerializationData: - typeName: [] - fieldNameHash: - startIndex: - dataPosition: - unityObjects: [] - byteData: - byteDataArray: - Version: - gizmoViewMode: 2 - showBehaviorDesignerGizmo: 1 --- !u!114 &8626078465432105892 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/Customer/CustomerCharacter.cs b/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/Customer/CustomerCharacter.cs index f2ad75873..13b93cd2a 100644 --- a/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/Customer/CustomerCharacter.cs +++ b/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/Customer/CustomerCharacter.cs @@ -12,7 +12,7 @@ public void Initialize(CustomerData customerData) // TODO : 손님 생성 로직 추가 _spineController.SetSkin(_customerData.SpineSkinKey); - _behaviorTree.EnableBehavior(); + // _behaviorTree.EnableBehavior(); } } } \ No newline at end of file diff --git a/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcCharacter.cs b/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcCharacter.cs index c4efc15cf..e453f8bfb 100644 --- a/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcCharacter.cs +++ b/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/RestaurantNpcCharacter.cs @@ -1,18 +1,17 @@ -using BehaviorDesigner.Runtime; using UnityEngine; namespace DDD { - [RequireComponent(typeof(BehaviorTree))] + // [RequireComponent(typeof(BehaviorTree))] public class RestaurantNpcCharacter : RestaurantCharacter { - protected BehaviorTree _behaviorTree; + // protected BehaviorTree _behaviorTree; protected override void Awake() { base.Awake(); - _behaviorTree = GetComponent(); + // _behaviorTree = GetComponent(); } } } \ No newline at end of file diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection.meta b/Packages/com.opsive.behaviordesigner/Editor.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection.meta rename to Packages/com.opsive.behaviordesigner/Editor.meta index 83432cf7c..7082ed225 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions/Reflection.meta +++ b/Packages/com.opsive.behaviordesigner/Editor.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7bbf15f7023452341aebe68861a3aabc +guid: 26ac373dcc50b57419e903b8853f3593 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons.meta new file mode 100644 index 000000000..b0c1dbbac --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 142d426ab319c944c8627c59dc5d9f06 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png new file mode 100644 index 000000000..70b3c3a13 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a088409d3ef4dcf6ccc448d65ea9b558f4bcb0b05d6fc57c0bdad24dc2822483 +size 3412 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png.meta new file mode 100644 index 000000000..37a322c6e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png.meta @@ -0,0 +1,111 @@ +fileFormatVersion: 2 +guid: e0a8f1df788b6274a9a24003859dfa7e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/BehaviorDesignerIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png new file mode 100644 index 000000000..81c0dd95d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acdc93fe748193f61ffd140476c2c25e63a5348175750ba5af825d2dc781847a +size 1477 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png.meta new file mode 100644 index 000000000..23ea6e8a8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 1230b934cbd748345b13125468a34720 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkActiveStackedTask.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png new file mode 100644 index 000000000..f8c816dba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c65a8d43c53b031b47a745957e302e2264be27935fc3b20863388fe89f91e1d0 +size 1012 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png.meta new file mode 100644 index 000000000..f72d503b8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 98eddd8dea34cc1429daaebbc435b3b7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkCollapsedSlot.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png new file mode 100644 index 000000000..002528513 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92fc66162ef41e6aae77b89e423b750ca2de579c1f1066f3b4f307f424d9ba1d +size 1315 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png.meta new file mode 100644 index 000000000..f84684676 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 1c01950cc0f1c994cb5ff3576969ebbf +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortBothIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png new file mode 100644 index 000000000..eb799d92a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7da2f900fe31829b1604ef2a8f144cb3290ad5d148427449e7f48f69ea1bd8d7 +size 1252 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png.meta new file mode 100644 index 000000000..15c04fa92 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: ba6528926e3f4f7438d3b9737f595ec6 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortLowerPriorityIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png new file mode 100644 index 000000000..6a73028f5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57517054209d02aa5b4b522526b4f0bd673e8d17c0b60b94168689b8abd77273 +size 1256 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png.meta new file mode 100644 index 000000000..22f43b5f8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: ff3ba64f23e708645b24cc7509b5ebe5 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkConditionalAbortSelfIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png new file mode 100644 index 000000000..e2d10b467 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5ad0f0d5b6010aa430268deacc2b6de2b26e69d1e97ec58694ca379b699a442 +size 374 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png.meta new file mode 100644 index 000000000..e02357108 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 8d159db7a8da43e41a50a77e43cfd6ba +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailure.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png new file mode 100644 index 000000000..da4865cb1 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ade90270efb8cad878ae0ec54d7fe3ab3c2b2898c138d05c4491375d0a807b90 +size 1397 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png.meta new file mode 100644 index 000000000..faac74b3f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 26de8afeb313fd84291f98e68db44df7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionFailureReevaluate.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png new file mode 100644 index 000000000..9a75ff3ea --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64c0ac6ee81c68b50901d2d1a9d8c8c252839d52cc07ecd59eb848fb1d1274cd +size 332 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png.meta new file mode 100644 index 000000000..1cc37e0f2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 240eed9b6e6dc004f94216f1e9fcc390 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccess.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png new file mode 100644 index 000000000..9bee990e2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aac6e73245ce29054beea66f8ddc1b56f7cc12409e8c21f9dc601f064e028cf0 +size 1374 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png.meta new file mode 100644 index 000000000..27040fdcb --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 0a5037ce131729b4fa0ffa9e1e13d387 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/DarkExecutionSuccessReevaluate.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png new file mode 100644 index 000000000..2d183d416 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ebb15e72654618d45107c2753a5afe91c3f890014ed458fc9fdf6df50b45e72 +size 1516 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png.meta new file mode 100644 index 000000000..69ef4f0e7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: e57f179ee476f274dbe537179e67bf04 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightActiveStackedTask.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png new file mode 100644 index 000000000..684313f36 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33dd486ad90e3327d26af5f070fc009df6ce627cddfdb3c14a18fa14736e3a30 +size 1007 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png.meta new file mode 100644 index 000000000..f55c99839 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: c26e9105fdca0a54da087f5992aa9e61 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightCollapsedSlot.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png new file mode 100644 index 000000000..5058cfcd9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24c5a488de27fb778ea2038316f4dbe59a172d722bc51063357bb8ee8aefc432 +size 1250 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png.meta new file mode 100644 index 000000000..77b8e2c63 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 90b22fc04519bdb44b4d83665e86381d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortBothIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png new file mode 100644 index 000000000..284dc1428 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea1a5ed5388cb8f698553a55146c54f80d329a29befd121437a5bacbb034c93a +size 1224 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png.meta new file mode 100644 index 000000000..944c3f832 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 20be04a2e46cb9d40b601dccdfbe153b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortLowerPriorityIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png new file mode 100644 index 000000000..80462257c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb33058ee3c8c6e4f8430086fc8c266536c5bccdd2911e8e0420a7504ca5312e +size 1234 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png.meta new file mode 100644 index 000000000..6fe9c3650 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 5d44e66bacdbe51408dd30e519c2b318 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightConditionalAbortSelfIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png new file mode 100644 index 000000000..0da3dbdea --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:986773553db60080ae4cdb9158eff65885be08e7105a695f91f83d536ef5c0e2 +size 368 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png.meta new file mode 100644 index 000000000..7240a88d9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: c3622912d9f7bcd41a54a95add672423 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailure.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png new file mode 100644 index 000000000..c51a59cf1 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2d05f5f40bc72b711b9a769248979f39d6383867d3f77ae8fbb9b7f7e921190 +size 1413 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png.meta new file mode 100644 index 000000000..75aa4c312 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 5a6d713911c8ec3488639e2934329033 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionFailureReevaluate.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png new file mode 100644 index 000000000..1d1c4646c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f09e254581a1733f72d293089373b9fbf46fd200f3533da6d2c6893f0d9e0d63 +size 302 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png.meta new file mode 100644 index 000000000..ff3e693f3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: cf3f27e8ca1f20f4680890e078c7613a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccess.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png new file mode 100644 index 000000000..dc8156b60 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58cfd3d7acff20285a8fb78fbb054826031b38553b8dc371faa1eaaa2e6fdf57 +size 1392 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png.meta new file mode 100644 index 000000000..7b366b37f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: bba6bdc3af0aac44dadd1ca3a8485b05 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/LightExecutionSuccessReevaluate.png + uploadId: 775358 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks.meta rename to Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks.meta index 1cc0009c4..045c3f7dc 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks.meta +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2cd36de769e955742bf9b7cf79fb671f +guid: 9a6e740a6dc5e3b4fbb1f3d9c77a070e folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png new file mode 100644 index 000000000..416a439e9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b0337bab8837658ecd4e9f630846f06d0733ddd97710a0936652043c6666b22 +size 1403 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png.meta new file mode 100644 index 000000000..07d9e13e0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 3bbdfa553da4d554e9d74f8d88915aac +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkActionIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png new file mode 100644 index 000000000..9406899c9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd5a61a5b5a769ba0c1de49b39924b83a2c3105e0cba88b1b1f4305dc0efe6a0 +size 1064 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png.meta new file mode 100644 index 000000000..ebd911d98 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 3afb3814c40717440b175b6fde4e73c2 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCompositeIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png new file mode 100644 index 000000000..d858ed090 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:852d5f252e7306baba9bd3dead66ec7851619fc1aaf651efe88d69725e00f482 +size 2214 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png.meta new file mode 100644 index 000000000..1db83cdd2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 63d6a403c13816a49b58d1de830ca51e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalEvaluatorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png new file mode 100644 index 000000000..206aa9803 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:52dd3f8499099bec524f2003211402060b0f474c2c66c4e2c8ee1eaac578b223 +size 1075 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png.meta new file mode 100644 index 000000000..9e5e290a4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: dea5c23eac9d12c4cbd380cc879816ea +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkConditionalIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png new file mode 100644 index 000000000..81b330c81 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:476d5df913c632892c04199aa686a28b4bce62a8ecf056f45a51d13e5bc2fef3 +size 2077 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png.meta new file mode 100644 index 000000000..b156e62da --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b5459f67bc5033e49ad7a763cdb885bb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkCooldownIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png new file mode 100644 index 000000000..3e7456cf2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:940fd834f09ac30c22c8e4c8749214fb832232249e36cc2976c2ce5447326b5e +size 1229 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png.meta new file mode 100644 index 000000000..3a0bb2f23 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 9abc6c99a8db43b49b2b0d48cca90105 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkDecoratorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png new file mode 100644 index 000000000..7414283ba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c62e4dc68f0056418b7117f496332fa6f21de2417bced8ec8e10aadff1d306a5 +size 1504 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png.meta new file mode 100644 index 000000000..f51bdba1b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 9041375773f69454792084ab67820b7e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkEventIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png new file mode 100644 index 000000000..fde5bd0cf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29726f6f5fc419bc68c9eda30935e92f9e3bab7b7aa2ef4843f77844a81bbd50 +size 1173 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png.meta new file mode 100644 index 000000000..730688d7e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: e6fc90c130121da4f9067b5e15b02975 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkHasReceivedEventIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png new file mode 100644 index 000000000..0de4231bc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:097a24757f7cb42de5c168226fc69aac9b6575393b2e61d922151cb1f0e3e60f +size 1656 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png.meta new file mode 100644 index 000000000..5bdcb1464 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: fc4d1b83384913b4abfbd8455db6df5b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIdleIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png new file mode 100644 index 000000000..838a49335 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17c9dabfb80aa5e71c5dede73aebc9f7f59d9c2f27568bfe02e2a9105164a803 +size 1091 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png.meta new file mode 100644 index 000000000..7ab2709d7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 53fe4de81c20e924095bdb5f3447acdc +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkInverterIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png new file mode 100644 index 000000000..fb266a6ff --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e3e4a882365d0d53cbf140001ca3aef60fa89de14ebc3d12f49d3ae94ccf632 +size 2210 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png.meta new file mode 100644 index 000000000..c4aac12e0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 3c1366e1dc8fe0b46b4a6c8724194cdd +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkIteratorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png new file mode 100644 index 000000000..9e5be2835 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fd7f3d40d75aac58546c0348b22a1adc680ab8b13d091929a398a6986742b41 +size 1202 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png.meta new file mode 100644 index 000000000..d62fdd400 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: c97bee71424b3e247a161d1279643506 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkLogIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png new file mode 100644 index 000000000..11daa2216 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21d2abc19506c3ecda1699bb86ad64261aa0c660bce58abcec4ce047ba07c831 +size 1146 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png.meta new file mode 100644 index 000000000..67848a19e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 10ed9753a0870c84889dc42a7de397a8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnInterruptIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png new file mode 100644 index 000000000..8ae93982b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d89b9fa93f12e0097a9281c0e8aaa64896d6ddee668ff07cf3b6392108b2981 +size 2410 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png.meta new file mode 100644 index 000000000..1c86c3d8d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 06864c37115f11445b04701c616d0e14 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkOnPhysicsCallbackIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png new file mode 100644 index 000000000..97887683b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79efa7eab79b0284b6d69e611d45318bfb935a403c8e15ac666d790d1dfbaaa6 +size 1258 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png.meta new file mode 100644 index 000000000..6fcc1d3ae --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: f612c025389b22640b1b6df88f4502e7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png new file mode 100644 index 000000000..09ddc3a7c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c75fa16edf917b55d75fbffe67c2f1450fa64cbe87f7b518f15e7ef061d918cd +size 1433 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png.meta new file mode 100644 index 000000000..639127a21 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: d47aff1a00bcc6d4da8ca0df32ed8415 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkParallelSelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png new file mode 100644 index 000000000..e4dba3e0f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eafdb8e13c2a1b3065c8d4ba5af57e87c19bfcc547525ed2087af142c2f3b7b5 +size 1363 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png.meta new file mode 100644 index 000000000..e20d9bc76 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 7c0aba0d8377aac48966d8e3f817a2a8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPerformInterruptionIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png new file mode 100644 index 000000000..73ff48c73 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2dc349c3c025930bc1f05eae36712655f376e0aa5d0b765dbd16a38100896b8b +size 1287 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png.meta new file mode 100644 index 000000000..2df8736ad --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: cea0f2b6cee06a742bb35dcc40202e8e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkPrioritySelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png new file mode 100644 index 000000000..50fe68ea2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5123adb47af570b84732d2a7b1093e3d25627d53e6b12f63f849cba3260e5824 +size 1264 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png.meta new file mode 100644 index 000000000..dfe8d8901 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 69bf50f8923f54c4c8bb8e258883a411 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomProbabilityIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png new file mode 100644 index 000000000..ba5e96cf2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e49465a0c05bfe2e780a93825b01ed70871382520c6a58006d4e530b90def5f4 +size 1346 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png.meta new file mode 100644 index 000000000..a2d61c2ee --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: d7c1e0f5830316e449df8a35561df859 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png new file mode 100644 index 000000000..11e7a0402 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c5da45faf1f5776432c86980ca4b5a8db3e4aec12ab2d03102beaf685ffddd0 +size 1359 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png.meta new file mode 100644 index 000000000..e21ff463c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: edb30349221143a408c76da55a6aa809 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRandomSequenceIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png new file mode 100644 index 000000000..6773d3d83 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06d4e2e54731417eabf16f6fbdbd08f97058ed3593b037dcd98c44e67e393b72 +size 2170 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png.meta new file mode 100644 index 000000000..2c1f1bed4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: ceb6f3e7f67cde640b28b2a15ec13ffe +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkRepeaterIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png new file mode 100644 index 000000000..08575ee3f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0a59c22a8547bc4961deb59fc06a8e19d84fbdf93a59a19323f2b794ca2950f +size 1558 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png.meta new file mode 100644 index 000000000..9af6c386d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 667a475ceee05824188a36b24ec8d392 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnFailureIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png new file mode 100644 index 000000000..21f962708 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b927aee06c1d42237bb3d2c8972f0a5f22ef449a2914e63a71e8a6b5eb1e3720 +size 1468 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png.meta new file mode 100644 index 000000000..f0defcd50 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 66f47acff1d46f848bc8c22b221ee1d0 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkReturnSuccessIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png new file mode 100644 index 000000000..2b12f6bd6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9dce9f38772b0339e84111ebb20dc8ba4a225bccf44fb499c7cea7f17fc87224 +size 1598 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png.meta new file mode 100644 index 000000000..4076044b5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 4c3d0559a9ebc604e88b16e9a3fdfa05 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png new file mode 100644 index 000000000..fba2d04a2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6d0a347ce8fa6ad4185f1cb344a3c6a1b9eb945b1adda14178cf879514d3824 +size 1108 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png.meta new file mode 100644 index 000000000..5b4ef7ac7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: bde76446ddfbd234488e8d591bc75e2f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSendEventIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png new file mode 100644 index 000000000..d5a04c1be --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fef5faf08881ec89ed5f7cfae0aaf7717036b4fef78dbf55cee4583239cb5fc1 +size 1207 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png.meta new file mode 100644 index 000000000..89c1146b4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 8981cc246f900b24da46ae10eb49b68b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkSequenceIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png new file mode 100644 index 000000000..5094373ee --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d750c28e21b22256b2fc810e36bc0f4ca2d9948f25e267d4d0464f261ecdb2a +size 1231 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png.meta new file mode 100644 index 000000000..da7a5ae86 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: dacf20a036b1f5e41886d84ac4a47779 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedActionIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png new file mode 100644 index 000000000..7213a647c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3966e7f6c687ddfe6d226e3fbd27dad32a4006dbc5a0c3385733be43ba456dce +size 1289 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png.meta new file mode 100644 index 000000000..fd4958d34 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b2368834b8b80144a8b1ab97b609e966 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStackedConditionalIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png new file mode 100644 index 000000000..7a9519408 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:269dc83c0c18865e2de22eef87f1341bcda8f248e2d63c8d387611cb3999dc01 +size 3147 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png.meta new file mode 100644 index 000000000..dbe626c0b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 8c35407905159694e8b83df15d3b039b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkStartIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png new file mode 100644 index 000000000..f96bb3a37 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d509502bd2381ba0f756b5ebf6e87fca8a11ca50cde64c7ad1245c85ec5468fb +size 2406 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png.meta new file mode 100644 index 000000000..94de666e5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 60da350fd1f5b48428e466b79cb85cb2 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilFailureIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png new file mode 100644 index 000000000..bb51f2af6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20900c70dfc591036527817813c61407915aeddeb1a8ac9003214e1fdecae330 +size 2310 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png.meta new file mode 100644 index 000000000..dc340e7bf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: f2e750025a5812640919385b75319d6f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUntilSuccessIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png new file mode 100644 index 000000000..5d15e0983 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d975d298bb8bc79d1d4427397c86cddd433369c2e0a9043c1afa00c1fc1c40ba +size 594 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png.meta new file mode 100644 index 000000000..122dac4c1 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 9d36cd363c3e08246a6e9eaf5ad99d69 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkUtilitySelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png new file mode 100644 index 000000000..ef97f5f25 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc64ad4deea2f8bc2698fd51e0921b8587731269159fdda0a9e1d69d7363b8f2 +size 1852 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png.meta new file mode 100644 index 000000000..c5ce0758e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b4b59e888607422409f1efa599af34ae +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/DarkWaitIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png new file mode 100644 index 000000000..4eae9b2dc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f183b8b450de8420471915e5c7d19d58a0dd74a36b98cfcc17cf2bbd5777b84b +size 1404 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png.meta new file mode 100644 index 000000000..da48b0523 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 6437308e972f99f48953f20198fd4e94 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightActionIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png new file mode 100644 index 000000000..d5300e66d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcf2a192b2a7bdd4a6056472d030ac6fec8fc191b9db256e2e662b9cddde67f6 +size 1061 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png.meta new file mode 100644 index 000000000..209a689f6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 7fb12c74939f50b41b1679eb8f9e79ab +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCompositeIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png new file mode 100644 index 000000000..ea9e4cf7e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5b4a782bd6863c4bcc4c6f0dfae1669df6ac8d504e61f3f7bc5d58e45c27d97 +size 2020 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png.meta new file mode 100644 index 000000000..7fe6fbd91 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 3d3c18273075b3f40b6c921943f33964 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalEvaluator.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png new file mode 100644 index 000000000..ce5c9c26e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6d56547a7e8d868e5b3d0db59de8d3c93d1cbf7e5b1a632da5b5f7a3ab578aa +size 1052 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png.meta new file mode 100644 index 000000000..220f26250 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 2963cf3eb0c036449829254b2074c4c3 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightConditionalIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png new file mode 100644 index 000000000..b89adfb0f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1e259d8154bc0ad4ec58d9e127e18b4adfb4b265171082541f6bcc9c86e7673 +size 2188 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png.meta new file mode 100644 index 000000000..7cca938dd --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 480c79a18119d2a488b5d984211463f1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightCooldownIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png new file mode 100644 index 000000000..0f3977e8c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fba8f0e703eedba641f0d9827272ebe7dee70ceea4d67149dec7deb96546d7c +size 1199 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png.meta new file mode 100644 index 000000000..8621b30b3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 1ee7d6a0873e3d942b556d3093d8173f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightDecoratorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png new file mode 100644 index 000000000..f2617a216 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b85d0da6a2bd1c781bf8dd8acfa7ff3596873b926b012f398af5e3666f4d220b +size 1505 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png.meta new file mode 100644 index 000000000..173170e8e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b1382ad24c668174c9a6e0bd00f229e3 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightEventIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png new file mode 100644 index 000000000..0af36c3d5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0beb2fbc0cfb0de744d491da51a14618656f1bbf3bbbd6ce8ac6026b4ba58397 +size 1158 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png.meta new file mode 100644 index 000000000..55e6da0f8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 69959064b54a0cb4cb077dbb6967a3e1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightHasReceivedEventIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png new file mode 100644 index 000000000..ecc10bf36 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f80dd7fe78bb7d7ee27f0ba3bec3e4f5dcb0de8f1513bd5fa3c91a8d7e44741e +size 1631 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png.meta new file mode 100644 index 000000000..38b558827 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 79a6985a753bb244fb5b32dc0f26addb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIdleIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png new file mode 100644 index 000000000..34d84c53c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6459b9e0bd7e160cadf05551e7d71b37b3fde6de49db989a1e9a363d5d0c62ba +size 1430 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png.meta new file mode 100644 index 000000000..28e4bcd83 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 8d991ea2b725c214c85580d5647c578c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightInverterIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png new file mode 100644 index 000000000..f956ba927 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3f4dc57d778b987e6e33ae1c4751a70be4162f115c5f7b273a92fcbd75329d4 +size 1980 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png.meta new file mode 100644 index 000000000..3a8e01e1a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 5b924a7ff18f0544aaa585af94ac536c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightIteratorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png new file mode 100644 index 000000000..752b5b61e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:338e04f5df762e68da5f8c205684e75c447b3dbcea14dd20bd05a23329085ff3 +size 1189 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png.meta new file mode 100644 index 000000000..6e6b1695f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 138439e3588de5d449b7949d68d32ad8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightLogIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png new file mode 100644 index 000000000..6735941b5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1a425adc60da3affddc366bb3e914cc02f90a2e8ae8ddf0802c46bc69789b9b +size 1231 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png.meta new file mode 100644 index 000000000..dde1c7395 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 98f584ca47ddad64d9878314395ce160 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnInterruptIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png new file mode 100644 index 000000000..a19983e8d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebc3baf55aa2b890e1e9b416405447a29321580e6cc668e33fa63752ed403fc1 +size 2438 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png.meta new file mode 100644 index 000000000..e30ccc0bb --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 8b8a2793322238240b4f25171d772003 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightOnPhysicsCallbackIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png new file mode 100644 index 000000000..b0d4ec89d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4afba5e958fe610d0762c837f7bf7545d40a19ed7de3d7cc7196b1411272988 +size 1179 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png.meta new file mode 100644 index 000000000..5ac3de0d1 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 8a4a401bcfb527a48a08351efaf92e14 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png new file mode 100644 index 000000000..29a2b6037 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ce842c2d3bee44e796e4be2275105793180e147a84cf5b43600c499a2be0d6f +size 1376 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png.meta new file mode 100644 index 000000000..fcc7bf6be --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 108591b5d7a6bd94383d16a62cb3b4a7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightParallelSelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png new file mode 100644 index 000000000..bd440b292 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d9d59e0edb8b0cde5d7c4b90e16cbde42a5d906d40a60ba75e28b7b5794aa38 +size 1334 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png.meta new file mode 100644 index 000000000..1ab66d425 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 90105f40f82a30e45b08d150c1928950 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPerformInterruptionIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png new file mode 100644 index 000000000..278f4c4e2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:048834d6dfa739cfef9f1bd4d5ef57f2732bc1b21efb551607cc922b6e5dafc5 +size 1269 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png.meta new file mode 100644 index 000000000..c721c7dbe --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 744afc2640950e045961296f1d5800d7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightPrioritySelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png new file mode 100644 index 000000000..4344f8c56 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5b5748cdd0ab3763d17b9181ed5e7f52b90afc27a0acdd51868fe5b4cea35ad +size 1282 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png.meta new file mode 100644 index 000000000..8108c7d1a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 6c5770241610a4c4aae4ac3af0ac8bf8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomProbabilityIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png new file mode 100644 index 000000000..e03a3386a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d181b41d654d71f57afc2cc23efd0a0f027254561f19fe1099902b2303149953 +size 1346 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png.meta new file mode 100644 index 000000000..38a0ba2c0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 7638e4bc5a1f4cd488801902387ec5ea +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png new file mode 100644 index 000000000..a269c0b5e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed3dc5d0bdf668bac7bedc478f822840baa6fc7b19a24ddb8ab0310374130426 +size 1296 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png.meta new file mode 100644 index 000000000..598b3ebc8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: cfb9039832ed52748b617bde070898dc +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRandomSequenceIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png new file mode 100644 index 000000000..f37e59984 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5065940fd3e47c39eecc608504636e7c532b728f9184fc9889f248471d588b00 +size 2287 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png.meta new file mode 100644 index 000000000..28deff88b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: bb415ca6de87c3d49ab9a94fe8a6fca8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightRepeaterIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png new file mode 100644 index 000000000..32c966d60 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50133fa8d36c1683536e3e477dc261410cbf05bf8637efc346fafe770c5ecb42 +size 1662 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png.meta new file mode 100644 index 000000000..7b5c7d791 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 7d32c9b05505df24a94069606f3b823d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnFailureIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png new file mode 100644 index 000000000..f4881795a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:332d9b45dd0b938ea531699028f1d0e672794e5ff19af06d2febb71776bb82bb +size 1517 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png.meta new file mode 100644 index 000000000..452e4e396 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 3eb990b93a7fd6e479d6b032c7e6973f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightReturnSuccessIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png new file mode 100644 index 000000000..9969cc40d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d5e21a9c3bc4f85098de59da6f8130a461b5ee8aea3f68a039e6dbcc2c0cd5d +size 1695 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png.meta new file mode 100644 index 000000000..7eede6295 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: de3acf0e386a26246b8bc999b1ef8e32 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png new file mode 100644 index 000000000..6c9f46b93 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:403bc8828543ac66701c961fd5f369fc64f523bad93abf778453bf25b6d2cae5 +size 1111 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png.meta new file mode 100644 index 000000000..0b7ba4374 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 6d03b96c0f79bee4ab2e14fc82aa0031 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSendEventIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png new file mode 100644 index 000000000..0bbaff71e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4fa432359ed4d1f83c0cf8c3762bba9375c1a1032bfa5eaca1ca0ffd67b2e36 +size 1154 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png.meta new file mode 100644 index 000000000..887e9d6ef --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 4a7b39d8e0d056a4a9d8eb390b4bc9b8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightSequenceIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png new file mode 100644 index 000000000..a178a8f52 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6819de54c24e479f90bd595229eeb83addbdcaf6f0d2831ed3b61b49d189f53c +size 1165 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png.meta new file mode 100644 index 000000000..be4c9b3c0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 2df1cb3efc025214cbab4df573bb3515 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedActionIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png new file mode 100644 index 000000000..2cfbe0e10 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5150dc0931a5b850fd07ccb452d03a7bfbdf719ab33725029f3034a6a1e4d12 +size 1277 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png.meta new file mode 100644 index 000000000..f1ba84a3b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 86fbf527a2c761e45bc4a47cf4894902 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStackedConditionalIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png new file mode 100644 index 000000000..46e25a40b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d155fced4b6879a6b057e98eccb84ac99e4b6d48a8b524a1c54f0887aa0fa987 +size 1210 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png.meta new file mode 100644 index 000000000..e52c649e6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: df820d6e71423194188c7dcb1c1ae2e2 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightStartIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png new file mode 100644 index 000000000..d0b07372e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc32d6da1dab95d9d41a7ada5c52dd07615fdaee26d53b9b006ff8a43563b44c +size 2536 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png.meta new file mode 100644 index 000000000..3098c2bf9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 3d29cc3223984f44291c0e423a0aa6c6 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilFailureIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png new file mode 100644 index 000000000..b4b255818 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a7aea741a0308c54887ab0434bcaac1e5a39b035b9b8b80a9a7c5fe222fbd52 +size 2436 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png.meta new file mode 100644 index 000000000..89af350c9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 4e9ac4f2dd8bfe741a5f889efb1ade67 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUntilSuccessIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png new file mode 100644 index 000000000..359169563 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4601a20deca9a651c7c7296586d6fb0c1936049802117c1ce9a6dff25e6f0e2c +size 623 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png.meta new file mode 100644 index 000000000..36c44f7f0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: db3d0b77c7f9e0b4f9157aa03178836a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightUtilitySelectorIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png new file mode 100644 index 000000000..75233ee55 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61166eabc5b58011393c5c4fdde8f13f7e6f60dc0cd519592b21a2184886e0c1 +size 2338 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png.meta new file mode 100644 index 000000000..1bd78211a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: e1cb9cb566a90fb4489bf31465b99747 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Icons/Tasks/LightWaitIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers.meta new file mode 100644 index 000000000..12434e65c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fa7ae1b2addcf87409cb38b62daefec5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs new file mode 100644 index 000000000..d2f9cd8e5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs @@ -0,0 +1,18 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + using Opsive.Shared.Editor.Managers; + + /// + /// Draws a list of all of the available add-ons. + /// + [OrderedEditorItem("Add-Ons", 12)] + public class AddOnsManager : Opsive.Shared.Editor.Managers.AddOnsManager + { + protected override string AddOnsURL => "https://opsive.com/asset/BehaviorDesigner/AddOnsList.txt"; + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs.meta new file mode 100644 index 000000000..a1915798f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: cdcf33bfa5dc24248a6152f89300f0c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/AddOnsManager.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs new file mode 100644 index 000000000..eaaafa358 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs @@ -0,0 +1,19 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + /// + /// Static class defining information about the asset. + /// + public static class AssetInfo + { + public static string Version { get => "2.0.14"; } + + public static string Name { get => "Behavior Designer Pro"; } + + public static string PackageName => "com.opsive.behaviordesigner"; + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs.meta new file mode 100644 index 000000000..1d5b00877 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fa07a5b0e063044478181a6a40bf038e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/AssetInfo.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs new file mode 100644 index 000000000..39a372851 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs @@ -0,0 +1,68 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + using Opsive.Shared.Editor.Managers; + using UnityEditor; + using UnityEngine; + + /// + /// The MainManagerWindow is an editor window which contains all of the sub managers. This window draws the high level menu options and draws + /// the selected sub manager. + /// + [InitializeOnLoad] + public class BehaviorMainWindow : MainManagerWindow + { + protected override string AssetName => AssetInfo.Name; + protected override string AssetVersion => AssetInfo.Version; + protected override string UpdateCheckURL => string.Format("https://opsive.com/asset/UpdateCheck.php?asset=BehaviorDesigner&type={0}&version={1}&unityversion={2}&devplatform={3}&targetplatform={4}", + AssetInfo.Name.Replace(" ", ""), AssetInfo.Version, Application.unityVersion, Application.platform, EditorUserBuildSettings.activeBuildTarget); + protected override string LatestVersionKey => "Opsive.BehaviorDesigner.Editor.LatestVersion"; + protected override string LastUpdateCheckKey => "Opsive.BehaviorDesigner.Editor.LastUpdateCheck"; + protected override string ManagerNamespace => "Opsive.BehaviorDesigner.Editor"; + + /// + /// Initializes the Main Manager. + /// + [MenuItem("Tools/Opsive/Behavior Designer/Welcome", false, 30)] + public static MainManagerWindow ShowWindow() + { + var window = EditorWindow.GetWindow(false, "Behavior Window"); + window.minSize = new Vector2(680, 670); + return window; + } + + /// + /// Initializes the Main Manager and shows the Samples Manager. + /// + [MenuItem("Tools/Opsive/Behavior Designer/Samples", false, 31)] + public static void ShowSamplesManagerWindow() + { + var window = ShowWindow(); + window.Open(typeof(SamplesManager)); + } + + /// + /// Initializes the Main Manager and shows the Integrations Manager. + /// + [MenuItem("Tools/Opsive/Behavior Designer/Integrations", false, 32)] + public static void ShowIntegrationsManagerWindow() + { + var window = ShowWindow(); + window.Open(typeof(IntegrationsManager)); + } + + /// + /// Initializes the Main Manager and shows the Add-Ons Manager. + /// + [MenuItem("Tools/Opsive/Behavior Designer/Add-Ons", false, 33)] + public static void ShowAddOnsManagerWindow() + { + var window = ShowWindow(); + window.Open(typeof(AddOnsManager)); + } + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs.meta new file mode 100644 index 000000000..668bd38b3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs.meta @@ -0,0 +1,19 @@ +fileFormatVersion: 2 +guid: 7eb87493a412def42ab4459e90b63fad +timeCreated: 1500568651 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/BehaviorMainWindow.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Images.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images.meta new file mode 100644 index 000000000..39f8df3fe --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 95d69bf54d5801d408dfe7e5f6aa0436 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png new file mode 100644 index 000000000..863ce54aa --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00ae3fb34c6d5e21fc1730fda9cea9a3201669bfea4f3d888616df70941f58d7 +size 6697 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png.meta new file mode 100644 index 000000000..eb4d943a8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: d52eae9187aad5b41aff6dd60e49247a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Editor.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png new file mode 100644 index 000000000..34487e976 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee4769ac886891cae3fbc12fc6c4770b06a5176f129e219268a557097be99637 +size 5030 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png.meta new file mode 100644 index 000000000..f21d6e95b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 020153b61b65cf34f82ccc9b186cb700 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/Images/Repository.png + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs new file mode 100644 index 000000000..ae5c8be33 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs @@ -0,0 +1,18 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + using Opsive.Shared.Editor.Managers; + + /// + /// Draws a list of all of the available integrations. + /// + [OrderedEditorItem("Integrations", 11)] + public class IntegrationsManager : Opsive.Shared.Editor.Managers.IntegrationsManager + { + protected override string IntegrationsURL => "https://opsive.com/asset/BehaviorDesigner/IntegrationsList.txt"; + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs.meta new file mode 100644 index 000000000..a5998be9f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 722bac958cec61240b407653551d0dfc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/IntegrationsManager.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef b/Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef new file mode 100644 index 000000000..25e125a2e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef @@ -0,0 +1,29 @@ +{ + "name": "Opsive.BehaviorDesigner.Editor.Managers", + "rootNamespace": "Opsive.BehaviorDesigner.Editor.Managers", + "references": [ + "GUID:734d92eba21c94caba915361bd5ac177", + "GUID:e0cd26848372d4e5c891c569017e11f1", + "GUID:bbb15c76beca87041af309d0035105a2", + "GUID:27cb7fd045e5bb44f8c617ce69325b1d", + "GUID:97a55b351d7460f4f87d2ad07066bf4e", + "GUID:cf0567158f87e3c4c9be32bb870ec7b9" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [ + { + "name": "com.unity.entities", + "expression": "1.3.5", + "define": "UNITY_ENTITIES" + } + ], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef.meta new file mode 100644 index 000000000..8e452d856 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: d923cf8fc4ca8464bb84bcfbec68a2ff +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/Opsive.BehaviorDesigner.Editor.Managers.asmdef + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs new file mode 100644 index 000000000..03d8e2a7e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs @@ -0,0 +1,24 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + using Opsive.Shared.Editor.Managers; + + /// + /// Draws a list of all of the available samples. + /// + [OrderedEditorItem("Samples", 10)] + public class SamplesManager :Manager + { + public override void BuildVisualElements() + { + ManagerUtility.ShowControlBox("Import Samples", "Imports the sample scenes. These scenes use the universal render pipeline.", null, "Import Samples", () => + { + ManagerUtility.ImportSample(AssetInfo.PackageName); + }, m_ManagerContentContainer, true); + } + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs.meta new file mode 100644 index 000000000..f9579e61c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3790a505de4b60244afbd23f13ead000 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/SamplesManager.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs new file mode 100644 index 000000000..fa5197e55 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs @@ -0,0 +1,72 @@ +#if !OPSIVE_IMPORT_DEBUG +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + using Opsive.Shared.Editor.Import; + using System.IO; + using UnityEditor; + using UnityEngine; + + /// + /// Shows the welcome screen and check for minimum installed packages. + /// + [InitializeOnLoad] + public class Startup + { + private const string c_ImportStatusPath = "Assets/Opsive/ImportStatus.asset"; + + /// + /// Perform editor checks as soon as the scripts are done compiling. + /// + static Startup() + { + EditorApplication.update += EditorStartup; + } + + /// + /// Show the editor window if it hasn't been shown before. + /// + private static void EditorStartup() + { + if (EditorApplication.isCompiling) { + return; + } + + EditorApplication.update -= EditorStartup; + AssetDatabase.Refresh(); + ImportStatus importStatus = null; + var importStatusAssets = AssetDatabase.FindAssets("t:ImportStatus"); + if (importStatusAssets != null && importStatusAssets.Length > 0) { + for (int i = 0; i < importStatusAssets.Length; ++i) { + var path = AssetDatabase.GUIDToAssetPath(importStatusAssets[i]); + if (string.IsNullOrEmpty(path)) { + path = importStatusAssets[i]; + } + importStatus = AssetDatabase.LoadAssetAtPath(path, typeof(ImportStatus)) as ImportStatus; + if (importStatus != null) { + break; + } + } + } + if (importStatus == null) { + // The import status hasn't been created yet. Create it in the same location as the Opsive folder. + importStatus = ScriptableObject.CreateInstance(); + Directory.CreateDirectory(Path.GetDirectoryName(c_ImportStatusPath)); + AssetDatabase.CreateAsset(importStatus, c_ImportStatusPath); + AssetDatabase.Refresh(); + } + + if (!importStatus.BehaviorWindowShown) { + var window = BehaviorMainWindow.ShowWindow(); + window.Open(typeof(WelcomeScreenManager)); + importStatus.BehaviorWindowShown = true; + EditorUtility.SetDirty(importStatus); + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs.meta new file mode 100644 index 000000000..9fcbb35c2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 9075c8a032fa68945bf2d25260aa36ee +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/Startup.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs b/Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs new file mode 100644 index 000000000..59d712d8d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs @@ -0,0 +1,181 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Managers +{ + using Opsive.Shared.Editor.Managers; + using UnityEditor; + using UnityEngine.UIElements; + + /// + /// Shows a starting window with useful links. + /// + [OrderedEditorItem("Welcome", 0)] + public class WelcomeScreenManager : Opsive.Shared.Editor.Managers.WelcomeScreenManager + { + private const string c_GraphDesignerSymbol = "GRAPH_DESIGNER"; + private const string c_EditorTextureGUID = "d52eae9187aad5b41aff6dd60e49247a"; + private const string c_RepositoryTextureGUID = "020153b61b65cf34f82ccc9b186cb700"; + + private VisualElement m_EntityHelpBoxContainer; + + /// + /// The name of the asset. + /// + protected override string AssetName => AssetInfo.Name; + + /// + /// The version of the asset. + /// + protected override string AssetVersion => AssetInfo.Version; + + /// + /// Should the large documentation image be added? + /// + protected override bool AddLargeDocumentationImage => false; + + /// + /// Returns the URL for the documentation page. + /// + /// The URL for the documentation page. + protected override string GetDocumentationURL() + { + return "https://opsive.com/support/documentation/behavior-designer-pro/"; + } + + /// + /// Returns the URL for the videos page. + /// + /// The URL for the videos page. + protected override string GetVideosURL() + { + return "https://opsive.com/videos?pid=28276"; + } + + /// + /// Returns the URL for the asset page. + /// + /// The URL for the asset page. + protected override string GetAssetURL() + { + return "https://assetstore.unity.com/packages/slug/298743"; + } + + /// + /// Checks to ensure the required packages are installed. + /// + /// The parent VisualElement. + protected override void AddHeader(VisualElement parent) + { + EditorApplication.update += CheckForEntities; + +#if !UNITY_ENTITIES + m_EntityHelpBoxContainer = ManagerUtility.AddHelpBox(parent, "Behavior Designer requires the Entities package. Press the button below to install.", HelpBoxMessageType.Error, "Install", (HelpBox helpbox, Button actionButton) => + { + helpbox.text = "Installing the entities package. Unity will reimport after the package has been installed.\n\n" + + "Restart Unity if you receive compiler errors after Unity has reimported.\n\n" + + "Behavior Designer can be access from the Tools/Opsive/Behavior Designer/Editor menu."; + helpbox.messageType = HelpBoxMessageType.Info; + actionButton.SetEnabled(false); + m_WelcomeLabel.style.display = DisplayStyle.None; + + UnityEditor.PackageManager.Client.Add("com.unity.entities"); + }); + m_WelcomeLabel.style.display = DisplayStyle.None; +#else + base.AddHeader(parent); +#endif + } + + /// + /// Checks for the Entity package installation. + /// + private void CheckForEntities() + { +#if !GRAPH_DESIGNER && UNITY_ENTITIES + AddSymbol(c_GraphDesignerSymbol); + EditorApplication.update -= CheckForEntities; + + if (m_EntityHelpBoxContainer != null) { + m_EntityHelpBoxContainer.style.display = DisplayStyle.None; + m_WelcomeLabel.style.display = DisplayStyle.Flex; + } +#elif GRAPH_DESIGNER + if (m_EntityHelpBoxContainer != null) { + m_EntityHelpBoxContainer.style.display = DisplayStyle.None; + m_WelcomeLabel.style.display = DisplayStyle.Flex; + } +#endif + } + + /// + /// Adds the specified symbol to the compiler definitions. + /// + /// The symbol to add. + private static void AddSymbol(string symbol) + { + // Set on all available build targets. + var buildTargets = System.Enum.GetValues(typeof(BuildTarget)) as BuildTarget[]; + foreach (var buildTarget in buildTargets) { + if (buildTarget is BuildTarget.NoTarget) { + continue; + } + + var buildTargetGroup = BuildPipeline.GetBuildTargetGroup(buildTarget); + if (!BuildPipeline.IsBuildTargetSupported(buildTargetGroup, buildTarget)) { + continue; + } + +#if UNITY_2023_1_OR_NEWER + var namedBuildTarget = UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup); + var symbols = PlayerSettings.GetScriptingDefineSymbols(namedBuildTarget); +#else + var symbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(buildTargetGroup); +#endif + if (symbols.Contains(symbol)) { + continue; + } + symbols += (";" + symbol); +#if UNITY_2023_1_OR_NEWER + PlayerSettings.SetScriptingDefineSymbols(namedBuildTarget, symbols); +#else + PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, symbols); +#endif + } + } + + /// + /// Adds the resource images to the parent element. + /// + /// The parent that the images should be added to. + protected override void AddImages(VisualElement parent) + { + AddLargeImage(parent, c_EditorTextureGUID, () => { +#if GRAPH_DESIGNER + BehaviorDesignerWindow.ShowWindow(); +#else + UnityEngine.Debug.LogError("Error: Unable to open the Behavior Designer window. Ensure the Entities package has been installed."); +#endif + }); + + // Documentation and Videos. + AddImageRow(parent, c_SmallDocumentationTextureGUID, GetDocumentationURL(), + c_VideosTextureGUID, GetVideosURL()); + + // Repository and Downloads. + AddImageRow(parent, c_RepositoryTextureGUID, "https://opsive.com/assets/behavior-designer-pro-subscription", + c_DownloadsTextureGUID, IntegrationsManager.GetDownloadsLink()); + + // Forum and Discord. + AddImageRow(parent, c_ForumTextureGUID, "https://opsive.com/forum/", + c_DiscordTextureGUID, "https://discord.gg/QX6VFgc"); + // Review and Showcase. + AddImageRow(parent, c_ReviewTextureGUID, GetAssetURL(), + c_ShowcaseTextureGUID, "https://opsive.com/showcase/"); + // Professional Services. + AddImageRow(parent, c_ProfessionalServicesTextureGUID, "https://opsive.com", string.Empty, string.Empty); + } + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs.meta new file mode 100644 index 000000000..9573431aa --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5b1cb06d692d68543b5f50cb2c132e42 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Managers/WelcomeScreenManager.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews.meta new file mode 100644 index 000000000..fd7436fb4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ef9baff9776e9c84fb838d40b31cff61 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs new file mode 100644 index 000000000..443adae4d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs @@ -0,0 +1,112 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Controls.NodeViews +{ + using Opsive.Shared.Editor.UIElements.Controls; + using Opsive.BehaviorDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.GraphDesigner.Editor; + using Opsive.GraphDesigner.Editor.Controls.NodeViews; + using Opsive.GraphDesigner.Editor.Elements; + using Opsive.GraphDesigner.Editor.Events; + using Opsive.GraphDesigner.Runtime; + using Unity.Entities; + using UnityEngine.UIElements; + using UnityEngine; + using UnityEditor; + + /// + /// Adds UI elements within the event node. + /// + [ControlType(typeof(IEventNode))] + public class EventNodeViewControl : NodeViewBase + { + private const string c_DarkSuccessIconGUID = "240eed9b6e6dc004f94216f1e9fcc390"; + private const string c_LightSuccessIconGUID = "cf3f27e8ca1f20f4680890e078c7613a"; + private const string c_DarkFailureIconGUID = "8d159db7a8da43e41a50a77e43cfd6ba"; + private const string c_LightFailureIconGUID = "c3622912d9f7bcd41a54a95add672423"; + + private IEventNode m_Node; + private GraphWindow m_GraphWindow; + private BehaviorTree m_BehaviorTree; + private EventNode m_EventNode; + + private Image m_ExecutionStatusIcon; + private Texture m_SuccessIcon; + private Texture m_FailureIcon; + + /// + /// Addes the UIElements for the specified runtime node to the editor Node within the graph. + /// + /// A reference to the GraphWindow. + /// The parent UIElement that should contain the node UIElements. + /// The node that the control represents. + public override void AddNodeView(GraphWindow graphWindow, VisualElement parent, object node) + { + m_Node = node as IEventNode; + m_GraphWindow = graphWindow; + m_BehaviorTree = m_GraphWindow.Graph as BehaviorTree; + m_EventNode = parent.GetFirstAncestorOfType(); + + // AddNodeView can be called multiple times. Ensure there is only one execution status image. + var previousExecutionStatus = m_EventNode.Q("event-execution-status"); + if (previousExecutionStatus != null) { + previousExecutionStatus.parent.Remove(previousExecutionStatus); + } + m_ExecutionStatusIcon = new Image(); + m_ExecutionStatusIcon.name = "event-execution-status"; + parent.parent.Add(m_ExecutionStatusIcon); // The execution status icon should be placed behind every node element. + m_ExecutionStatusIcon.SendToBack(); + + m_SuccessIcon = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkSuccessIconGUID : c_LightSuccessIconGUID); + m_FailureIcon = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkFailureIconGUID : c_LightFailureIconGUID); + + m_ExecutionStatusIcon.RegisterCallback(c => + { + GraphEventHandler.RegisterEvent(GraphEventType.WindowUpdate, UpdateNode); + }); + m_ExecutionStatusIcon.RegisterCallback(c => + { + GraphEventHandler.UnregisterEvent(GraphEventType.WindowUpdate, UpdateNode); + }); + } + + /// + /// Updates the node with the current execution status icon. + /// + private void UpdateNode() + { + if (m_BehaviorTree == null || m_BehaviorTree.Entity == Entity.Null || m_Node.ConnectedIndex == ushort.MaxValue || !m_BehaviorTree.World.EntityManager.Exists(m_BehaviorTree.Entity)) { + return; + } + + var connectedNode = m_GraphWindow.Graph.LogicNodes[m_Node.ConnectedIndex]; + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + var taskComponent = taskComponents[connectedNode.RuntimeIndex]; + if (taskComponent.Status == TaskStatus.Success) { + m_ExecutionStatusIcon.image = m_SuccessIcon; + } else if (taskComponent.Status == TaskStatus.Failure) { + m_ExecutionStatusIcon.image = m_FailureIcon; + } else if (m_ExecutionStatusIcon.image != null) { + m_ExecutionStatusIcon.image = null; + } + + if (m_ExecutionStatusIcon.image != null) { + m_ExecutionStatusIcon.style.width = m_ExecutionStatusIcon.image.width; + } + + if (taskComponent.Status == TaskStatus.Running || taskComponent.Status == TaskStatus.Queued) { + m_EventNode.SetColorState(ColorState.Active, 0); + } else { + var nodeIndex = m_GraphWindow.GraphEditor.GetNodeIndex(m_Node); + m_EventNode.SetColorState(m_GraphWindow.Graph.IsNodeEnabled(false, nodeIndex) ? ColorState.Default : ColorState.Disabled, 0.5f); + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs.meta new file mode 100644 index 000000000..c3d85ebdf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 6c90fafbcac7a174c9d9b765d9065ef0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/EventNodeViewControl.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef new file mode 100644 index 000000000..dba7113b3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef @@ -0,0 +1,32 @@ +{ + "name": "Opsive.BehaviorDesigner.Editor.Controls.NodeViews", + "rootNamespace": "", + "references": [ + "GUID:734d92eba21c94caba915361bd5ac177", + "GUID:d8b63aba1907145bea998dd612889d6b", + "GUID:e0cd26848372d4e5c891c569017e11f1", + "GUID:bbb15c76beca87041af309d0035105a2", + "GUID:27cb7fd045e5bb44f8c617ce69325b1d", + "GUID:f9fbcd65fc33f6847b0f124cf7e891b6", + "GUID:97a55b351d7460f4f87d2ad07066bf4e", + "GUID:cf0567158f87e3c4c9be32bb870ec7b9", + "GUID:e9319bc8ab9315745bdf80aeffa01d6d" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [ + { + "name": "com.unity.entities", + "expression": "1.3.5", + "define": "UNITY_ENTITIES" + } + ], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef.meta new file mode 100644 index 000000000..0ffed1065 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: 98e4b74cf0784f4458e03260557a6cc4 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/Opsive.BehaviorDesigner.Editor.Controls.NodeViews.asmdef + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs new file mode 100644 index 000000000..95000b2dc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs @@ -0,0 +1,95 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Controls.NodeViews +{ + using Opsive.GraphDesigner.Editor; + using Opsive.GraphDesigner.Editor.Events; + using Opsive.GraphDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.BehaviorDesigner.Runtime.Tasks.Decorators; + using Opsive.Shared.Editor.UIElements.Controls; + using Unity.Entities; + using UnityEngine; + using UnityEngine.UIElements; + + /// + /// Implements TypeControlBase for the PriorityEvaluator type. + /// + [ControlType(typeof(PriorityEvaluator))] + public class PriorityEvaluatorNodeViewControl : TaskNodeViewControl + { + private BehaviorTree m_BehaviorTree; + private ILogicNode m_Node; + private ushort m_PriorityEvaluatorComponentIndex = ushort.MaxValue; + + private Label m_PriorityValueLabel; + + /// + /// Addes the UIElements for the specified runtime node to the editor Node within the graph. + /// + /// A reference to the GraphWindow. + /// The parent UIElement that should contain the node UIElements. + /// The node that the control represents. + public override void AddNodeView(GraphWindow graphWindow, VisualElement parent, object node) + { + base.AddNodeView(graphWindow, parent, node); + + if (!Application.isPlaying) { + return; + } + + m_BehaviorTree = graphWindow.Graph as BehaviorTree; + m_Node = node as ILogicNode; + + parent.RegisterCallback(c => + { + GraphEventHandler.RegisterEvent(GraphEventType.WindowUpdate, UpdateUtilityValue); + }); + parent.RegisterCallback(c => + { + GraphEventHandler.UnregisterEvent(GraphEventType.WindowUpdate, UpdateUtilityValue); + }); + + m_PriorityValueLabel = new Label(); + m_PriorityValueLabel.style.alignSelf = Align.Center; + parent.Add(m_PriorityValueLabel); + } + + /// + /// Updates the utility value. + /// + private void UpdateUtilityValue() + { + if (m_BehaviorTree == null || m_BehaviorTree.Entity == Entity.Null || m_Node.RuntimeIndex == ushort.MaxValue) { + return; + } + + var taskObjectComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + if (m_PriorityEvaluatorComponentIndex == ushort.MaxValue) { + // Find the corresponding index of the TaskObject. + for (int i = 0; i < taskObjectComponents.Length; ++i) { + if (taskObjectComponents[i].Index == m_Node.RuntimeIndex) { + m_PriorityEvaluatorComponentIndex = (ushort)i; + break; + } + } + + if (m_PriorityEvaluatorComponentIndex == ushort.MaxValue) { + return; + } + } + + var priorityEvaluator = m_BehaviorTree.GetTask(taskObjectComponents[m_PriorityEvaluatorComponentIndex].Index) as PriorityEvaluator; + if (priorityEvaluator == null) { + return; + } + m_PriorityValueLabel.text = "Value: " + priorityEvaluator.GetPriorityValue(); + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs.meta new file mode 100644 index 000000000..84266d36c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a9387930721f1dd42909d2053f5063ef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/PriorityEvaluatorNodeViewControl.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs new file mode 100644 index 000000000..b37ddc682 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs @@ -0,0 +1,132 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Controls.NodeViews +{ + using Opsive.GraphDesigner.Editor; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.Shared.Editor.UIElements.Controls; + using UnityEngine.UIElements; + using UnityEditor; + using UnityEngine; + + /// + /// Implements TypeControlBase for the StackedTask type. + /// + [ControlType(typeof(StackedTask))] + public class StackedTaskNodeViewControl : TaskNodeViewControl + { + private const float c_ActiveIconRotationSpeed = 30; + + /// + /// Displays information about the nested task within the Stacked Task. + /// + private class TaskView : VisualElement + { + private const string c_DarkActiveIconGUID = "1230b934cbd748345b13125468a34720"; + private const string c_LightActiveIconGUID = "e57f179ee476f274dbe537179e67bf04"; + + private int m_Index; + private Image m_ActiveImage; + + /// + /// TaskView constructor. + /// + /// The index of the task. + /// A reference to the task. + public TaskView(int index, Task task) + { + m_Index = index; + + var horizontalLayout = new VisualElement(); + horizontalLayout.AddToClassList("horizontal-layout"); + horizontalLayout.style.height = 18; + var label = new Label(task.ToString()); + label.style.flexGrow = 1; + horizontalLayout.Add(label); + m_ActiveImage = new Image(); + m_ActiveImage.image = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkActiveIconGUID : c_LightActiveIconGUID); + m_ActiveImage.style.width = 16; + m_ActiveImage.style.height = 16; + m_ActiveImage.style.display = DisplayStyle.None; + horizontalLayout.Add(m_ActiveImage); + + Add(horizontalLayout); + } + + /// + /// Updates the status of the task. + /// + /// The index that is active. + public void UpdateStatus(int activeIndex) + { + m_ActiveImage.style.display = (m_Index == activeIndex ? DisplayStyle.Flex : DisplayStyle.None); + if (m_Index == activeIndex) { + if (Application.isPlaying) { + var eulerAngles = m_ActiveImage.transform.rotation.eulerAngles; + m_ActiveImage.transform.rotation = Quaternion.Euler(eulerAngles.x, eulerAngles.y, eulerAngles.z + c_ActiveIconRotationSpeed); + } + } else { + m_ActiveImage.transform.rotation = Quaternion.identity; + } + } + } + + private StackedTask m_StackedTask; + private TaskView[] m_TaskViews; + + /// + /// Addes the UIElements for the specified runtime node to the editor Node within the graph. + /// + /// A reference to the GraphWindow. + /// The parent UIElement that should contain the node UIElements. + /// The node that the control represents. + public override void AddNodeView(GraphWindow graphWindow, VisualElement parent, object node) + { + base.AddNodeView(graphWindow, parent, node); + + m_StackedTask = node as StackedTask; + if (m_StackedTask.Tasks == null) { + return; + } + + var tasks = m_StackedTask.Tasks; + m_TaskViews = new TaskView[tasks.Length]; + for (int i = 0; i < tasks.Length; ++i) { + var task = m_StackedTask.Tasks[i]; + // The task no longer exists. Replace it. + if (task == null) { + tasks[i] = new UnknownTask(); + m_StackedTask.Tasks = tasks; + } + m_TaskViews[i] = new TaskView(i, m_StackedTask.Tasks[i]); + parent.Add(m_TaskViews[i]); + } + } + + /// + /// Internal method which updates the node with the current execution status. + /// + /// The status of the task. + protected override TaskStatus UpdateNodeInternal() + { + var activeIndex = -1; + TaskStatus status; + if ((status = base.UpdateNodeInternal()) == TaskStatus.Running && m_StackedTask.Tasks.Length > 1) { + activeIndex = m_StackedTask.ActiveIndex; + for (int i = 0; i < m_TaskViews.Length; ++i) { + m_TaskViews[i].UpdateStatus(activeIndex); + } + } else { + for (int i = 0; i < m_TaskViews.Length; ++i) { + m_TaskViews[i].UpdateStatus(activeIndex); + } + } + return status; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs.meta new file mode 100644 index 000000000..daa0a1b23 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 40ae380983a04824fb14ea4a89343e87 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/StackedTaskNodeViewControl.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs new file mode 100644 index 000000000..3b4d16eee --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs @@ -0,0 +1,286 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Controls.NodeViews +{ + using Opsive.Shared.Editor.UIElements.Controls; + using Opsive.BehaviorDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.GraphDesigner.Editor; + using Opsive.GraphDesigner.Editor.Controls.NodeViews; + using Opsive.GraphDesigner.Editor.Elements; + using Opsive.GraphDesigner.Editor.Events; + using Opsive.GraphDesigner.Runtime; + using Unity.Entities; + using UnityEngine.UIElements; + using UnityEngine; + using UnityEditor; + + /// + /// Adds UI elements within the task node. + /// + [ControlType(typeof(IAction))] + [ControlType(typeof(IConditional))] + [ControlType(typeof(IComposite))] + [ControlType(typeof(IDecorator))] + public class TaskNodeViewControl : NodeViewBase + { + private const string c_DarkConditionalAbortLowerPriorityIconGUID = "ba6528926e3f4f7438d3b9737f595ec6"; + private const string c_LightConditionalAbortLowerPriorityIconGUID = "20be04a2e46cb9d40b601dccdfbe153b"; + private const string c_DarkConditionalAbortSelfIconGUID = "ff3ba64f23e708645b24cc7509b5ebe5"; + private const string c_LightConditionalAbortSelfIconGUID = "5d44e66bacdbe51408dd30e519c2b318"; + private const string c_DarkConditionalAbortBothIconGUID = "1c01950cc0f1c994cb5ff3576969ebbf"; + private const string c_LightConditionalAbortBothIconGUID = "90b22fc04519bdb44b4d83665e86381d"; + + private const string c_DarkSuccessIconGUID = "240eed9b6e6dc004f94216f1e9fcc390"; + private const string c_LightSuccessIconGUID = "cf3f27e8ca1f20f4680890e078c7613a"; + private const string c_DarkSuccessReevaluateIconGUID = "0a5037ce131729b4fa0ffa9e1e13d387"; + private const string c_LightSuccessReevaluateIconGUID = "bba6bdc3af0aac44dadd1ca3a8485b05"; + private const string c_DarkFailureIconGUID = "8d159db7a8da43e41a50a77e43cfd6ba"; + private const string c_LightFailureIconGUID = "c3622912d9f7bcd41a54a95add672423"; + private const string c_DarkFailureReevaluateIconGUID = "26de8afeb313fd84291f98e68db44df7"; + private const string c_LightFailureReevaluateIconGUID = "5a6d713911c8ec3488639e2934329033"; + + private ILogicNode m_Node; + private GraphWindow m_GraphWindow; + private BehaviorTree m_BehaviorTree; + + private Image m_ExecutionStatusIcon; + private Image m_ConditionalAbortIcon; + private LogicNode m_LogicNode; + + private Texture m_SuccessIcon; + private Texture m_SuccessReevaluateIcon; + private Texture m_FailureIcon; + private Texture m_FailureReevaluateIcon; + + /// + /// Addes the UIElements for the specified runtime node to the editor Node within the graph. + /// + /// A reference to the GraphWindow. + /// The parent UIElement that should contain the node UIElements. + /// The node that the control represents. + public override void AddNodeView(GraphWindow graphWindow, VisualElement parent, object node) + { + m_Node = node as ILogicNode; + m_GraphWindow = graphWindow; + m_BehaviorTree = m_GraphWindow.Graph as BehaviorTree; + m_LogicNode = parent.GetFirstAncestorOfType(); + + if (node is IConditionalAbortParent conditionalAbortParent) { + m_ConditionalAbortIcon = new Image(); + m_ConditionalAbortIcon.name = "conditional-abort-icon"; + parent.parent.Add(m_ConditionalAbortIcon); + SetConditionalAbortIcon(conditionalAbortParent); + + m_ConditionalAbortIcon.RegisterCallback(c => + { + GraphEventHandler.RegisterEvent(GraphEventType.NodeValueUpdated, UpdateNodeValue); + }); + m_ConditionalAbortIcon.RegisterCallback(c => + { + GraphEventHandler.UnregisterEvent(GraphEventType.NodeValueUpdated, UpdateNodeValue); + }); + } + + // Subtree references can click into its references. + if (m_Node is ISubtreeReference) { + m_LogicNode.RegisterCallback(OnSubtreeRferenceMouseDown); + } + + // AddNodeView can be called multiple times. Ensure there is only one execution status image. + var previousExecutionStatus = m_LogicNode.Q("execution-status"); + if (previousExecutionStatus != null) { + previousExecutionStatus.parent.Remove(previousExecutionStatus); + } + m_ExecutionStatusIcon = new Image(); + m_ExecutionStatusIcon.name = "execution-status"; + parent.parent.Add(m_ExecutionStatusIcon); // The execution status icon should be placed behind every node element. + m_ExecutionStatusIcon.SendToBack(); + + m_SuccessIcon = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkSuccessIconGUID : c_LightSuccessIconGUID); + m_SuccessReevaluateIcon = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkSuccessReevaluateIconGUID : c_LightSuccessReevaluateIconGUID); + m_FailureIcon = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkFailureIconGUID : c_LightFailureIconGUID); + m_FailureReevaluateIcon = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkFailureReevaluateIconGUID : c_LightFailureReevaluateIconGUID); + + m_ExecutionStatusIcon.RegisterCallback(c => + { + GraphEventHandler.RegisterEvent(GraphEventType.WindowUpdate, UpdateNode); + m_GraphWindow.OnSelectionChange += OnSelectionChange; + }); + m_ExecutionStatusIcon.RegisterCallback(c => + { + GraphEventHandler.UnregisterEvent(GraphEventType.WindowUpdate, UpdateNode); + m_GraphWindow.OnSelectionChange -= OnSelectionChange; + }); + OnSelectionChange(Selection.activeObject); + } + + /// + /// Sets the conditional abort icon. + /// + /// The conditional abort node. + private void SetConditionalAbortIcon(IConditionalAbortParent conditionalAbortParent) + { + if (conditionalAbortParent.AbortType == ConditionalAbortType.LowerPriority) { + m_ConditionalAbortIcon.image = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkConditionalAbortLowerPriorityIconGUID : c_LightConditionalAbortLowerPriorityIconGUID); + } else if (conditionalAbortParent.AbortType == ConditionalAbortType.Self) { + m_ConditionalAbortIcon.image = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkConditionalAbortSelfIconGUID : c_LightConditionalAbortSelfIconGUID); + } else if (conditionalAbortParent.AbortType == ConditionalAbortType.Both) { + m_ConditionalAbortIcon.image = Shared.Editor.Utility.EditorUtility.LoadAsset(EditorGUIUtility.isProSkin ? c_DarkConditionalAbortBothIconGUID : c_LightConditionalAbortBothIconGUID); + } else { + m_ConditionalAbortIcon.image = null; + } + } + + /// + /// A value has been updated for the specified node. + /// + /// The node that has been updated. + private void UpdateNodeValue(object node) + { + if (node != m_Node) { + return; + } + + SetConditionalAbortIcon(node as IConditionalAbortParent); + } + + /// + /// Updates the node with the current execution status. + /// + private void UpdateNode() + { + UpdateNodeInternal(); + } + + /// + /// Internal method which updates the node with the current execution status. + /// + /// The status of the task. + protected virtual TaskStatus UpdateNodeInternal() + { + if (m_BehaviorTree == null || m_BehaviorTree.Entity == Entity.Null || m_Node.RuntimeIndex == ushort.MaxValue || !m_BehaviorTree.World.EntityManager.Exists(m_BehaviorTree.Entity)) { + // The task is no longer active. Reset the status while keeping the previous execution state. + m_LogicNode.SetColorState(m_GraphWindow.GraphEditor.IsNodeHierarchyEnabled(m_Node) ? ColorState.Default : ColorState.Disabled, 0.5f); + if (m_ExecutionStatusIcon.image != null) { + if (m_ExecutionStatusIcon.image == m_SuccessReevaluateIcon) { + m_ExecutionStatusIcon.image = m_SuccessIcon; + } else if (m_ExecutionStatusIcon.image == m_FailureReevaluateIcon) { + m_ExecutionStatusIcon.image = m_FailureIcon; + } + m_ExecutionStatusIcon.style.width = m_ExecutionStatusIcon.image.width; + } + return TaskStatus.Inactive; + } + + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + var taskComponent = taskComponents[m_Node.RuntimeIndex]; + if (taskComponent.Status == TaskStatus.Success) { + if (taskComponent.Reevaluate) { + m_ExecutionStatusIcon.image = m_SuccessReevaluateIcon; + } else { + m_ExecutionStatusIcon.image = m_SuccessIcon; + } + } else if (taskComponent.Status == TaskStatus.Failure) { + if (taskComponent.Reevaluate) { + m_ExecutionStatusIcon.image = m_FailureReevaluateIcon; + } else { + m_ExecutionStatusIcon.image = m_FailureIcon; + } + } else if (m_ExecutionStatusIcon.image != null) { + m_ExecutionStatusIcon.image = null; + } + + if (m_ExecutionStatusIcon.image != null) { + m_ExecutionStatusIcon.style.width = m_ExecutionStatusIcon.image.width; + } + + if (taskComponent.Status == TaskStatus.Running || taskComponent.Status == TaskStatus.Queued) { + m_LogicNode.SetColorState(ColorState.Active, 0); + } else { + m_LogicNode.SetColorState(m_GraphWindow.GraphEditor.IsNodeHierarchyEnabled(m_Node) ? ColorState.Default : ColorState.Disabled, 0.5f); + } + return taskComponent.Status; + } + + /// + /// Enables or disables the NodeView. + /// + /// True if the NodeView is enabled. + public override void SetEnabled(bool enable) + { + if (m_ConditionalAbortIcon != null) { + m_ConditionalAbortIcon.SetEnabled(enable); + } + } + + /// + /// The mouse has been pressed. + /// + /// The event that triggered the press. + private void OnSubtreeRferenceMouseDown(MouseDownEvent evt) + { + if (evt.clickCount != 2) { + return; + } + + var subtreeReference = m_Node as ISubtreeReference; + if (subtreeReference.Subtrees == null) { + return; + } + + for (int i = 0; i < subtreeReference.Subtrees.Length; ++i) { + var subtree = subtreeReference.Subtrees[i]; + if (subtree == null) { + continue; + } + + Selection.activeObject = subtree; + } + } + + /// + /// The GraphWindow selection has changed. + /// + /// The new selection. + private void OnSelectionChange(UnityEngine.Object selection) + { + if (!Application.isPlaying || m_BehaviorTree == null || m_BehaviorTree.Entity == Entity.Null || !m_BehaviorTree.enabled || !m_BehaviorTree.Baked) { + return; + } + + // The behavior tree was baked. Ensure the BehaviorTree component is pointing to the correct Entity. + var worlds = World.All; + var foundEntity = false; + for (int i = 0; i < worlds.Count; ++i) { + var defaultEntities = worlds[i].EntityManager.GetAllEntities(Unity.Collections.Allocator.Temp); + if (defaultEntities != null) { + var originalGuid = m_BehaviorTree.World.EntityManager.GetComponentData(m_BehaviorTree.Entity); + + foreach (var defaultEntity in defaultEntities) { + if (worlds[i].EntityManager.HasComponent(defaultEntity)) { + var entityGuid = worlds[i].EntityManager.GetComponentData(defaultEntity); + if (originalGuid.OriginatingId == entityGuid.OriginatingId) { + m_BehaviorTree.World = worlds[i]; + m_BehaviorTree.Entity = defaultEntity; + foundEntity = true; + break; + } + } + } + defaultEntities.Dispose(); + if (foundEntity) { + m_BehaviorTree.Baked = false; + break; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs.meta new file mode 100644 index 000000000..a4f281015 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 34ab799a714c2db4ab2d69566510bfc4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/TaskNodeViewControl.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs new file mode 100644 index 000000000..67fda6545 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs @@ -0,0 +1,95 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Controls.NodeViews +{ + using Opsive.GraphDesigner.Editor; + using Opsive.GraphDesigner.Editor.Events; + using Opsive.GraphDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.BehaviorDesigner.Runtime.Tasks.Decorators; + using Opsive.Shared.Editor.UIElements.Controls; + using Unity.Entities; + using UnityEngine; + using UnityEngine.UIElements; + + /// + /// Implements TypeControlBase for the UtilityEvaluator type. + /// + [ControlType(typeof(UtilityEvaluator))] + public class UtilityEvaluatorNodeViewControl : TaskNodeViewControl + { + private BehaviorTree m_BehaviorTree; + private ILogicNode m_Node; + private ushort m_UtilityEvaluatorComponentIndex = ushort.MaxValue; + + private Label m_UtilityValueLabel; + + /// + /// Addes the UIElements for the specified runtime node to the editor Node within the graph. + /// + /// A reference to the GraphWindow. + /// The parent UIElement that should contain the node UIElements. + /// The node that the control represents. + public override void AddNodeView(GraphWindow graphWindow, VisualElement parent, object node) + { + base.AddNodeView(graphWindow, parent, node); + + if (!Application.isPlaying) { + return; + } + + m_BehaviorTree = graphWindow.Graph as BehaviorTree; + m_Node = node as ILogicNode; + + parent.RegisterCallback(c => + { + GraphEventHandler.RegisterEvent(GraphEventType.WindowUpdate, UpdateUtilityValue); + }); + parent.RegisterCallback(c => + { + GraphEventHandler.UnregisterEvent(GraphEventType.WindowUpdate, UpdateUtilityValue); + }); + + m_UtilityValueLabel = new Label(); + m_UtilityValueLabel.style.alignSelf = Align.Center; + parent.Add(m_UtilityValueLabel); + } + + /// + /// Updates the utility value. + /// + private void UpdateUtilityValue() + { + if (m_BehaviorTree == null || m_BehaviorTree.Entity == Entity.Null || m_Node.RuntimeIndex == ushort.MaxValue) { + return; + } + + var taskObjectComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + if (m_UtilityEvaluatorComponentIndex == ushort.MaxValue) { + // Find the corresponding index of the TaskObject. + for (int i = 0; i < taskObjectComponents.Length; ++i) { + if (taskObjectComponents[i].Index == m_Node.RuntimeIndex) { + m_UtilityEvaluatorComponentIndex = (ushort)i; + break; + } + } + + if (m_UtilityEvaluatorComponentIndex == ushort.MaxValue) { + return; + } + } + + var utilityEvaluator = m_BehaviorTree.GetTask(taskObjectComponents[m_UtilityEvaluatorComponentIndex].Index) as UtilityEvaluator; + if (utilityEvaluator == null) { + return; + } + m_UtilityValueLabel.text = "Value: " + System.Math.Round(utilityEvaluator.GetUtilityValue(), 3); + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs.meta new file mode 100644 index 000000000..f1b449280 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a1a209242018ecc418ad24f5427f88f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/UtilityEvaluatorNodeViewControl.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs new file mode 100644 index 000000000..39e3c3166 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs @@ -0,0 +1,111 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Editor.Controls.NodeViews +{ + using Opsive.BehaviorDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Tasks.Actions; + using Opsive.GraphDesigner.Editor; + using Opsive.GraphDesigner.Editor.Events; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Editor.UIElements.Controls; + using Unity.Entities; + using UnityEngine; + using UnityEngine.UIElements; + + /// + /// Implements TypeControlBase for the Wait type. + /// + [ControlType(typeof(Wait))] + public class WaitNodeViewControl : TaskNodeViewControl + { + private BehaviorTree m_BehaviorTree; + private ILogicNode m_Node; + private ushort m_WaitComponentIndex = ushort.MaxValue; + private ProgressBar m_ProgressBar; + + /// + /// Addes the UIElements for the specified runtime node to the editor Node within the graph. + /// + /// A reference to the GraphWindow. + /// The parent UIElement that should contain the node UIElements. + /// The node that the control represents. + public override void AddNodeView(GraphWindow graphWindow, VisualElement parent, object node) + { + base.AddNodeView(graphWindow, parent, node); + + if (!Application.isPlaying) { + return; + } + + m_BehaviorTree = graphWindow.Graph as BehaviorTree; + m_Node = node as ILogicNode; + + parent.RegisterCallback(c => + { + GraphEventHandler.RegisterEvent(GraphEventType.WindowUpdate, UpdateWaitProgress); + }); + parent.RegisterCallback(c => + { + GraphEventHandler.UnregisterEvent(GraphEventType.WindowUpdate, UpdateWaitProgress); + }); + + m_ProgressBar = new ProgressBar(); + parent.Add(m_ProgressBar); + } + + /// + /// Updates the wait progress bar. + /// + private void UpdateWaitProgress() + { + if (m_BehaviorTree == null || m_BehaviorTree.Entity == Entity.Null || m_Node.RuntimeIndex == ushort.MaxValue) { + m_ProgressBar.style.display = DisplayStyle.None; + return; + } + + var waitComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + if (m_WaitComponentIndex == ushort.MaxValue) { + // Find the corresponding index of the WaitComponent. + for (int i = 0; i < waitComponents.Length; ++i) { + if (waitComponents[i].Index == m_Node.RuntimeIndex) { + m_WaitComponentIndex = (ushort)i; + break; + } + } + + if (m_WaitComponentIndex == ushort.MaxValue) { + return; + } + } + + var waitComponent = waitComponents[m_WaitComponentIndex]; + if (waitComponent.PauseTime != 0) { + return; + } + m_ProgressBar.highValue = (float)waitComponent.WaitDuration; + + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + var elapsed = -1f; + if (taskComponents[m_Node.RuntimeIndex].Status == Runtime.Tasks.TaskStatus.Running) { + elapsed = Mathf.Clamp(Time.time - (float)waitComponent.StartTime, 0, (float)waitComponent.WaitDuration); + m_ProgressBar.value = elapsed; + } else if (taskComponents[m_Node.RuntimeIndex].Status == Runtime.Tasks.TaskStatus.Success) { + elapsed = (float)waitComponent.WaitDuration; + m_ProgressBar.value = elapsed; + } else if (taskComponents[m_Node.RuntimeIndex].Status == Runtime.Tasks.TaskStatus.Inactive) { + m_ProgressBar.value = 0; + } + + m_ProgressBar.title = (elapsed >= 0 ? System.Math.Round(elapsed, 2).ToString() + "/" : string.Empty) + System.Math.Round(waitComponent.WaitDuration, 2).ToString() + "s"; + if (m_ProgressBar.style.display == DisplayStyle.None) { + m_ProgressBar.style.display = DisplayStyle.Flex; + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs.meta b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs.meta new file mode 100644 index 000000000..845f71033 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: c971440ad87a6904daefedbbbd9b5cd4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/NodeViews/WaitNodeViewControl.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll b/Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll new file mode 100644 index 000000000..15d872acc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7bbd2f8fba60f6cd7b21bbc3c75909246b93935db9573ab82a7cf2b40745630 +size 54272 diff --git a/Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll.meta b/Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll.meta new file mode 100644 index 000000000..06b2d1ffc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll.meta @@ -0,0 +1,77 @@ +fileFormatVersion: 2 +guid: c42964479d4f62540867ad0acdb1ef66 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: + - GRAPH_DESIGNER + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Editor: 0 + Exclude Linux64: 1 + Exclude OSXUniversal: 1 + Exclude Win: 1 + Exclude Win64: 1 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Editor/Opsive.BehaviorDesigner.Editor.dll + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime.meta b/Packages/com.opsive.behaviordesigner/Runtime.meta new file mode 100644 index 000000000..fc2b9de32 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5488ed20bc1de7f4187785e9bd70221d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs new file mode 100644 index 000000000..197b77300 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs @@ -0,0 +1,1927 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Opsive.BehaviorDesigner.Editor")] +namespace Opsive.BehaviorDesigner.Runtime +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Tasks.Events; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Unity.Entities; + using UnityEngine; + using System; + using System.Collections; + using System.Collections.Generic; + using System.Reflection; + + /// + /// Container for managing behavior tree logic. + /// + public class BehaviorTree : MonoBehaviour, IGraph, IGraphComponent, ISharedVariableContainer + { + [Tooltip("The name of the behavior tree.")] + [SerializeField] [Delayed] private string m_GraphName = "Behavior Tree"; + [Tooltip("A user specified ID for the graph.")] + [SerializeField] [Delayed] private int m_Index; + [Tooltip("The graph data.")] + [SerializeField] private BehaviorTreeData m_Data = new BehaviorTreeData(); + [Tooltip("Should the behavior tree start when the component enabled?")] + [SerializeField] private bool m_StartWhenEnabled = true; + [Tooltip("Should the behavior tree pause when the tree is disabled?")] + [SerializeField] private bool m_PauseWhenDisabled; + [Tooltip("Specifies when the behavior tree should be updated.")] + [SerializeField] private UpdateMode m_UpdateMode; + [Tooltip("Specifies how many tasks should be updated during a single tick.")] + [SerializeField] private EvaluationType m_EvaluationType; + [Tooltip("The maximum number of tasks that can run if the evaluation type is set to EvaluationType.Count.")] + [SerializeField] [Range(1, ushort.MaxValue)] private int m_MaxEvaluationCount = 1; + [Tooltip("A reference to the subtree.")] + [SerializeField] private Subtree m_Subtree; + + private GameObject m_GameObject; + private World m_World; + private Entity m_Entity; + private Dictionary m_NodeIndexByRuntimeIndex = new Dictionary(); + private static Dictionary s_BehaviorTreeByEntity = new Dictionary(); + private static EventNodeComparer s_EventNodeComparer = new EventNodeComparer(); + private bool m_SubtreeOverride; + + public string Name { get => m_GraphName; set => m_GraphName = value; } + public int Index { get => m_Index; set => m_Index = value; } + public int UniqueID { get => m_Data.UniqueID; } + public UnityEngine.Object Parent { get { + if (this == null) { return null; } + return Application.isPlaying && m_GameObject != null ? m_GameObject : gameObject; + } } + private BehaviorTreeData Data { get => !Application.isPlaying && m_Subtree != null ? m_Subtree.Data : m_Data; } + public bool StartWhenEnabled { get => m_StartWhenEnabled; set => m_StartWhenEnabled = value; } + public bool PauseWhenDisabled { get => m_PauseWhenDisabled; set => m_PauseWhenDisabled = value; } + public UpdateMode UpdateMode { get => m_UpdateMode; set => m_UpdateMode = value; } + public EvaluationType EvaluationType { get => m_EvaluationType; set => m_EvaluationType = value; } + public int MaxEvaluationCount { get => m_MaxEvaluationCount; set => m_MaxEvaluationCount = Mathf.Max(1, Mathf.Min(ushort.MaxValue, value)); } + public IGraph Subgraph + { + get => m_Subtree; + set + { + if (m_Subtree == (Subtree)value) { + return; + } + + ClearTree(); + m_Subtree = value as Subtree; + m_SubtreeOverride = false; + InheritSubtree(false); + InitializeTree(); + if (enabled) { + StartBehavior(); + } + } + } + + public ILogicNode[] LogicNodes { get => Data.LogicNodes; set => Data.LogicNodes = value; } + public IEventNode[] EventNodes { get => Data.EventNodes; set => Data.EventNodes = value; } + public SharedVariable[] SharedVariables { get => m_Data.SharedVariables; set => m_Data.SharedVariables = value; } + public ushort[] DisabledLogicNodes { get => Data.DisabledLogicNodes; set => Data.DisabledLogicNodes = value; } + public ushort[] DisabledEventNodes { get => Data.DisabledEventNodes; set => Data.DisabledEventNodes = value; } + + public SharedVariable.SharingScope VariableScope { get => SharedVariable.SharingScope.Graph; } + public World World { get => m_World; set { m_World = value; } } + public Entity Entity { get => m_Entity; set { m_Entity = value; } } + public bool Baked { get; set; } + public static int BehaviorTreeCount { get => s_BehaviorTreeByEntity.Count; } + + public LogicNodeProperties[] LogicNodeProperties { +#if UNITY_EDITOR + get => Data.LogicNodeProperties; + set => Data.LogicNodeProperties = value; +#else + get => null; + set { } +#endif + } + public NodeProperties[] EventNodeProperties { +#if UNITY_EDITOR + get => Data.EventNodeProperties; + set => Data.EventNodeProperties = value; +#else + get => null; + set { } +#endif + } + public GroupProperties[] GroupProperties { +#if UNITY_EDITOR + get => Data.GroupProperties; + set => Data.GroupProperties = value; +#else + get => null; + set { } +#endif + } + public TaskStatus Status { get + { + if (!Application.isPlaying || m_World == null || m_Entity == null || m_Data == null || m_Data.LogicNodes == null || Data.EventNodes == null) { return TaskStatus.Inactive; } + + // Find the Start event node. + Start startEventNode = null; + for (int i = 0; i < m_Data.EventNodes.Length; ++i) { + if (m_Data.EventNodes[i].GetType() == typeof(Start)) { + startEventNode = m_Data.EventNodes[i] as Start; + } + } + if (startEventNode == null || startEventNode.ConnectedIndex >= m_Data.LogicNodes.Length) { return TaskStatus.Inactive; } + + // The runtime index will match with the correct Entity TaskComponent. + var runtimeIndex = m_Data.LogicNodes[startEventNode.ConnectedIndex].RuntimeIndex; + var taskComponents = m_World.EntityManager.GetBuffer(m_Entity); + if (runtimeIndex >= taskComponents.Length) { return TaskStatus.Inactive; } + + // Retun the status of the task that the Start node is connected to. This is the current tree status. + return taskComponents[runtimeIndex].Status; + } } + + // Flow callbacks. + public Action OnBehaviorTreeStarted; + public Action OnBehaviorTreeStopped; + public Action OnBehaviorTreeDestroyed; + + // Physics callbacks. + public Action OnBehaviorTreeCollisionEnter; + public Action OnBehaviorTreeCollisionExit; + public Action OnBehaviorTreeCollisionEnter2D; + public Action OnBehaviorTreeCollisionExit2D; + public Action OnBehaviorTreeTriggerEnter; + public Action OnBehaviorTreeTriggerExit; + public Action OnBehaviorTreeTriggerEnter2D; + public Action OnBehaviorTreeTriggerExit2D; + public Action OnBehaviorTreeControllerColliderHit; + + // Event callbacks. + public Action OnWillSave; + public Action OnDidSave; + public Action OnWillLoad; + public Action OnDidLoad; + + // Coroutine support. + private Dictionary> m_ActiveTaskCoroutines; + + /// + /// Serializes the behavior tree. + /// + public void Serialize() + { + Data.Serialize(); + if (m_Subtree != null) { + m_Data.SerializeSharedVariables(); + } + } + + /// + /// Deserialize the behavior tree. + /// + /// Should the behavior tree be force deserialized? + /// True if the tree was deserialized. + public bool Deserialize(bool force = false) + { + if (this == null) { + return false; + } + + // Force the deserialization if the tree hasn't been deserialized yet at runtime. + if (Application.isPlaying && m_GameObject == null) { + force = true; + m_GameObject = gameObject; + } + + var deserialized = false; + if (m_Subtree != null) { + deserialized = InheritSubtree(force); + } else if (m_Data != null) { + deserialized = m_Data.Deserialize(this, this, force, true, Application.isPlaying); + } + + // Initialize tasks after deserialization. This is only needed at edit time as the tasks are initialized elsewhere at runtime. + if (!Application.isPlaying && deserialized && m_Data != null && m_Data.LogicNodes != null) { + for (int i = 0; i < m_Data.LogicNodes.Length; ++i) { + if (m_Data.LogicNodes[i] is Task task) { + task.Initialize(this, (ushort)i); + } + } + } + + return deserialized; + } + + /// + /// Inherits the subtree tasks and variables. + /// + /// Should the behavior tree be force deserialized? + /// True if the subtree was inherited. + private bool InheritSubtree(bool force) + { + if (m_Subtree == null) { + if (Application.isPlaying) { + m_Data.EventNodes = null; + m_Data.LogicNodes = null; + m_Data.SubtreeNodesReferences = null; +#if UNITY_EDITOR + m_Data.EventNodeProperties = null; + m_Data.LogicNodeProperties = null; + m_Data.GroupProperties = null; +#endif + } + return false; + } + + // The local behavior tree variables should be used. + m_Data.DeserializeSharedVariables(force); + + if (!m_Subtree.Deserialize(force, Application.isPlaying, false)) { + return false; + } + + // Copy the deserialized objects at runtime to ensure each object is unique. + if (Application.isPlaying && !m_SubtreeOverride) { + m_Data.EventNodes = m_Subtree.Data.EventNodes; + m_Data.LogicNodes = m_Subtree.Data.LogicNodes; + m_Data.SubtreeNodesReferences = m_Subtree.Data.SubtreeNodesReferences; + var originalSharedVariables = m_Data.SharedVariables; + m_Data.SharedVariables = m_Subtree.Data.SharedVariables; + m_Data.VariableByNameMap = m_Subtree.Data.VariableByNameMap; + // The original tree variable value should override the subtree variable value. + if (originalSharedVariables != null) { + for (int i = 0; i < originalSharedVariables.Length; ++i) { + m_Data.OverrideVariableValue(this, originalSharedVariables[i]); + } + } +#if UNITY_EDITOR + m_Data.EventNodeProperties = m_Subtree.Data.EventNodeProperties; + m_Data.LogicNodeProperties = m_Subtree.Data.LogicNodeProperties; + m_Data.GroupProperties = m_Subtree.Data.GroupProperties; +#endif + m_GameObject = gameObject; + m_SubtreeOverride = true; + } + return true; + } + + /// + /// Adds the specified node. + /// + /// The node that should be added. + public void AddNode(ILogicNode node) + { + Data.AddNode(node); + } + + /// + /// Removes the specified node. + /// + /// The node that should be removed. + /// True if the node was removed. + public bool RemoveNode(ILogicNode node) + { + return Data.RemoveNode(node); + } + + /// + /// Adds the specified event node. + /// + /// The event node that should be added. + public void AddNode(IEventNode eventNode) + { + Data.AddNode(eventNode); + } + + /// + /// Removes the specified event node. + /// + /// The event node that should be removed. + /// True if the event node was removed. + public bool RemoveNode(IEventNode eventNode) + { + return Data.RemoveNode(eventNode); + } + + /// + /// Returns the Node of the specified type. + /// + /// The type of Node that should be retrieved. + /// The Node of the specified type (can be null). + public ILogicNode GetNode(Type type) + { + return Data.GetNode(type); + } + + /// + /// Returns the EventNode of the specified type. + /// + /// The type of EventNode that should be retrieved. + /// The EventNode of the specified type (can be null). If the node is found the index will also be returned. + public (IEventNode, ushort) GetEventNode(Type type) + { + return Data.GetEventNode(type); + } + + /// + /// The component has been enabled. + /// + private void OnEnable() + { + if (m_World != null && m_StartWhenEnabled) { + StartBehavior(); + } + } + + /// + /// The component has started. + /// + private void Start() + { + if (m_StartWhenEnabled) { + StartBehavior(); + } + } + + /// + /// Returns the behavior tree component specified by the entity. + /// + /// The entity that should be retrieved. + /// The behavior tree component specified by the ID. + public static BehaviorTree GetBehaviorTree(Entity entity) + { + if (s_BehaviorTreeByEntity.TryGetValue(entity, out var behaviorTree)) { + return behaviorTree; + } + return null; + } + + /// + /// Starts the behavior tree. + /// + /// True if the behavior tree was started. + public bool StartBehavior() + { + var world = m_World == null ? World.DefaultGameObjectInjectionWorld : m_World; + var entity = m_Entity == Entity.Null ? world.EntityManager.CreateEntity() : m_Entity; + return StartBehavior(world, entity); + } + + /// + /// Starts the behavior tree. + /// + /// The world that should contain the behavior tree. + /// The entity that should contain the behavior tree. + /// True if the behavior tree was started. + public bool StartBehavior(World world, Entity entity) + { + return StartBehavior(world, entity, typeof(Start)); + } + + /// + /// Starts the behavior tree. + /// + /// The world that contains tthe entity. + /// The entity that should contain the behavior tree. + /// The type of branch that should be started. + /// True if the behavior tree was started. + public bool StartBehavior(World world, Entity entity, Type startBranchType) + { + if (world == null) { + return false; + } + + if (s_BehaviorTreeByEntity.ContainsKey(entity)) { + // The behavior tree may be paused. + if (world.EntityManager.HasComponent(entity) && !world.EntityManager.IsComponentEnabled(entity)) { + world.EntityManager.SetComponentEnabled(entity, true); + if (OnBehaviorTreeStarted != null) { + OnBehaviorTreeStarted(); + } + // Tasks can implement a pause specific interface. + var tasks = Data.LogicNodes; + for (int i = 0; i < tasks.Length; ++i) { + if (!(tasks[i] is IPausableTask pausableTask)) { + continue; + } + pausableTask.Resume(world, entity); + } + return true; + } + // The tree cannot be started multiple times. + return false; + } + s_BehaviorTreeByEntity.Add(entity, this); + + if (!InitializeTree(world, entity)) { + return false; + } + + if (OnBehaviorTreeStarted != null) { + OnBehaviorTreeStarted(); + } + return StartBranch(startBranchType); + } + + /// + /// Initializes the tree within DOTS for all of the event tasks. + /// + /// True if the behavior tree was initialized. + internal bool InitializeTree() + { + var world = m_World == null ? World.DefaultGameObjectInjectionWorld : m_World; + var entity = m_Entity == Entity.Null ? world.EntityManager.CreateEntity() : m_Entity; + return InitializeTree(world, entity); + } + + /// + /// Initializes the tree within DOTS for all of the event tasks. + /// + /// The world that contains tthe entity. + /// The entity that should contain the behavior tree. + /// True if the behavior tree was initialized. + internal bool InitializeTree(World world, Entity entity) + { + if (!Deserialize(false)) { + enabled = false; + return false; + } + + if (m_Data.EventNodes == null || world == null) { + return false; + } + + // The tree may be reinitialized with the same world/entity. + m_World = world; + m_Entity = entity; + + // The tree may have already been initialized. + if (world.EntityManager.HasComponent(entity)) { + return true; + } + + // Initialize the branch according to the connected index. This will ensure when the task is referencing other + // tasks the index will be correct. + var eventNodes = m_Data.EventNodes; + HashSet disabledNodes = null; + if (m_Data.DisabledEventNodes != null && m_Data.DisabledEventNodes.Length > 0) { + disabledNodes = new HashSet(); + for (int i = 0; i < m_Data.DisabledEventNodes.Length; ++i) { + disabledNodes.Add(eventNodes[m_Data.DisabledEventNodes[i]]); + } + } +#if UNITY_EDITOR + var eventNodeProperties = Data.EventNodeProperties; + Array.Sort(eventNodes, eventNodeProperties, s_EventNodeComparer); + Data.EventNodeProperties = eventNodeProperties; +#endif + Array.Sort(eventNodes, s_EventNodeComparer); + // The disabled event nodes array only stores the index. Update the index with the sorted value. + if (disabledNodes != null) { + var index = 0; + var disabledEventNodes = m_Data.DisabledEventNodes; + for (int i = 0; i < eventNodes.Length; ++i) { + if (disabledNodes.Contains(eventNodes[i])) { + disabledEventNodes[index] = (ushort)i; + index++; + } + } + m_Data.DisabledEventNodes = disabledEventNodes; + } + + for (int j = 0; j < eventNodes.Length; ++j) { + InitializeBranch(world, entity, eventNodes[j]); + } + return true; + } + + /// + /// Comparer for IEventNode. + /// + private class EventNodeComparer : IComparer + { + /// + /// Compares the ConnectedIndex of two event nodes. + /// + /// The first event node + /// The second event node. + /// The CompareTo value between the two event nodes. + public int Compare(IEventNode eventNode1, IEventNode eventNode2) + { + return eventNode1.ConnectedIndex.CompareTo(eventNode2.ConnectedIndex); + } + } + + /// + /// Initialize the specified event branch within DOTS. + /// + /// The world that the entity exists in. + /// The entity that the branch should be added to. + /// The task that should be setup. + private void InitializeBranch(World world, Entity entity, IEventNode eventTask) + { + if (Data.LogicNodes == null) { + return; + } + + // There must be a starting event node. + if (eventTask == null || eventTask.ConnectedIndex >= Data.LogicNodes.Length) { + return; + } + + if (!world.EntityManager.HasBuffer(entity)) { + world.EntityManager.AddBuffer(entity); + } + + DynamicBuffer branchComponents; + if (world.EntityManager.HasBuffer(entity)) { + branchComponents = world.EntityManager.GetBuffer(entity); + } else { + branchComponents = world.EntityManager.AddBuffer(entity); + } + var startBranchIndex = (ushort)branchComponents.Length; + branchComponents.Add(new BranchComponent() { ActiveIndex = ushort.MaxValue, NextIndex = ushort.MaxValue }); + + world.EntityManager.AddComponent(entity); + world.EntityManager.AddComponent(entity); + world.EntityManager.AddComponentData(entity, new EvaluationComponent() { EvaluationType = m_EvaluationType, MaxEvaluationCount = (ushort)Mathf.Max(1, m_MaxEvaluationCount) }); + // A manual update mode will require the user to call the Tick method. + if (m_UpdateMode == UpdateMode.Manual) { + world.EntityManager.SetComponentEnabled(entity, false); + world.EntityManager.SetComponentEnabled(entity, false); + } + + // Get the required parent system groups. The systems are always added to the default world. + var traversalTaskSystemGroup = world.GetOrCreateSystemManaged(); + var reevaluateTaskSystemGroup = world.GetOrCreateSystemManaged(); + var interruptTaskSystemGroup = world.GetOrCreateSystemManaged(); + + var taskComponents = world.EntityManager.GetBuffer(entity); + var taskOffset = (ushort)(eventTask.ConnectedIndex - taskComponents.Length); + for (int i = eventTask.ConnectedIndex; i < m_Data.LogicNodes.Length; ++i) { + // Don't initialize tasks that aren't connected to the start node. + if (i > eventTask.ConnectedIndex && m_Data.LogicNodes[i].ParentIndex == ushort.MaxValue) { + break; + } + + taskComponents = world.EntityManager.GetBuffer(entity); + + // Determine the branch index based off of the parent. If the parent is a parallel node then the node will be part of a new branch. + var branchIndex = startBranchIndex; + if (m_Data.LogicNodes[i].ParentIndex != ushort.MaxValue) { + var parentIndex = m_Data.LogicNodes[i].ParentIndex; + if (m_Data.LogicNodes[parentIndex] is IParallelNode) { + branchIndex = (ushort)(taskComponents[i - taskOffset - 1].BranchIndex + 1); + } else { + branchIndex = taskComponents[parentIndex - taskOffset].BranchIndex; + } + + // A new branch component may need to be added to keep track of the active task index for that branch. + if (branchIndex > 0) { + branchComponents = world.EntityManager.GetBuffer(entity); + if (branchIndex >= branchComponents.Length) { + branchComponents.Add(new BranchComponent() { ActiveIndex = ushort.MaxValue, NextIndex = ushort.MaxValue }); + } + } + } + + // The TaskComponents index will be different from the LogicNode index if the tree has a gap of tasks that are not connected. + // The RuntimeIndex maps the LogicNode index to the TaskComponent index. + var node = m_Data.LogicNodes[i]; + node.RuntimeIndex = (ushort)(node.Index - taskOffset); + m_Data.LogicNodes[i] = node; + if (!m_NodeIndexByRuntimeIndex.ContainsKey(node.RuntimeIndex)) { // The index will already exist if multiple entities use the same MonoBehaviour. + m_NodeIndexByRuntimeIndex.Add(node.RuntimeIndex, node.Index); + } + + if (m_Data.LogicNodes[i] is ITaskComponentData taskComponentData) { + taskComponentData.AddBufferElement(world, entity); + taskComponents = world.EntityManager.GetBuffer(entity); + taskComponents.Add(new TaskComponent { + Status = TaskStatus.Inactive, + Index = node.RuntimeIndex, + ParentIndex = AdjustByIndexOffset(m_Data.LogicNodes[i].ParentIndex, taskOffset), + SiblingIndex = AdjustByIndexOffset(m_Data.LogicNodes[i].SiblingIndex, taskOffset), + BranchIndex = branchIndex, + TagComponentType = taskComponentData.Tag, + Disabled = !IsNodeEnabled(true, m_Data.LogicNodes[i].ParentIndex) || !IsNodeEnabled(true, i), + }); + + world.EntityManager.AddComponent(entity, taskComponentData.Tag); + world.EntityManager.SetComponentEnabled(entity, taskComponentData.Tag, false); + traversalTaskSystemGroup.AddSystemToUpdateList(world.GetOrCreateSystem(taskComponentData.SystemType)); + } else if (m_Data.LogicNodes[i] is Task taskObject) { + taskObject.AddBufferElement(world, entity, GetHashCode(), node.RuntimeIndex); + taskComponents = world.EntityManager.GetBuffer(entity); + taskComponents.Add(new TaskComponent { + Status = TaskStatus.Inactive, + Index = node.RuntimeIndex, + ParentIndex = AdjustByIndexOffset(m_Data.LogicNodes[i].ParentIndex, taskOffset), + SiblingIndex = AdjustByIndexOffset(m_Data.LogicNodes[i].SiblingIndex, taskOffset), + BranchIndex = branchIndex, + TagComponentType = typeof(TaskObjectTag), + Disabled = !IsNodeEnabled(true, m_Data.LogicNodes[i].ParentIndex) || !IsNodeEnabled(true, i), + }); + world.EntityManager.AddComponent(entity, typeof(TaskObjectTag)); + world.EntityManager.SetComponentEnabled(entity, typeof(TaskObjectTag), false); + traversalTaskSystemGroup.AddSystemToUpdateList(world.GetOrCreateSystem(typeof(TaskObjectSystem))); + + taskObject.Initialize(this, node.RuntimeIndex); + } else { + Debug.LogError("Error: Unknown Task Type", this); + continue; + } + + // Conditional tasks can be reevaluated. + if (m_Data.LogicNodes[i] is IConditional && m_Data.LogicNodes[i].ParentIndex != ushort.MaxValue) { + var reevaluateTag = new ComponentType(); + Type reevaluateSystem; + if (m_Data.LogicNodes[i] is ITaskComponentData conditionalTaskComponentData) { + if (m_Data.LogicNodes[i] is IReevaluateResponder reevaluateTask) { + reevaluateTag = reevaluateTask.ReevaluateTag; + reevaluateSystem = reevaluateTask.ReevaluateSystemType; + } else { + Debug.LogWarning($"Warning: The task {m_Data.LogicNodes[i]} doesn't have a separate reevaluation tag. This may lead to unexpected results. It is recommend " + + $"that the task implements the IReevaluate interface."); + reevaluateTag = conditionalTaskComponentData.Tag; + reevaluateSystem = conditionalTaskComponentData.SystemType; + } + } else { + reevaluateTag = typeof(TaskObjectReevaluateTag); + reevaluateSystem = typeof(TaskObjectReevaluateSystem); + } + world.EntityManager.AddComponent(entity, reevaluateTag); + world.EntityManager.SetComponentEnabled(entity, reevaluateTag, false); + var entityManager = world.EntityManager; + ComponentUtility.AddInterruptComponents(entityManager, entity); + reevaluateTaskSystemGroup.AddSystemToUpdateList(world.GetOrCreateSystem(reevaluateSystem)); + + // Ignore any decorator tasks when determining the parent. Composite tasks can only be a conditional abort parent. + IComposite parentComposite = null; + ushort parentIndex; + var compositeParentIndex = m_Data.LogicNodes[i].ParentIndex; + do { + parentComposite = m_Data.LogicNodes[compositeParentIndex] as IComposite; + parentIndex = compositeParentIndex; + compositeParentIndex = m_Data.LogicNodes[compositeParentIndex].ParentIndex; + } while (compositeParentIndex != ushort.MaxValue && parentComposite == null); + + var abortParent = parentComposite as IConditionalAbortParent; + if (abortParent != null && abortParent.AbortType != ConditionalAbortType.None) { + var lowerPriorityLowerIndex = ushort.MaxValue; + var lowerPriorityUpperIndex = ushort.MaxValue; + // Lower Priority aborts are recursive allowing a nested conditional task to be reevaluated even if the direct + // parent's sibling isn't active. + if (abortParent.AbortType == ConditionalAbortType.LowerPriority || abortParent.AbortType == ConditionalAbortType.Both) { + var parentChildCount = m_Data.GetChildCount(m_Data.LogicNodes[parentIndex], m_Data.LogicNodes); + lowerPriorityLowerIndex = AdjustByIndexOffset((ushort)(parentIndex + parentChildCount), taskOffset); + var parentTranversalIndex = parentIndex; + IConditionalAbortParent parentAbortParent = null; + while (parentTranversalIndex != ushort.MaxValue && ((parentAbortParent = m_Data.LogicNodes[parentTranversalIndex] as IConditionalAbortParent) != null || m_Data.LogicNodes[parentTranversalIndex] is IDecorator)) { + if (parentAbortParent != null && parentAbortParent.AbortType != ConditionalAbortType.LowerPriority && parentAbortParent.AbortType != ConditionalAbortType.Both) { + break; + } + parentIndex = parentTranversalIndex; + parentTranversalIndex = m_Data.LogicNodes[parentTranversalIndex].ParentIndex; + } + + // The conditional abort can reevaluate up to the rightmost task of the parent. + parentTranversalIndex = parentTranversalIndex != ushort.MaxValue ? parentTranversalIndex : parentIndex; + parentChildCount = m_Data.GetChildCount(m_Data.LogicNodes[parentTranversalIndex], m_Data.LogicNodes); + lowerPriorityUpperIndex = AdjustByIndexOffset((ushort)(parentTranversalIndex + parentChildCount), taskOffset); + } + var selfPriorityUpperIndex = ushort.MaxValue; + if (abortParent.AbortType == ConditionalAbortType.Self || abortParent.AbortType == ConditionalAbortType.Both) { + if (m_Data.LogicNodes[parentIndex].SiblingIndex == ushort.MaxValue) { + selfPriorityUpperIndex = (ushort)(parentIndex + m_Data.GetChildCount(m_Data.LogicNodes[parentIndex], m_Data.LogicNodes)); + } else { + selfPriorityUpperIndex = (ushort)(m_Data.LogicNodes[parentIndex].SiblingIndex - 1); + } + } + + var reevaluateTaskComponents = world.EntityManager.AddBuffer(entity); + var reevaluateTaskComponent = new ReevaluateTaskComponent() + { + Index = node.RuntimeIndex, + AbortType = abortParent.AbortType, + ReevaluateTagComponentType = reevaluateTag, + LowerPriorityLowerIndex = lowerPriorityLowerIndex, + LowerPriorityUpperIndex = lowerPriorityUpperIndex, + SelfPriorityUpperIndex = selfPriorityUpperIndex, + }; + + reevaluateTaskComponents.Add(reevaluateTaskComponent); + } + } + + // Add any systems that respond to interrupts. + if (m_Data.LogicNodes[i] is IInterruptResponder interruptResponder) { + interruptTaskSystemGroup.AddSystemToUpdateList(world.GetOrCreateSystem(interruptResponder.InterruptSystemType)); + } + } + + // The event task may perform its own logic. + if (eventTask is IEventNodeEntityReceiver entityReceiver) { + entityReceiver.AddBufferElement(world, entity); + } + if (eventTask is IEventNodeGameObjectReceiver gameObjectReceiver) { + gameObjectReceiver.Initialize(this); + } + + traversalTaskSystemGroup.SortSystems(); + } + + /// + /// Adjusts the index by the specified offset. + /// + /// The index that should be adjusted. + /// The offset that should be adjusted by. + /// THe index by the specified offset. + private ushort AdjustByIndexOffset(ushort index, ushort offset) + { + if (index == ushort.MaxValue) { return index; } + return (ushort)(index - offset); + } + + /// + /// Stars the branch with the specified event task type. + /// + /// The branch that should be started. + /// True if the branch was started. + public bool StartBranch(Type eventTaskType) + { + if (m_World == null || m_Entity == Entity.Null) { + return false; + } + + return StartBranch(m_World, m_Entity, eventTaskType); + } + + /// + /// Stars the branch with the specified event task type. + /// + /// The world that the entity exists in. + /// The entity that contains the branch. + /// The branch that should be started. + /// True if the branch was started. + public bool StartBranch(World world, Entity entity, Type eventTaskType) + { + if (!s_BehaviorTreeByEntity.ContainsKey(entity)) { + return StartBehavior(world, entity, eventTaskType); + } + + if (m_Data.EventNodes == null || entity.Index == 0 || !Application.isPlaying) { + return false; + } + + for (int i = 0; i < m_Data.EventNodes.Length; ++i) { + if (m_Data.EventNodes[i].GetType() == eventTaskType) { + // The branch cannot start if it is disabled. + if (!IsNodeEnabled(false, i)) { + Debug.LogError($"Error: Unable to start the {eventTaskType.Name} branch because the node is disabled.", this); + return false; + } + + return StartBranch(world, entity, m_Data.EventNodes[i]); + } + } + + Debug.LogError($"Error: Unable to start the {eventTaskType.Name} branch because it can't be found.", this); + return false; + } + + /// + /// Starts the branch with the specified event task. + /// + /// The branch that should be started. + /// True if the branch was started. + public bool StartBranch(IEventNode eventTask) + { + if (m_World == null || m_Entity == Entity.Null) { + return false; + } + + return StartBranch(m_World, m_Entity, eventTask); + } + + /// + /// Starts the branch with the specified event task. + /// + /// The world that the entity exists in. + /// The entity that contains the branch. + /// The branch that should be started. + /// True if the branch was started. + public bool StartBranch(World world, Entity entity, IEventNode eventTask) + { + if (!Application.isPlaying || entity == Entity.Null) { + return false; + } + + // The branch can't be started if it's not connected to any tasks. + if (eventTask.ConnectedIndex == ushort.MaxValue) { + Debug.LogError($"Error: Unable to start the {eventTask.GetType().Name} branch because it doesn't have a connecting task.", this); + return false; + } + + // The tree needs to be setup before the branch can start. + if (!world.EntityManager.HasBuffer(entity)) { + InitializeTree(); + } + + var connectedIndex = m_Data.LogicNodes[eventTask.ConnectedIndex].RuntimeIndex; + return StartBranch(world, entity, connectedIndex, m_UpdateMode == UpdateMode.EveryFrame); + } + + /// + /// Starts the branch. This method is static allowing for alread-baked entities to be able to start the branch. + /// + /// The world that the entity exists in. + /// The entity that contains the branch. + /// The index of the starting task. + /// Should the branch start evaluation? If false the tree will manually need to be ticked. + /// True if the branch was started. + internal static bool StartBranch(World world, Entity entity, ushort connectedIndex, bool startEvaluation) + { + var taskComponents = world.EntityManager.GetBuffer(entity); + if (connectedIndex >= taskComponents.Length) { + Debug.LogError($"Error: Unable to start the branch on entity {entity} because the start index is greater than the task count."); + return false; + } + + var branchIndex = taskComponents[connectedIndex].BranchIndex; + var startTask = taskComponents[connectedIndex]; + // The branch can't be started twice or if it is disabled. + if (startTask.Status == TaskStatus.Queued || startTask.Status == TaskStatus.Running || startTask.Disabled) { + return false; + } + + var systemGroup = world.GetExistingSystemManaged(); + if (systemGroup == null) { + systemGroup = World.DefaultGameObjectInjectionWorld.GetExistingSystemManaged(); + if (systemGroup == null) { + return false; + } + } + systemGroup.Enabled = true; + + // The branch can start. + startTask.Status = TaskStatus.Queued; + taskComponents[connectedIndex] = startTask; + + var activeTag = taskComponents[connectedIndex].TagComponentType; + world.EntityManager.SetComponentEnabled(entity, activeTag, true); + + var branchComponents = world.EntityManager.GetBuffer(entity); + var branchComponent = branchComponents[branchIndex]; + branchComponent.ActiveIndex = branchComponent.NextIndex = connectedIndex; + branchComponent.ActiveTagComponentType = activeTag; + branchComponents[branchIndex] = branchComponent; + + var evaluateComponent = world.EntityManager.GetComponentData(entity); + evaluateComponent.EvaluationCount = 0; + world.EntityManager.SetComponentData(entity, evaluateComponent); + + if (startEvaluation) { + world.EntityManager.SetComponentEnabled(entity, true); + world.EntityManager.SetComponentEnabled(entity, true); + } + return true; + } + + /// + /// Returns the task at the specified index. + /// + /// The index of the task. + /// The task at the specified index. + public ILogicNode GetTask(int index) + { + Deserialize(); + + if (m_Data.LogicNodes == null || index < 0 || index >= m_Data.LogicNodes.Length) { + return null; + } + if (Application.isPlaying && m_NodeIndexByRuntimeIndex.Count > 0) { + return m_Data.LogicNodes[m_NodeIndexByRuntimeIndex[index]]; + } + return m_Data.LogicNodes[index]; + } + + /// + /// Finds the task with the specified type. + /// + /// The first task found with the specified type (can be null). + public T FindTask() where T : Task + { + Deserialize(); + + if (m_Data.LogicNodes == null || m_Data.LogicNodes.Length == 0) { + return null; + } + + for (int i = 0; i < m_Data.LogicNodes.Length; ++i) { + if (m_Data.LogicNodes[i] is T task) { + return task; + } + if (m_Data.LogicNodes[i] is IStackedNode stackedNode) { + if (stackedNode.Nodes == null) { + continue; + } + for (int j = 0; j < stackedNode.Nodes.Length; ++j) { + if (stackedNode.Nodes[j] is T stackedTask) { + return stackedTask; + } + } + } + + } + + return null; + } + + /// + /// Finds the tasks with the specified type. This method does not have any allocations. + /// + /// A pre-initialized array that will contain the found tasks. + /// The number of tasks found with the specified type. + public int FindTasks(T[] foundTasks) where T : Task + { + if (foundTasks == null || foundTasks.Length == 0) { + return 0; + } + + Deserialize(); + if (m_Data.LogicNodes == null || m_Data.LogicNodes.Length == 0) { + return 0; + } + + var count = 0; + for (int i = 0; i < m_Data.LogicNodes.Length; ++i) { + if (m_Data.LogicNodes[i] is T task) { + foundTasks[count] = task; + count++; + if (count == foundTasks.Length) { + return count; + } + } + if (m_Data.LogicNodes[i] is IStackedNode stackedNode) { + if (stackedNode.Nodes == null) { + continue; + } + for (int j = 0; j < stackedNode.Nodes.Length; ++j) { + if (stackedNode.Nodes[j] is T stackedTask) { + foundTasks[count] = stackedTask; + count++; + if (count == foundTasks.Length) { + return count; + } + } + } + } + + } + + return count; + } + + /// + /// Finds the tasks with the specified type. + /// + /// An array containing the found tasks. + public T[] FindTasks() where T : Task + { + Deserialize(); + + if (m_Data.LogicNodes == null || m_Data.LogicNodes.Length == 0) { + return null; + } + + // Assume the maximum number of tasks will be found. The array will be resized before returning. + var foundTasks = new T[m_Data.LogicNodes.Length]; + var count = FindTasks(foundTasks); + if (foundTasks.Length != count) { + Array.Resize(ref foundTasks, count); + } + return foundTasks; + } + + /// + /// Ticks the behavior tree. The UpdateMode must be set to Manual. + /// The behavior tree will not be executed instantaneously. It will instead be ticked the next time the DOTS system group is updated. + /// + public void Tick() + { + if (m_UpdateMode != UpdateMode.Manual) { + Debug.LogWarning("Warning: The behavior tree UpdateMode must be set to Manual in order to be ticked manually.", this); + return; + } + + if (m_World == null || m_Entity == Entity.Null) { + Debug.LogWarning("Warning: The behavior tree must be started in order for it to be ticked manually.", this); + return; + } + + Tick(m_World, m_Entity); + } + + /// + /// Ticks the behavior tree. + /// The behavior tree will not be executed instantaneously. It will instead be ticked the next time the DOTS system group is updated. + /// + /// The world that the entity exists in. + /// The entity that contains the behavior tree. + public static void Tick(World world, Entity entity) + { + if (world == null || entity.Index == 0) { + return; + } + world.EntityManager.SetComponentEnabled(entity, true); + } + + /// + /// Reevaluates the SubtreeReferences by calling the EvaluateSubtrees method. + /// + public void ReevaluateSubtreeReferences() + { + if (!m_Data.ReevaluateSubtreeReferences(this, this, ClearTree)) { + return; + } + + // Restart the tree. + InitializeTree(); + if (enabled && m_GameObject.activeSelf) { + StartBehavior(); + } + } + + /// + /// Stops or pauses the behavior tree. + /// + /// Should the behavior tree be paused? + /// True if the behavior tree was stopped or paused. + public bool StopBehavior(bool pause = false) + { + return StopBehavior(m_World, m_Entity, pause); + } + + /// + /// Stops or pauses the behavior tree. + /// + /// The world that the entity exists in. + /// The entity that contains the behavior tree. + /// Should the behavior tree be paused? + /// True if the behavior tree was stopped or paused. + public bool StopBehavior(World world, Entity entity, bool pause = false) + { + if (world == null || !world.IsCreated || entity == Entity.Null) { + return false; + } + + // The tree could be stopped after it has been paused. + if (world.EntityManager.HasComponent(entity)) { + world.EntityManager.SetComponentEnabled(entity, false); + } + world.EntityManager.SetComponentEnabled(entity, false); + + if (!s_BehaviorTreeByEntity.ContainsKey(entity)) { + return false; + } + + // Notify those interested that the behavior tree has been stopped. + if (OnBehaviorTreeStopped != null) { + OnBehaviorTreeStopped(pause); + } + + // Tasks can implement a pause and end specific callback. + var tasks = Data.LogicNodes; + for (int i = 0; i < tasks.Length; ++i) { + if (pause) { + if (!(tasks[i] is IPausableTask pausableTask)) { + continue; + } + pausableTask.Pause(world, entity); + } else if (m_Data.LogicNodes[i] is Task task) { + task.OnEnd(); + } + } + + // Removing the EnabledTag and EvaluationComponent is sufficient to pause the tree. + if (pause) { + return true; + } + + s_BehaviorTreeByEntity.Remove(entity); + + StopBehavior(world, entity); + + return true; + } + + /// + /// Stops the behavior tree. This method should only be called from an ECS system. + /// + /// The world that the entity exists in. + /// The entity that contains the behavior tree. + public static void StopBehavior(World world, Entity entity) + { + if (world == null || entity.Index == 0) { + return; + } + + var branchComponents = world.EntityManager.GetBuffer(entity); + var taskComponents = world.EntityManager.GetBuffer(entity); + for (int i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.ActiveIndex == ushort.MaxValue) { + continue; + } + + // Stop all of the active tasks within the branch. + var taskIndex = branchComponent.ActiveIndex; + while (taskIndex != ushort.MaxValue) { + var taskComponent = taskComponents[taskIndex]; + taskComponent.Status = TaskStatus.Inactive; + taskComponent.Reevaluate = false; + taskComponents[taskIndex] = taskComponent; + + taskIndex = taskComponent.ParentIndex; + } + + world.EntityManager.SetComponentEnabled(entity, branchComponent.ActiveTagComponentType, false); + branchComponent.ActiveIndex = branchComponent.NextIndex = ushort.MaxValue; + branchComponent.ActiveTagComponentType = new ComponentType(); + branchComponent.InterruptType = InterruptType.None; + branchComponent.InterruptIndex = 0; + branchComponents[i] = branchComponent; + } + + // Stop all reevaluations. + if (world.EntityManager.HasBuffer(entity)) { + var reevaluateTaskComponents = world.EntityManager.GetBuffer(entity); + for (int i = 0; i < reevaluateTaskComponents.Length; ++i) { + if (reevaluateTaskComponents[i].ReevaluateStatus == ReevaluateStatus.Inactive) { + continue; + } + + var reevaluateTaskComponent = reevaluateTaskComponents[i]; + world.EntityManager.SetComponentEnabled(entity, reevaluateTaskComponent.ReevaluateTagComponentType, false); + reevaluateTaskComponent.ReevaluateStatus = ReevaluateStatus.Inactive; + reevaluateTaskComponent.OriginalStatus = TaskStatus.Inactive; + + reevaluateTaskComponents[i] = reevaluateTaskComponent; + } + } + } + + /// + /// Restarts the behavior tree. + /// + /// True if the behavior tree was restarted. + public bool RestartBehavior() + { + if (!IsActive()) { + return false; + } + if (!StopBehavior()) { + return false; + } + return StartBehavior(); + } + + /// + /// Clears all of the tree components. + /// + /// The world that the entity exists in. + /// The entity that contains the behavior tree. + private void ClearTree() + { + if (m_Entity == Entity.Null) { + return; + } + ClearTree(m_World, m_Entity); + } + + /// + /// Clears all of the tree components. + /// + /// The world that the entity exists in. + /// The entity that contains the behavior tree. + private void ClearTree(World world, Entity entity) + { + if (Data.LogicNodes == null) { + return; + } + + StopBehavior(world, entity, false); + + world.EntityManager.RemoveComponent(entity); + world.EntityManager.RemoveComponent(entity); + + var branchComponents = world.EntityManager.GetBuffer(entity); + var taskComponents = world.EntityManager.GetBuffer(entity); + branchComponents.Clear(); + taskComponents.Clear(); + if (world.EntityManager.HasBuffer(entity)) { + var reevaluateTaskComponents = world.EntityManager.GetBuffer(entity); + reevaluateTaskComponents.Clear(); + } + + for (int i = 0; i < m_Data.LogicNodes.Length; ++i) { + if (m_Data.LogicNodes[i] is ITaskComponentData taskComponentData) { + taskComponentData.ClearBufferElement(world, entity); + if (world.EntityManager.HasComponent(entity, taskComponentData.Tag)) { + world.EntityManager.RemoveComponent(entity, taskComponentData.Tag); + } + if (m_Data.LogicNodes[i] is IReevaluateResponder reevaluateTask) { + if (world.EntityManager.HasComponent(entity, reevaluateTask.ReevaluateTag)) { + world.EntityManager.RemoveComponent(entity, reevaluateTask.ReevaluateTag); + } + } + } else if (m_Data.LogicNodes[i] is Task monoTask) { + monoTask.ClearBufferElement(world, entity); + if (m_Data.LogicNodes[i] is IConditional) { + if (world.EntityManager.HasComponent(entity, typeof(TaskObjectReevaluateTag))) { + world.EntityManager.RemoveComponent(entity, typeof(TaskObjectReevaluateTag)); + } + if (world.EntityManager.HasComponent(entity, typeof(InterruptTag))) { + world.EntityManager.RemoveComponent(entity, typeof(InterruptTag)); + } + } + if (world.EntityManager.HasComponent(entity, typeof(TaskObjectTag))) { + world.EntityManager.RemoveComponent(entity, typeof(TaskObjectTag)); + } + } + } + + for (int i = 0; i < m_Data.EventNodes.Length; ++i) { + if (m_Data.EventNodes[i] is IEventNodeEntityReceiver entityReceiver) { + entityReceiver.ClearBufferElement(world, entity); + } + } + + m_NodeIndexByRuntimeIndex.Clear(); + } + + /// + /// Returns the SharedVariable with the specified name. + /// + /// The name of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(string name) + { + Deserialize(); + + return m_Data.GetVariable(this, name, SharedVariable.SharingScope.Graph); + } + + /// + /// Returns the SharedVariable with the specified name and scope. + /// + /// The name of the SharedVariable that should be retrieved. + /// The scope of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(string name, SharedVariable.SharingScope scope) + { + Deserialize(); + + return m_Data.GetVariable(this, name, scope); + } + + /// + /// Returns the SharedVariable of the specified name. + /// + /// The name of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(string name) + { + Deserialize(); + + return m_Data.GetVariable(this, name, SharedVariable.SharingScope.Graph); + } + + /// + /// Returns the SharedVariable of the specified name and scope. + /// + /// The name of the SharedVariable that should be retrieved. + /// The scope of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(string name, SharedVariable.SharingScope scope) + { + Deserialize(); + + return m_Data.GetVariable(this, name, scope); + } + + /// + /// Sets the value of the SharedVariable. + /// + /// The type of SharedVarible. + /// The name of the SharedVariable. + /// The value of the SharedVariable. + public void SetVariableValue(string name, T value) + { + Deserialize(); + + m_Data.SetVariableValue(this, name, value, SharedVariable.SharingScope.Graph); + } + + /// + /// Sets the value of the SharedVariable. + /// + /// The type of SharedVarible. + /// The name of the SharedVariable. + /// The value of the SharedVariable. + /// The scope of the SharedVariable that should be set. + public void SetVariableValue(string name, T value, SharedVariable.SharingScope scope) + { + Deserialize(); + + m_Data.SetVariableValue(this, name, value, scope); + } + + /// + /// Gets the behavior tree save data. + /// + /// Specifies which variables should be saved. Graph variables will automatically be saved. + /// The save data if the behavior tree can be saved. + public SaveManager.SaveData? Save(SaveManager.VariableSaveScope variableSaveScope = 0) + { + if (OnWillSave != null) { + OnWillSave(this); + } + var saveData = SaveManager.Save(new BehaviorTree[] { this }, variableSaveScope); + if (OnDidSave != null) { + OnDidSave(this, saveData.HasValue); + } + return saveData; + } + + /// + /// Saves the behavior tree at the specified file path. + /// + /// The file path to save the behavior tree at. The file will be replaced if it already exists. + /// Specifies which variables should be saved. Graph variables will automatically be saved. + /// True if the behavior tree was successfully saved. + public bool Save(string filePath, SaveManager.VariableSaveScope variableSaveScope = 0) + { + if (OnWillSave != null) { + OnWillSave(this); + } + var success = SaveManager.Save(new BehaviorTree[] { this }, filePath, variableSaveScope); + if (OnDidSave != null) { + OnDidSave(this, success); + } + return success; + } + + /// + /// Loads the behavior tree from the specified file path. + /// + /// The file path to load the behavior tree at. + /// Optional callback after the graph variables have been restored. + /// True if the behavior tree was successfully loaded. + public bool Load(string filePath, Action afterVariablesRestored = null) + { + if (OnWillLoad != null) { + OnWillLoad(this); + } + var success = SaveManager.Load(new BehaviorTree[] { this }, filePath, afterVariablesRestored); + if (OnDidLoad != null) { + OnDidLoad(this, success); + } + return success; + } + + /// + /// Loads the behavior tree from the specified save data. + /// + /// The data associated with the behavior tree. + /// Optional callback after the graph variables have been restored. + /// True if the behavior tree was successfully loaded. + public bool Load(SaveManager.SaveData saveData, Action afterVariablesRestored = null) + { + if (OnWillLoad != null) { + OnWillLoad(this); + } + var success = SaveManager.Load(new BehaviorTree[] { this }, saveData, afterVariablesRestored); + if (OnDidLoad != null) { + OnDidLoad(this, success); + } + return success; + } + + /// + /// Starts the task courtine with the specified name. + /// + /// The task that the coroutine belongs to. + /// The name of the coroutine method. + /// The created routine (can be null). + public Coroutine StartTaskCoroutine(Task task, string coroutineName) + { + var method = task.GetType().GetMethod(coroutineName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); + if (method == null) { + Debug.LogError($"Error: The coroutine {coroutineName} cannot be started due to the method not being found on {task.GetType()}."); + return null; + } + + if (m_ActiveTaskCoroutines == null) { + m_ActiveTaskCoroutines = new Dictionary>(); + } + var taskCoroutine = new TaskCoroutine(this, (IEnumerator)method.Invoke(task, new object[] { }), coroutineName); + if (!m_ActiveTaskCoroutines.TryGetValue(coroutineName, out var taskCoroutines)) { + taskCoroutines = new List(); + m_ActiveTaskCoroutines.Add(coroutineName, taskCoroutines); + } + taskCoroutines.Add(taskCoroutine); + + return taskCoroutine.Coroutine; + } + + /// + /// Starts the task courtine with the specified name. + /// + /// The task that the coroutine belongs to. + /// The name of the coroutine method. + /// The input parameter to the coroutine. + /// The created routine (can be null). + public Coroutine StartTaskCoroutine(Task task, string coroutineName, object value) + { + var method = task.GetType().GetMethod(coroutineName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); + if (method == null) { + Debug.LogError($"Error: The coroutine {coroutineName} cannot be started due to the method not being found on {task.GetType()}."); + return null; + } + + if (m_ActiveTaskCoroutines == null) { + m_ActiveTaskCoroutines = new Dictionary>(); + } + var taskCoroutine = new TaskCoroutine(this, (IEnumerator)method.Invoke(task, new object[] { value }), coroutineName); + if (!m_ActiveTaskCoroutines.TryGetValue(coroutineName, out var taskCoroutines)) { + taskCoroutines = new List(); + m_ActiveTaskCoroutines.Add(coroutineName, taskCoroutines); + } + taskCoroutines.Add(taskCoroutine); + + return taskCoroutine.Coroutine; + } + + /// + /// Stops the task courtine with the specified name. + /// + /// The name of the coroutine method. + public void StopTaskCoroutine(string coroutineName) + { + if (!m_ActiveTaskCoroutines.TryGetValue(coroutineName, out var taskCoroutines)) { + return; + } + + for (int i = 0; i < taskCoroutines.Count; ++i) { + taskCoroutines[i].Stop(); + } + } + + /// + /// Stops all of the task coroutines. + /// + public void StopAllTaskCoroutines() + { + if (m_ActiveTaskCoroutines == null) { + return; + } + + foreach (var entry in m_ActiveTaskCoroutines) { + var taskCoroutines = entry.Value; + for (int i = 0; i < taskCoroutines.Count; ++i) { + taskCoroutines[i].Stop(); + } + } + } + + /// + /// The TaskCoroutine has ended. + /// + /// The coroutine that has ended. + /// The name of the coroutine. + public void TaskCoroutineEnded(TaskCoroutine taskCoroutine, string coroutineName) + { + if (!m_ActiveTaskCoroutines.TryGetValue(coroutineName, out var taskCoroutines)) { + return; + } + + taskCoroutines.Remove(taskCoroutine); + if (taskCoroutines.Count == 0) { + m_ActiveTaskCoroutines.Remove(coroutineName); + } + } + + /// + /// OnCollisionEnter callback. + /// + /// The resulting collision. + private void OnCollisionEnter(Collision collision) + { + if (OnBehaviorTreeCollisionEnter != null) { + OnBehaviorTreeCollisionEnter(collision); + } + } + + /// + /// OnCollisionExit callback. + /// + /// The resulting collision. + private void OnCollisionExit(Collision collision) + { + if (OnBehaviorTreeCollisionExit != null) { + OnBehaviorTreeCollisionExit(collision); + } + } + + /// + /// OnCollisionEnter2D callback. + /// + /// The resulting collision. + private void OnCollisionEnter2D(Collision2D collision) + { + if (OnBehaviorTreeCollisionEnter2D != null) { + OnBehaviorTreeCollisionEnter2D(collision); + } + } + + /// + /// OnCollisionExit2D callback. + /// + /// The resulting collision. + private void OnCollisionExit2D(Collision2D collision) + { + if (OnBehaviorTreeCollisionExit2D != null) { + OnBehaviorTreeCollisionExit2D(collision); + } + } + + /// + /// OnTriggerEnter callback. + /// + /// The overlapping collider. + private void OnTriggerEnter(Collider other) + { + if (OnBehaviorTreeTriggerEnter != null) { + OnBehaviorTreeTriggerEnter(other); + } + } + + /// + /// OnTriggerExit callback. + /// + /// The collider that is no longer overlapping. + private void OnTriggerExit(Collider other) + { + if (OnBehaviorTreeTriggerExit != null) { + OnBehaviorTreeTriggerExit(other); + } + } + + /// + /// OnTriggerEnter2D callback. + /// + /// The overlapping collider. + private void OnTriggerEnter2D(Collider2D other) + { + if (OnBehaviorTreeTriggerEnter2D != null) { + OnBehaviorTreeTriggerEnter2D(other); + } + } + + /// + /// OnTriggerExit2D callback. + /// + /// The collider that is no longer overlapping. + private void OnTriggerExit2D(Collider2D other) + { + if (OnBehaviorTreeTriggerExit2D != null) { + OnBehaviorTreeTriggerExit2D(other); + } + } + + /// + /// OnControllerColliderHit callback. + /// + /// The hit result. + private void OnControllerColliderHit(ControllerColliderHit hit) + { + if (OnBehaviorTreeControllerColliderHit != null) { + OnBehaviorTreeControllerColliderHit(hit); + } + } + +#if UNITY_EDITOR + /// + /// OnDrawGizmos callback. + /// + private void OnDrawGizmos() + { + if (!enabled) { + return; + } + + if (m_Data != null && m_Data.LogicNodes != null) { + for (int i = 0; i < m_Data.LogicNodes.Length; ++i) { + if (m_Data.LogicNodes[i] is Task task) { + task.OnDrawGizmos(this); + } + } + } + } + + /// + /// OnDrawGizmos callback. + /// + private void OnDrawGizmosSelected() + { + if (!enabled) { + return; + } + + if (m_Data != null && m_Data.LogicNodes != null) { + for (int i = 0; i < m_Data.LogicNodes.Length; ++i) { + if (m_Data.LogicNodes[i] is Task task) { + task.OnDrawGizmosSelected(this); + } + } + } + } +#endif + + /// + /// The behavior tree has been disabled. + /// + private void OnDisable() + { + if (m_Entity == Entity.Null) { + return; + } + + StopBehavior(m_World, m_Entity, m_PauseWhenDisabled); + } + + /// + /// The behavior tree has been destroyed. + /// + private void OnDestroy() + { + if (m_Entity == Entity.Null) { + return; + } + + if (OnBehaviorTreeDestroyed != null) { + OnBehaviorTreeDestroyed(); + } + StopBehavior(m_World, m_Entity, false); + m_GameObject = null; + } + + /// + /// Is the node with the specified index enabled? + /// + /// Is the node a LogicNode? + /// The index of the node. + /// True if the node with the specified index is enabled. + public bool IsNodeEnabled(bool logicNode, int index) + { + return Data.IsNodeEnabled(logicNode, index); + } + + /// + /// Is the node with the specified index active? + /// + /// Is the node a LogicNode? + /// The index of the node. + /// True if the node with the specified index is active. + public bool IsNodeActive(bool logicNode, int index) + { + if (!Application.isPlaying || m_Entity == Entity.Null) { + return false; + } + + var taskComponents = m_World.EntityManager.GetBuffer(m_Entity); + var logicNodeIndex = index; + if (!logicNode && m_Data.EventNodes != null && index < m_Data.EventNodes.Length) { + // Find the logic node that the event node is connected to. + logicNodeIndex = m_Data.EventNodes[index].ConnectedIndex; + } + if (logicNodeIndex >= taskComponents.Length) { + return false; + } + var taskComponent = taskComponents[logicNodeIndex]; + return taskComponent.Status == TaskStatus.Running; + } + + /// + /// Returns true if the behavior tree is active. + /// + /// True if the behavior tree is active. + public bool IsActive() + { + if (m_Entity == Entity.Null) { + return false; + } + return s_BehaviorTreeByEntity.ContainsKey(m_Entity); + } + + /// + /// Copies the graph onto the current graph. + /// + /// The graph that should be copied. + public void Clone(IGraph other) + { + m_Data = new BehaviorTreeData(); + m_Data.EventNodes = other.EventNodes; + m_Data.LogicNodes = other.LogicNodes; + m_Data.SharedVariables = other.SharedVariables; + +#if UNITY_EDITOR + m_Data.EventNodeProperties = other.EventNodeProperties; + m_Data.LogicNodeProperties = other.LogicNodeProperties; + m_Data.GroupProperties = other.GroupProperties; +#endif + + m_Data.Serialize(); + } + + /// + /// Overrides ToString. + /// + /// The desired string value. + public override string ToString() + { + return $"{m_GraphName} (Index {m_Index})"; + } + + /// + /// Callback when the domain should be reloaded. + /// + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] + private static void Reinitialize() + { + s_BehaviorTreeByEntity = new Dictionary(); + } + + /// + /// Enables the baked behavior tree system. + /// + /// The world that the system has been added to. + public static void EnableBakedBehaviorTreeSystem(World world) + { + if (world == null) { + return; + } + + EnableBakedBehaviorTreeSystem(world.Unmanaged); + } + + /// + /// Enables the baked behavior tree system. + /// + /// The unmanged world that the system has been added to. + public static void EnableBakedBehaviorTreeSystem(WorldUnmanaged world) + { + world.GetExistingSystemState().Enabled = true; + } + + /// + /// Converts the behavior tree to a DOTS entity. + /// + public class BehaviorTreeBaker : Baker + { + private static MethodInfo s_GetTypeOfSystemMethod; + + /// + /// Bakes the behavior tree to the DOTS entity. + /// + /// The authoring behavior tree. + public override void Bake(BehaviorTree behaviorTree) + { + if (!behaviorTree.StartWhenEnabled || !behaviorTree.enabled) { + return; + } + + var entity = GetEntity(behaviorTree, TransformUsageFlags.Dynamic); + var worlds = World.All; + for (int i = 0; i < worlds.Count; ++i) { + if (worlds[i].EntityManager.Exists(entity)) { + if (!behaviorTree.InitializeTree(worlds[i], entity)) { + continue; + } + + var connectedIndex = GetStartTaskConnectedIndex(behaviorTree); + if (connectedIndex == -1 || connectedIndex == ushort.MaxValue) { + return; + } + + var taskComponents = worlds[i].EntityManager.GetBuffer(entity); + var tagStableTypeHash = new ulong[taskComponents.Length]; + for (int j = 0; j < taskComponents.Length; ++j) { + tagStableTypeHash[j] = TypeManager.GetTypeInfo(taskComponents[j].TagComponentType.TypeIndex).StableTypeHash; + } + ulong[] reevaluateTagStableTypeHash = null; + if (worlds[i].EntityManager.HasBuffer(entity)) { + var reevaluateTaskComponents = worlds[i].EntityManager.GetBuffer(entity); + reevaluateTagStableTypeHash = new ulong[reevaluateTaskComponents.Length]; + for (int j = 0; j < reevaluateTaskComponents.Length; ++j) { + reevaluateTagStableTypeHash[j] = TypeManager.GetTypeInfo(reevaluateTaskComponents[j].ReevaluateTagComponentType.TypeIndex).StableTypeHash; + } + } + + AddComponentObject(entity, new BakedBehaviorTree + { + StartEventConnectedIndex = connectedIndex, + StartEvaluation = behaviorTree.UpdateMode == UpdateMode.EveryFrame, + ReevaluateTaskSystems = GetTaskSystems(worlds[i]), + InterruptTaskSystems = GetTaskSystems(worlds[i]), + TraversalTaskSystems = GetTaskSystems(worlds[i]), + TagStableTypeHashes = tagStableTypeHash, + ReevaluateTagStableTypeHashes = reevaluateTagStableTypeHash, + }); + behaviorTree.Baked = true; + } + } + } + + /// + /// Returns the index of the node connection for the start event task. + /// + /// The interested behavior tree. + /// The index of the node connection for the start event task. + private int GetStartTaskConnectedIndex(BehaviorTree behaviorTree) + { + // The behavior tree has to first be initialized. + if (behaviorTree.World == null || behaviorTree.Entity == Entity.Null) { + Debug.LogError($"Error: Unable to retrieve the connected index on behavior tree {behaviorTree}. The behavior tree has to first be initialized."); + return -1; + } + + var data = behaviorTree.Data; + for (int i = 0; i < data.EventNodes.Length; ++i) { + if (data.EventNodes[i].GetType() == typeof(Start)) { + // The connected index may not be valid. + if (data.EventNodes[i].ConnectedIndex == ushort.MaxValue) { + return ushort.MaxValue; + } + + // The branch cannot start if it is disabled. + if (!behaviorTree.IsNodeEnabled(false, i)) { + return -1; + } + + return data.LogicNodes[data.EventNodes[i].ConnectedIndex].RuntimeIndex; + } + } + return -1; + } + + /// + /// Returns all of the system type indicies within the systems of the specified type. + /// + /// The world that the systems were added to. + /// The system type indicies within the systems of the specified type (can be null). + private string[] GetTaskSystems(World world) where T : ComponentSystemGroup + { + var systemGroup = world.GetExistingSystemManaged(); + if (systemGroup == null) { + return null; + } + + var systems = systemGroup.GetAllSystems(); + if (systems.Length == 0) { + systems.Dispose(); + return null; + } + + // Use reflection to call WorldUnmanaged.GetTypeOfSystem. This method is only called during baking at edit time so reflection is ok, though it would be better + // if this method was eventually made public. + if (s_GetTypeOfSystemMethod == null) { + s_GetTypeOfSystemMethod = typeof(WorldUnmanaged).GetMethod("GetTypeOfSystem", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); + if (s_GetTypeOfSystemMethod == null) { + Debug.LogError("Error: Unable to find WorldUnmanaged.GetTypeOfSystem. Please email support@opsive.com with your Unity version and Entity package version."); + return null; + } + } + + var systemTypes = new string[systems.Length]; + for (int i = 0; i < systems.Length; ++i) { + var systemTypeIndex = TypeManager.GetSystemTypeIndex((Type)s_GetTypeOfSystemMethod.Invoke(world.Unmanaged, new object[] { systems[i] })); + systemTypes[i] = systemTypeIndex.ToString(); + } + systems.Dispose(); + return systemTypes; + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs.meta new file mode 100644 index 000000000..7cbc3a6ce --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0cdaa3305fa954c45a80c9662aa6f425 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: e0a8f1df788b6274a9a24003859dfa7e, type: 3} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs new file mode 100644 index 000000000..96eac6a85 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs @@ -0,0 +1,1595 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime +{ + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Tasks.Events; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using System; + using System.Collections; + using System.Collections.Generic; + using System.Reflection; + using UnityEngine; + + /// + /// Storage class for the graph data. + /// + [System.Serializable] + public class BehaviorTreeData + { + [Tooltip("The serialized Task data.")] + [SerializeField] private Serialization[] m_TaskData; + [Tooltip("The serialized EventTask data.")] + [SerializeField] private Serialization[] m_EventTaskData; + [Tooltip("The serialized SharedVariable data.")] + [SerializeField] private Serialization[] m_SharedVariableData; + [Tooltip("The serialized disabled event nodes data.")] + [SerializeField] private Serialization[] m_DisabledEventNodesData; + [Tooltip("The serialized disabled logic nodes data.")] + [SerializeField] private Serialization[] m_DisabledLogicNodesData; + [Tooltip("The unique ID of the data.")] + [SerializeField] private int m_UniqueID; + + private ILogicNode[] m_Tasks; + private IEventNode[] m_EventTasks; + private SharedVariable[] m_SharedVariables; + private ushort[] m_DisabledLogicNodes; + private ushort[] m_DisabledEventNodes; + private Dictionary m_VariableByNameMap; + private int m_RuntimeUniqueID; + + public ILogicNode[] LogicNodes + { + get => m_Tasks; + set { + if (value == null) { + m_Tasks = null; + } else { + if (m_Tasks == null) { + m_Tasks = new ILogicNode[value.Length]; + } else if (m_Tasks.Length != value.Length) { + Array.Resize(ref m_Tasks, value.Length); + } + for (int i = 0; i < value.Length; ++i) { + m_Tasks[i] = value[i]; + } + } + } + } + public IEventNode[] EventNodes + { + get => m_EventTasks; + set { + if (value == null) { + m_EventTasks = null; + } else { + if (m_EventTasks == null) { + m_EventTasks = new IEventNode[value.Length]; + } else if (m_EventTasks.Length != value.Length) { + Array.Resize(ref m_EventTasks, value.Length); + } + for (int i = 0; i < value.Length; ++i) { + m_EventTasks[i] = value[i]; + } + } + } + } + public SharedVariable[] SharedVariables { get => m_SharedVariables; set => m_SharedVariables = value; } + public int UniqueID { get => m_RuntimeUniqueID != 0 ? m_RuntimeUniqueID : m_UniqueID; } + public ushort[] DisabledLogicNodes { get => m_DisabledLogicNodes; set => m_DisabledLogicNodes = value; } + public ushort[] DisabledEventNodes { get => m_DisabledEventNodes; set => m_DisabledEventNodes = value; } + internal Dictionary VariableByNameMap { get => m_VariableByNameMap; set => m_VariableByNameMap = value; } + +#if UNITY_EDITOR + [Tooltip("The serialized logic node properties data.")] + [SerializeField] private Serialization[] m_LogicNodePropertiesData; + [Tooltip("The serialized event node properties data.")] + [SerializeField] private Serialization[] m_EventNodePropertiesData; + [Tooltip("The serialized group properties data.")] + [SerializeField] private Serialization[] m_GroupPropertiesData; + + private LogicNodeProperties[] m_LogicNodeProperties; + private NodeProperties[] m_EventNodeProperties; + private GroupProperties[] m_GroupProperties; + + public LogicNodeProperties[] LogicNodeProperties { get => m_LogicNodeProperties; set { m_LogicNodeProperties = value; } } + public NodeProperties[] EventNodeProperties { get => m_EventNodeProperties; set { m_EventNodeProperties = value; } } + public GroupProperties[] GroupProperties { get => m_GroupProperties; set => m_GroupProperties = value; } +#endif + + private ResizableArray m_SubtreeNodesReference; + [System.NonSerialized] private bool m_Deserializing; + + internal ResizableArray SubtreeNodesReferences { get => m_SubtreeNodesReference; set => m_SubtreeNodesReference = value; } + + /// + /// Default constructor. + /// + public BehaviorTreeData() + { + m_UniqueID = Guid.NewGuid().GetHashCode(); + } + + /// + /// Adds the specified node. + /// + /// The node that should be added. + public void AddNode(ILogicNode node) + { + if (m_Tasks == null) { + m_Tasks = new ILogicNode[1]; + } else { + Array.Resize(ref m_Tasks, m_Tasks.Length + 1); + } + node.Index = (ushort)(m_Tasks.Length - 1); + node.ParentIndex = ushort.MaxValue; + node.SiblingIndex = ushort.MaxValue; + node.RuntimeIndex = ushort.MaxValue; + m_Tasks[m_Tasks.Length - 1] = node; + } + + /// + /// Removes the specified logic node. + /// + /// The node that should be removed. + /// True if the node was removed. + public bool RemoveNode(ILogicNode node) + { + if (m_Tasks == null || node.Index >= m_Tasks.Length) { + return false; + } + + var dest = new ILogicNode[m_Tasks.Length - 1]; + Array.Copy(m_Tasks, dest, node.Index); + Array.Copy(m_Tasks, node.Index + 1, dest, node.Index, m_Tasks.Length - node.Index - 1); + m_Tasks = dest; + return true; + } + + /// + /// Adds the specified event node. + /// + /// The event node that should be added. + public void AddNode(IEventNode eventNode) + { + if (m_EventTasks == null) { + m_EventTasks = new IEventNode[1]; + } else { + Array.Resize(ref m_EventTasks, m_EventTasks.Length + 1); + } + m_EventTasks[m_EventTasks.Length - 1] = eventNode; + } + + /// + /// Removes the specified event node. + /// + /// The event node that should be removed. + /// True if the event node was removed. + public bool RemoveNode(IEventNode eventNode) + { + if (m_EventTasks == null) { + return false; + } + + var index = m_EventTasks.IndexOf(eventNode); + if (index == -1) { + return false; + } + + var dest = new IEventNode[m_EventTasks.Length - 1]; + Array.Copy(m_EventTasks, dest, index); + Array.Copy(m_EventTasks, index + 1, dest, index, m_EventTasks.Length - index - 1); + m_EventTasks = dest; + return true; + } + + /// + /// Serializes the behavior tree. + /// + public void Serialize() + { + m_TaskData = Serialization.Serialize(m_Tasks, ValidateSerializedObject); + m_EventTaskData = Serialization.Serialize(m_EventTasks, ValidateSerializedObject); + SerializeSharedVariables(); + m_DisabledEventNodesData = Serialization.Serialize(m_DisabledEventNodes); + m_DisabledLogicNodesData = Serialization.Serialize(m_DisabledLogicNodes); + m_UniqueID = Guid.NewGuid().GetHashCode(); + +#if UNITY_EDITOR + // Ensure the node data is up to date. + if (m_LogicNodeProperties != null) { + for (int i = 0; i < m_LogicNodeProperties.Length; ++i) { + var nodeData = m_LogicNodeProperties[i].Data; + nodeData.ParentIndex = m_Tasks[i].ParentIndex; + nodeData.SiblingIndex = m_Tasks[i].SiblingIndex; + nodeData.IsParent = m_Tasks[i] is IParentNode; + m_LogicNodeProperties[i].Data = nodeData; + } + } + m_LogicNodePropertiesData = Serialization.Serialize(m_LogicNodeProperties); + m_EventNodePropertiesData = Serialization.Serialize(m_EventNodeProperties); + m_GroupPropertiesData = Serialization.Serialize(m_GroupProperties); +#endif + } + + /// + /// Validates the serialized object. + /// + /// The type of object. + /// The field that the object belongs to. + /// The value of the object + /// The validated object. + public static Serialization.ValidatedObject ValidateSerializedObject(Type type, FieldInfo field, object value) + { + if (value == null) { + return new Serialization.ValidatedObject() { Type = type, Obj = value }; + } + + // Replace ILogicNode with ushort index values. + if (typeof(IList).IsAssignableFrom(type)) { + var elementType = Serializer.GetElementType(type); + if (typeof(ILogicNode).IsAssignableFrom(elementType)) { + if (field == null || field.GetCustomAttribute() == null) { + var tasks = value as IList; + if (tasks == null) { + return new Serialization.ValidatedObject() { Type = type, Obj = value }; + } + + var indexValues = new ushort[tasks.Count]; + for (int i = 0; i < indexValues.Length; ++i) { + indexValues[i] = ((ILogicNode)tasks[i]).Index; + } + return new Serialization.ValidatedObject() { Type = typeof(ushort[]), Obj = indexValues }; + } + } else if (Application.isPlaying && (typeof(GameObject).IsAssignableFrom(elementType) || typeof(Component).IsAssignableFrom(elementType))) { // Scene objects cannot be serialized at runtime. + var listValue = value as IList; + if (listValue != null) { + IList objects; + if (type.IsArray) { + objects = Array.CreateInstance(elementType, listValue.Count); + } else { + if (type.IsGenericType) { + objects = Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)) as IList; + } else { + objects = Activator.CreateInstance(type) as IList; + } + } + for (int i = 0; i < listValue.Count; ++i) { + GameObject gameObjectValue = null; + if (listValue[i] is Component componentValue) { + gameObjectValue = componentValue.gameObject; + } else { + gameObjectValue = listValue[i] as GameObject; + } + if (gameObjectValue != null && gameObjectValue.scene.IsValid()) { + if (type.IsArray) { + objects[i] = null; + } else { + objects.Add(null); + } + } else { + if (type.IsArray) { + objects[i] = listValue[i]; + } else { + objects.Add(listValue[i]); + } + } + } + listValue = objects; + } + return new Serialization.ValidatedObject() { Type = type, Obj = listValue }; + } + } else if (typeof(ILogicNode).IsAssignableFrom(type)) { + if (field == null || field.GetCustomAttribute() == null) { + return new Serialization.ValidatedObject() { Type = typeof(ushort), Obj = ((ILogicNode)value).Index }; + } + } else if (Application.isPlaying && (typeof(GameObject).IsAssignableFrom(type) || typeof(Component).IsAssignableFrom(type))) { // Scene objects cannot be serialized at runtime. + GameObject gameObjectValue = null; + if (value is Component componentValue) { + gameObjectValue = componentValue.gameObject; + } else { + gameObjectValue = value as GameObject; + } + if (gameObjectValue != null && gameObjectValue.scene.IsValid()) { + return new Serialization.ValidatedObject() { Type = type, Obj = null }; + } + } + return new Serialization.ValidatedObject() { Type = type, Obj = value }; + } + + /// + /// Serializes the SharedVariables. This allows the SharedVariables to be serialized independently. + /// + public void SerializeSharedVariables() + { + m_SharedVariableData = Serialization.Serialize(m_SharedVariables); + + // Update the mapping for any variable name changes. + if (m_VariableByNameMap == null) { + m_VariableByNameMap = new Dictionary(); + } else { + m_VariableByNameMap.Clear(); + } + if (m_SharedVariables != null) { + for (int i = 0; i < m_SharedVariables.Length; ++i) { + m_VariableByNameMap.Add(new VariableAssignment(m_SharedVariables[i].Name, m_SharedVariables[i].Scope), m_SharedVariables[i]); + } + } + } + + /// + /// Internal data structure for restoring a task reference after it has been deserialized. + /// + public struct TaskAssignment + { + [Tooltip("The field of the task.")] + public FieldInfo Field; + [Tooltip("The task that the field belongs to.")] + public object Target; + [Tooltip("The value of the field. This will be the task object that should be assigned after the tree has been loaded.")] + public object Value; + } + + /// + /// Deserialize the behavior tree. + /// + /// The component that the graph is being deserialized from. + /// The graph that is being deserialized. + /// Should the behavior tree be force deserialized? + /// Should the shared variables be force deserialized? + /// Should the subtrees be injected into the behavior tree? + /// Can the SharedVariables be deep copied? + /// A list of SharedVariables that should override the current SharedVariable value. + /// True if the tree was deserialized. + public bool Deserialize(IGraphComponent graphComponent, IGraph graph, bool force, bool injectSubtrees, bool canDeepCopyVariables = true, SharedVariableOverride[] sharedVariableOverrides = null) + { + // No need to deserialize if the data is already deserialized. + if ((m_Tasks != null || m_EventTasks != null || m_SharedVariables != null) && !force) { + if (Application.isPlaying && m_RuntimeUniqueID == 0) { + m_RuntimeUniqueID = m_UniqueID; + } + return true; + } + + return DeserializeInternal(graphComponent, graph, force, injectSubtrees, canDeepCopyVariables, sharedVariableOverrides); + } + + /// + /// Internal method which deserialize the behavior tree. + /// + /// The component that the graph is being deserialized from. + /// The graph that is being deserialized. + /// Should the behavior tree be force deserialized? + /// Should the subtrees be injected into the behavior tree? + /// Can the SharedVariables be deep copied? + /// A list of SharedVariables that should override the current SharedVariable value. + /// True if the tree was deserialized. + private bool DeserializeInternal(IGraphComponent graphComponent, IGraph graph, bool force, bool injectSubtrees, bool canDeepCopyVariables, SharedVariableOverride[] sharedVariableOverrides = null) + { + // Prevent the tree from being deserialized recusrively. + if (m_Deserializing) { + Debug.LogError($"Error: Unable to deserialize {graph}. This can be caused by recursive subtree references."); + return false; + } + + m_Deserializing = true; + m_RuntimeUniqueID = Application.isPlaying ? m_UniqueID : 0; + var errorState = false; +#if UNITY_EDITOR + // Deserialize the properties first so it can be used elsewhere. + if (m_LogicNodePropertiesData != null && m_LogicNodePropertiesData.Length > 0) { + m_LogicNodeProperties = new LogicNodeProperties[m_LogicNodePropertiesData.Length]; + for (int i = 0; i < m_LogicNodePropertiesData.Length; ++i) { + try { + m_LogicNodeProperties[i] = m_LogicNodePropertiesData[i].DeserializeFields(MemberVisibility.Public) as LogicNodeProperties; + } catch (Exception e) { + m_LogicNodeProperties[i] = new LogicNodeProperties(); + Debug.LogError($"Error: Unable to load task editor data at index {i} due to exception:\n{e}"); + } + } + } else { + m_LogicNodeProperties = null; + } + if (m_EventNodePropertiesData != null && m_EventNodePropertiesData.Length > 0) { + m_EventNodeProperties = new NodeProperties[m_EventNodePropertiesData.Length]; + for (int i = 0; i < m_EventNodePropertiesData.Length; ++i) { + m_EventNodeProperties[i] = m_EventNodePropertiesData[i].DeserializeFields(MemberVisibility.Public) as NodeProperties; + } + } else { + m_EventNodeProperties = null; + } + if (m_GroupPropertiesData != null && m_GroupPropertiesData.Length > 0) { + m_GroupProperties = new GroupProperties[m_GroupPropertiesData.Length]; + for (int i = 0; i < m_GroupPropertiesData.Length; ++i) { + m_GroupProperties[i] = m_GroupPropertiesData[i].DeserializeFields(MemberVisibility.Public) as GroupProperties; + } + } else { + m_GroupProperties = null; + } +#endif + DeserializeSharedVariables(force, sharedVariableOverrides); + m_VariableByNameMap = PopulateSharedVariablesMapping(graph, canDeepCopyVariables); + + // The disabled node indicies need to be deserialized before the nodes. + if (m_DisabledEventNodesData != null && m_DisabledEventNodesData.Length > 0 && m_EventTaskData != null) { + m_DisabledEventNodes = new ushort[m_DisabledEventNodesData.Length]; + var offset = 0; + for (int i = 0; i < m_DisabledEventNodesData.Length; ++i) { + m_DisabledEventNodes[i] = (ushort)m_DisabledEventNodesData[i].DeserializeFields(MemberVisibility.Public); + // The node index may no longer be valid. + if (m_DisabledEventNodes[i - offset] >= m_EventTaskData.Length) { + offset++; + } + } + if (offset > 0) { + Array.Resize(ref m_DisabledEventNodes, m_DisabledEventNodes.Length - offset); + } + } else { + m_DisabledEventNodes = null; + } + if (m_DisabledLogicNodesData != null && m_DisabledLogicNodesData.Length > 0 && m_TaskData != null) { + m_DisabledLogicNodes = new ushort[m_DisabledLogicNodesData.Length]; + var offset = 0; + for (int i = 0; i < m_DisabledLogicNodesData.Length; ++i) { + m_DisabledLogicNodes[i - offset] = (ushort)m_DisabledLogicNodesData[i].DeserializeFields(MemberVisibility.Public); + // The node index may no longer be valid. + if (m_DisabledLogicNodes[i - offset] >= m_TaskData.Length) { + offset++; + } + } + if (offset > 0) { + Array.Resize(ref m_DisabledLogicNodes, m_DisabledLogicNodes.Length - offset); + } + } else { + m_DisabledLogicNodes = null; + } + + ResizableArray taskReferences = null; + if (m_SubtreeNodesReference != null) { + m_SubtreeNodesReference.Clear(); + } + if (m_TaskData != null && m_TaskData.Length > 0) { + m_Tasks = new ILogicNode[m_TaskData.Length]; + for (int i = 0; i < m_TaskData.Length; ++i) { + try { + m_Tasks[i] = m_TaskData[i].DeserializeFields(MemberVisibility.Public, ValidateDeserializedTypeObject, (object fieldInfoObj, object task, object value) => + { + return ValidateDeserializedObject(fieldInfoObj, task, value, ref m_VariableByNameMap, ref taskReferences, sharedVariableOverrides); + }) as ILogicNode; + } catch (Exception e) { + Debug.LogError($"Error: Unable to load task {m_TaskData[i].ObjectType} at index {i} due to exception:\n{e}"); + } + + // Account for tasks where the object no longer exists. + if (m_Tasks[i] == null) { +#if UNITY_EDITOR + if (m_LogicNodeProperties[i].Data.IsParent) { + m_Tasks[i] = new UnknownParentTaskNode(m_TaskData[i].ObjectType); + } else { + m_Tasks[i] = new UnknownTaskNode(m_TaskData[i].ObjectType); + } + m_Tasks[i].Index = (ushort)i; + m_Tasks[i].ParentIndex = m_LogicNodeProperties[i].Data.ParentIndex; + m_Tasks[i].SiblingIndex = m_LogicNodeProperties[i].Data.SiblingIndex; +#else + if (i + 1 < m_Tasks.Length && m_Tasks[i + 1] != null && m_Tasks[i + 1].ParentIndex == i) { + m_Tasks[i] = new UnknownParentTaskNode(m_TaskData[i].ObjectType); + } else { + m_Tasks[i] = new UnknownTaskNode(m_TaskData[i].ObjectType); + } + m_Tasks[i].Index = (ushort)i; +#endif + } + + // The RuntimeIndex is assigned later when the tree is initialized. + m_Tasks[i].RuntimeIndex = ushort.MaxValue; + +#if UNITY_EDITOR + // Sanity checks. + if (m_Tasks[i].Index >= m_TaskData.Length) { m_Tasks[i].Index = (ushort)i; } + if (m_Tasks[i].ParentIndex != ushort.MaxValue && m_Tasks[i].ParentIndex >= m_TaskData.Length) { m_Tasks[i].ParentIndex = ushort.MaxValue; } + if (m_Tasks[i].SiblingIndex != ushort.MaxValue && m_Tasks[i].SiblingIndex >= m_TaskData.Length) { m_Tasks[i].SiblingIndex = ushort.MaxValue; } +#endif + + if (injectSubtrees) { + // If the previous task is a parent the current task has to be a child otherwise the tree is in an error state. The error will also occur + // if there is only one task and that task is a parent task. + if ((m_Tasks[i].ParentIndex != ushort.MaxValue && (i > 0 && m_Tasks[i - 1] is IParentNode && m_Tasks[i].ParentIndex != m_Tasks[i - 1].Index)) || (m_Tasks[i] is IParentNode && i + 1 == m_Tasks.Length)) { + Debug.LogError($"Error: {graph} contains the parent task {m_Tasks[i].GetType().Name} which does not have any children. All parent tasks must contain at least one child.", graph.Parent); + errorState = true; + continue; + } + + // Subtrees will be evaluated after all tasks are assigned. + if (m_Tasks[i] is ISubtreeReference subtreeReference) { + // Subtrees can be nested. + subtreeReference.EvaluateSubtrees(graphComponent); + var subtrees = subtreeReference.Subtrees; + if (subtrees != null) { + // The parent must be able to accept the number of subtrees that there are. + var parentIndex = m_Tasks[i].ParentIndex; + IParentNode parentNode = null; + if (parentIndex != ushort.MaxValue) { + parentNode = m_Tasks[parentIndex] as IParentNode; + } + + if ((parentNode == null && subtrees.Length > 1) || (parentNode != null && subtrees.Length > parentNode.MaxChildCount)) { + Debug.LogError($"Error: {graph} on object {graph.Parent} contains multiple subtrees as the starting task or as a child of a parent task which cannot contain so many children (such as a decorator).", graph.Parent); + errorState = true; + continue; + } + + var deserializedNodes = new ILogicNode[subtrees.Length][]; + for (int j = 0; j < subtrees.Length; ++j) { + if (subtrees[j] == null) { + continue; + } + if (!subtrees[j].Deserialize(graphComponent, force, true, true, subtreeReference.SharedVariableOverrides)) { + errorState = true; + break; + }; + // Keep a reference to the deserialized nodes. This will ensure they are unique and do not get overwritten. + deserializedNodes[j] = subtrees[j].LogicNodes; + + // Add any new subtree variables to the current tree. + if (subtrees[j].SharedVariables != null) { + // In order to reduce allocations the first loop will determine the number of variables that need to be added. + var length = subtrees[j].SharedVariables.Length; + var variableCount = 0; + for (int k = 0; k < length; ++k) { + var subtreeVariable = subtrees[j].SharedVariables[k]; + if (GetVariable(graph, subtreeVariable.Name, SharedVariable.SharingScope.Graph) == null) { + variableCount++; + } + } + + // And the second loop will actually add the variables. + if (variableCount > 0) { + var insertIndex = 0; + if (m_SharedVariables == null) { + m_SharedVariables = new SharedVariable[variableCount]; + m_VariableByNameMap = new Dictionary(); + } else { + insertIndex = m_SharedVariables.Length; + Array.Resize(ref m_SharedVariables, m_SharedVariables.Length + variableCount); + } + for (int k = 0; k < length; ++k) { + var subtreeVariable = subtrees[j].SharedVariables[k]; + if (!m_VariableByNameMap.ContainsKey(new VariableAssignment(subtreeVariable.Name, SharedVariable.SharingScope.Graph))) { + m_SharedVariables[insertIndex] = subtreeVariable; + m_VariableByNameMap.Add(new VariableAssignment(subtreeVariable.Name, SharedVariable.SharingScope.Graph), subtreeVariable); + insertIndex++; + } + } + } + } + } + + // Do not add the subtree if it causes an error. + if (!errorState) { + if (m_SubtreeNodesReference == null) { m_SubtreeNodesReference = new ResizableArray(); } + m_SubtreeNodesReference.Add(new SubtreeNodesReference() + { + SubtreeReference = subtreeReference, + NodeIndex = (ushort)i, + Subtrees = subtrees, + Nodes = deserializedNodes + }); + } + } + } + } + } + } else { + m_Tasks = null; + } + + // Subtrees should be injected into the tree. + InjectSubtrees(); + + // Add the event tasks after the subtrees have been injected to ensure the connected index is correct. + if (m_EventTaskData != null && m_EventTaskData.Length > 0) { + m_EventTasks = new IEventNode[m_EventTaskData.Length]; + for (int i = 0; i < m_EventTaskData.Length; ++i) { + m_EventTasks[i] = m_EventTaskData[i].DeserializeFields(MemberVisibility.Public, ValidateDeserializedTypeObject, (object fieldInfoObj, object task, object value) => + { + return ValidateDeserializedObject(fieldInfoObj, task, value, ref m_VariableByNameMap, ref taskReferences); + }) as IEventNode; + + if (m_SubtreeNodesReference != null) { + // A subtree may have injected nodes before the originally connected index. Modify the index to match the injection. + var offset = 0; + for (int j = 0; j < m_SubtreeNodesReference.Count; ++j) { + if (m_SubtreeNodesReference[j].NodeIndex >= m_EventTasks[i].ConnectedIndex) { + break; + } + offset += m_SubtreeNodesReference[j].NodeCount - 1; + } + if (offset != 0) { + m_EventTasks[i].ConnectedIndex += (ushort)offset; + } + } + + if (m_EventTasks[i] == null) { + m_EventTasks[i] = new UnknownEventTask(); + } + } + } else { + m_EventTasks = null; + } + + // After the tree has been deserialized the task references need to be assigned. + AssignTaskReferences(m_Tasks, taskReferences); + + m_Deserializing = false; + + return !errorState; + } + + /// + /// Validates the object type when deserializing. + /// + /// The type of object that should be validated. + /// The field that contains the object. + /// The validated type. + public static Type ValidateDeserializedTypeObject(Type type, FieldInfo field) + { + if (typeof(IList).IsAssignableFrom(type)) { + var elementType = Serializer.GetElementType(type); + if (typeof(ILogicNode).IsAssignableFrom(elementType) && (field == null || field.GetCustomAttribute() == null)) { + return typeof(ushort[]); + } + } else if (typeof(ILogicNode).IsAssignableFrom(type) && (field == null || field.GetCustomAttribute() == null)) { + return typeof(ushort); + } + return type; + } + + /// + /// Validates the object when deserializing. + /// + /// The FieldInfo that is being deserialized. + /// The object being deserialized. + /// The value of the field. + /// A reference to the map between the VariableAssignment and SharedVariable. + /// A reference to the list of task references that need to be resolved later. + /// A list of SharedVariables that should override the current SharedVariable value. + /// The validated object. + public static object ValidateDeserializedObject(object fieldInfoObj, object target, object value, ref Dictionary variableByNameMap, + ref ResizableArray taskReferences, SharedVariableOverride[] sharedVariableOverrides = null) + { + var fieldInfo = fieldInfoObj as FieldInfo; + if (fieldInfo == null) { + return value; + } + + var type = fieldInfo.FieldType; + if (value == null) { + // A SharedVariable object should always exist. + if (!type.IsAbstract && typeof(SharedVariable).IsAssignableFrom(type)) { + return Activator.CreateInstance(type); + } + return null; + } + + if (typeof(IList).IsAssignableFrom(type)) { + var elementType = Serializer.GetElementType(type); + if (typeof(ILogicNode).IsAssignableFrom(elementType) && fieldInfo.GetCustomAttribute() == null) { + // The task reference will be assigned after all of the tasks have been deserialized. + if (taskReferences == null) { taskReferences = new ResizableArray(); } + taskReferences.Add(new TaskAssignment() { Field = fieldInfo, Target = target, Value = value }); + } else if (typeof(SharedVariable).IsAssignableFrom(elementType)) { + var listValue = value as IList; + if (listValue != null) { + for (int i = 0; i < listValue.Count; ++i) { + var sharedVariableElement = listValue[i] as SharedVariable; + if (variableByNameMap != null && sharedVariableElement != null && !string.IsNullOrEmpty(sharedVariableElement.Name)) { + if (variableByNameMap.TryGetValue(new VariableAssignment(sharedVariableElement.Name, sharedVariableElement.Scope), out var mappedSharedVariable)) { + if (Application.isPlaying && sharedVariableElement.Scope == SharedVariable.SharingScope.Dynamic && sharedVariableElement.GetType() != mappedSharedVariable.GetType()) { + Debug.LogError($"Error: The dynamic variables with name {sharedVariableElement.Name} have different types. All dynamic variables must have the same type."); + listValue[i] = sharedVariableElement; + } else { + listValue[i] = GetOverrideVariable(sharedVariableOverrides, mappedSharedVariable, false); + } + } else if (sharedVariableElement.Scope == SharedVariable.SharingScope.Dynamic) { + // New dynamic variables should have the default value. + var sharedVariableValueType = sharedVariableElement.GetType().GetGenericArguments()[0]; + if (sharedVariableValueType.IsValueType) { + sharedVariableElement.SetValue(Activator.CreateInstance(sharedVariableValueType)); + } else { + sharedVariableElement.SetValue(null); + } + + // Dynamic variables are created when the task is deserialized. The variable needs to be added to the mapping so it can be reused. + variableByNameMap.Add(new VariableAssignment(sharedVariableElement.Name, sharedVariableElement.Scope), sharedVariableElement); + listValue[i] = sharedVariableElement; + } + } + + } + return listValue; + } + } + } else if (typeof(ILogicNode).IsAssignableFrom(type) && fieldInfo.GetCustomAttribute() == null) { + // The task reference will be assigned after all of the tasks have been deserialized. + if (taskReferences == null) { taskReferences = new ResizableArray(); } + taskReferences.Add(new TaskAssignment() { Field = fieldInfo, Target = target, Value = value }); + } else if (typeof(SharedVariable).IsAssignableFrom(type)) { + var sharedVariable = value as SharedVariable; + if (variableByNameMap != null && sharedVariable != null && !string.IsNullOrEmpty(sharedVariable.Name)) { + if (variableByNameMap.TryGetValue(new VariableAssignment(sharedVariable.Name, sharedVariable.Scope), out var mappedSharedVariable)) { + if (Application.isPlaying && sharedVariable.Scope == SharedVariable.SharingScope.Dynamic && sharedVariable.GetType() != mappedSharedVariable.GetType()) { + Debug.LogError($"Error: The dynamic variables with name {sharedVariable.Name} have different types. Dynamic variables with the same name must have the same type."); + return sharedVariable; + } + return GetOverrideVariable(sharedVariableOverrides, mappedSharedVariable, false); + } else if (Application.isPlaying && sharedVariable.Scope == SharedVariable.SharingScope.Dynamic) { + // New dynamic variables should have the default value. + var sharedVariableValueType = sharedVariable.GetType().GetGenericArguments()[0]; + if (sharedVariableValueType.IsValueType) { + sharedVariable.SetValue(Activator.CreateInstance(sharedVariableValueType)); + } else { + sharedVariable.SetValue(null); + } + + // Dynamic variables are created when the task is deserialized. The variable needs to be added to the mapping so it can be reused. + variableByNameMap.Add(new VariableAssignment(sharedVariable.Name, sharedVariable.Scope), sharedVariable); + return sharedVariable; + } + } + } + + return value; + } + + /// + /// Deserializes the SharedVariables. This allows the SharedVariables to be deserialized independently. + /// + /// Should the variables be forced deserialized? + /// A list of SharedVariables that should override the current SharedVariable value. + /// True if the SharedVariables were deserialized. + public bool DeserializeSharedVariables(bool force, SharedVariableOverride[] sharedVariableOverrides = null) + { + // No need to deserialize if the data is already deserialized. + if (m_SharedVariables != null && !force) { + return false; + } + + if (m_SharedVariableData != null && m_SharedVariableData.Length > 0) { + m_SharedVariables = new SharedVariable[m_SharedVariableData.Length]; + for (int i = 0; i < m_SharedVariableData.Length; ++i) { + try { + m_SharedVariables[i] = m_SharedVariableData[i].DeserializeFields(MemberVisibility.Public) as SharedVariable; + } catch (Exception e) { + Debug.LogError($"Error: Unable to load variable {m_SharedVariableData[i].ObjectType} at index {i} due to exception:\n{e}"); + } + + if (m_SharedVariables[i] == null) { + m_SharedVariables[i] = new UnknownSharedVariable(); + m_SharedVariables[i].Name = m_SharedVariableData[i].ObjectType + UnityEngine.Random.value; + + Debug.LogError($"Error: Unable to deserialize SharedVariable of type {m_SharedVariableData[i].ObjectType}."); + continue; + } + + // The override variable can set a value specific for the subtree. + if (Application.isPlaying) { + m_SharedVariables[i].Initialize(); + + var overrideVariable = GetOverrideVariable(sharedVariableOverrides, m_SharedVariables[i], true); + // If the overridden scope is self then only the value should be overridden and not the SharedVariable reference. + if (overrideVariable != null && overrideVariable.Scope == SharedVariable.SharingScope.Self) { + m_SharedVariables[i].SetValue(overrideVariable.GetValue()); + } + } + } + } else { + m_SharedVariables = null; + } + + return true; + } + + /// + /// Returns the override SharedVariable from the source SharedVariable. + /// + /// The list of override SharedVariables. + /// The variable that should be overridden. + /// Is the method being called when the variables are being deserialized? + /// The override SharedVariable (can be null). + private static SharedVariable GetOverrideVariable(SharedVariableOverride[] sharedVariableOverrides, SharedVariable graphVariable, bool deserialize) + { + if (sharedVariableOverrides == null) { + return deserialize ? null : graphVariable; + } + + for (int i = 0; i < sharedVariableOverrides.Length; ++i) { + var overrideVariable = sharedVariableOverrides[i].Override; + // Empty variables indicate that the variable should not be overridden. + if (overrideVariable == null || overrideVariable.Scope == SharedVariable.SharingScope.Empty) { + continue; + } + + // The override variable should be used if the name and the type matches. + var sourceVariable = sharedVariableOverrides[i].Source; + if (sourceVariable.GetType() != graphVariable.GetType() || sourceVariable.Name != graphVariable.Name) { + continue; + } + + // If the scope is self then the graphVariable value should be updated instead of completely replaced. + if (overrideVariable.Scope == SharedVariable.SharingScope.Self) { + graphVariable.SetValue(overrideVariable.GetValue()); + return graphVariable; + } + + return overrideVariable; + } + + return graphVariable; + } + + /// + /// Internal data structure for referencing a SharedVariable to its name/scope. + /// + public struct VariableAssignment + { + [Tooltip("The name of the SharedVariable.")] + public string Name; + [Tooltip("The scope of the SharedVariable.")] + public SharedVariable.SharingScope Scope; + + /// + /// VariableAssignment constructor. + /// + /// The name of the SharedVariable. + /// The scope of the SharedVariable. + public VariableAssignment(string name, SharedVariable.SharingScope scope) + { + Name = name; + Scope = scope; + } + } + + /// + /// Populates the SharedVariable Mapping at runtime. + /// + /// The graph that is being deserialized. + /// Can the SharedVariables be deep copied? + /// A reference to the map between the VariableAssignment and SharedVariable. + public static Dictionary PopulateSharedVariablesMapping(IGraph graph, bool canDeepCopy) + { + var variableByNameMap = new Dictionary(); + PopulateSharedVariablesMapping(graph, graph.SharedVariables, SharedVariable.SharingScope.Graph, canDeepCopy, ref variableByNameMap); + + if (graph.Parent is GameObject parentGameObject) { + var gameObjectSharedVariablesContainer = parentGameObject.GetComponent(); + if (gameObjectSharedVariablesContainer != null) { + gameObjectSharedVariablesContainer.Deserialize(false); + PopulateSharedVariablesMapping(graph, gameObjectSharedVariablesContainer.SharedVariables, SharedVariable.SharingScope.GameObject, canDeepCopy, ref variableByNameMap); + } + } + + var sceneSharedVariablesContainer = SceneSharedVariables.Instance; + if (sceneSharedVariablesContainer != null) { + sceneSharedVariablesContainer.Deserialize(false); + PopulateSharedVariablesMapping(graph, sceneSharedVariablesContainer.SharedVariables, SharedVariable.SharingScope.Scene, canDeepCopy, ref variableByNameMap); + } + + var projectSharedVariablesContainer = ProjectSharedVariables.Instance; + if (projectSharedVariablesContainer != null) { + projectSharedVariablesContainer.Deserialize(false); + PopulateSharedVariablesMapping(graph, projectSharedVariablesContainer.SharedVariables, SharedVariable.SharingScope.Project, canDeepCopy, ref variableByNameMap); + } + return variableByNameMap; + } + + /// + /// Populates the name variables mapping with the specified SharedVariables. + /// + /// The graph that is being deserialized. + /// The SharedVariables that should be populated. + /// The scope of SharedVariables. + /// Can the SharedVariables be deep copied? + /// A reference to the map between the VariableAssignment and SharedVariable. + private static void PopulateSharedVariablesMapping(IGraph graph, SharedVariable[] sharedVariables, SharedVariable.SharingScope scope, bool canDeepCopy, ref Dictionary variableByNameMap) + { + if (sharedVariables == null) { + return; + } + + for (int i = 0; i < sharedVariables.Length; ++i) { + if (sharedVariables[i] == null) { + continue; + } + if (variableByNameMap.ContainsKey(new VariableAssignment(sharedVariables[i].Name, scope))) { +#if UNITY_EDITOR + Debug.LogWarning("Warning: Multiple SharedVariables with the same name have been added. Please email support@opsive.com with the steps to reproduce this warning. Thank you."); +#endif + continue; + } + var deepCopy = canDeepCopy && graph is Subtree && scope == SharedVariable.SharingScope.Graph; // Deep copy variables so the instance is not bound to the subtree. + variableByNameMap.Add(new VariableAssignment(sharedVariables[i].Name, scope), deepCopy ? CopyUtility.DeepCopy(sharedVariables[i]) as SharedVariable : sharedVariables[i]); + } + } + + /// + /// When the behavior tree loads not all tasks will be deserialized instantly. TaskA may reference TaskB but TaskB hasn't + /// been deserialized yet. The TaskAssignment data structure will store all of the references that need to be restored after + /// the behavior tree has fully been deserialized. + /// + /// The tasks that belong to the graph. + /// The tasks that should be referenced. + public static void AssignTaskReferences(ILogicNode[] tasks, ResizableArray taskReferences) + { + if (taskReferences == null) { + return; + } + + for (int i = 0; i < taskReferences.Count; ++i) { + var taskReference = taskReferences[i]; + var fieldType = taskReference.Field.FieldType; + object value = null; + + // The field can be a list or single value. + if (typeof(IList).IsAssignableFrom(fieldType)) { + var elements = (IList)taskReferences[i].Value; + if (fieldType.IsArray) { + // The field type is an array. Create a new array with all of the task instances. + var array = Array.CreateInstance(Serializer.GetElementType(fieldType), elements.Count) as ILogicNode[]; + for (int j = 0; j < array.Length; ++j) { + var index = (ushort)elements[j]; + if (index < tasks.Length) { + array[j] = tasks[index]; + } + } + value = array; + } else { + // The field type is a list. Create a new list with all of the task instances. + IList taskList; + if (fieldType.IsGenericType) { + taskList = Activator.CreateInstance(typeof(List<>).MakeGenericType(Serializer.GetElementType(fieldType))) as IList; + } else { + taskList = Activator.CreateInstance(fieldType) as IList; + } + + for (int j = 0; j < elements.Count; ++j) { + var index = (ushort)elements[j]; + if (index < tasks.Length) { + taskList.Add(tasks[index]); + } + } + value = taskList; + } + } else { // Single ILogicNode value. + var index = (ushort)taskReference.Value; + if (index < tasks.Length) { + value = tasks[index]; + } + } + if (value != null) { + taskReference.Field.SetValue(taskReference.Target, value); + } + } + } + + /// + /// Contains a reference to the subtree index and nodes. + /// + internal struct SubtreeNodesReference + { + [Tooltip("The ISubtreeReference.")] + public ISubtreeReference SubtreeReference; + [Tooltip("The index of the ISubtreeReference.")] + public ushort NodeIndex; + [Tooltip("The total number of nodes contained within the ISubtreeReference.")] + public ushort NodeCount; + [Tooltip("A reference to the subtrees that are loaded.")] + public Subtree[] Subtrees; + [Tooltip("The deserialized nodes.")] + public ILogicNode[][] Nodes; + } + + /// + /// Data structure which contains the properties for a subtree that will be injected. + /// + private struct SubtreeAssignment + { + [Tooltip("The index of the SubtreeNodesReference element.")] + public int ReferenceIndex; + [Tooltip("The index of the ISubtreeReference task.")] + public ushort NodeIndex; + [Tooltip("The index of the Subtree.")] + public int SubtreeIndex; + [Tooltip("The subtree that the task references.")] + public Subtree Subtree; + [Tooltip("The offset of the index. This will change as subtrees are added.")] + public ushort IndexOffset; + [Tooltip("The original parent index of the ISubtreeReference task.")] + public ushort ParentIndex; + [Tooltip("The original sibling index of the ISubtreeReference task.")] + public ushort SiblingIndex; + [Tooltip("The number of nodes that are a child of the ISubtreeReference.")] + public ushort NodeCount; +#if UNITY_EDITOR + [Tooltip("The position of the ISubtreeReference task.")] + public Vector2 NodePropertiesPosition; + [Tooltip("Is the ISubtreeReference task collapsed?")] + public bool Collapsed; +#endif + } + + /// + /// Injects the subtree into the task list. + /// + private void InjectSubtrees() + { + if (m_SubtreeNodesReference == null || m_SubtreeNodesReference.Count == 0) { + return; + } + + // The behavior tree must generate a new ID when subtrees are injected. + m_RuntimeUniqueID = Guid.NewGuid().GetHashCode(); + + var taskCount = 0; + var subtreeReferenceCount = 0; + var subtreeAssignments = new ResizableArray(); + var lastParentIndex = m_Tasks[m_SubtreeNodesReference[0].NodeIndex].ParentIndex; + var parentIndexOffset = 0; + for (int i = 0; i < m_SubtreeNodesReference.Count; ++i) { + var subtreeReference = m_Tasks[m_SubtreeNodesReference[i].NodeIndex] as ISubtreeReference; + var subtrees = subtreeReference.Subtrees; + if (subtrees != null) { + var indexOffset = (ushort)0; // The index offset is relative to each individual ISubtreeReference task. + + // The parent index will change based on the number of tasks that have been added. + var parentIndex = m_Tasks[m_SubtreeNodesReference[i].NodeIndex].ParentIndex; + if (parentIndex != ushort.MaxValue && (parentIndex > lastParentIndex || (i > 0 && lastParentIndex == ushort.MaxValue))) { + parentIndexOffset = (ushort)(taskCount - subtreeReferenceCount); + lastParentIndex = parentIndex; + } + + // Calculate the parent index offset based on previously injected subtrees + for (int j = 0; j < subtrees.Length; ++j) { + if (subtrees[j] == null || subtrees[j].LogicNodes == null || subtrees[j].EventNodes == null) { + continue; + } + + // The subtree should start from the start node. + var startNode = subtrees[j].GetEventNode(typeof(Start)); // Returns (IEventNode, index). + if (startNode.Item1 == null || startNode.Item1.ConnectedIndex == ushort.MaxValue || !subtrees[j].IsNodeEnabled(false, startNode.Item2)) { + continue; + } + + var firstNode = m_SubtreeNodesReference[i].Nodes[j][startNode.Item1.ConnectedIndex]; + var subtreeNodeCount = GetChildCount(firstNode, m_SubtreeNodesReference[i].Nodes[j]) + 1; // firstNode should be included in addition to the children. + taskCount += subtreeNodeCount; + subtreeAssignments.Add(new SubtreeAssignment() + { + ReferenceIndex = i, + NodeIndex = m_SubtreeNodesReference[i].NodeIndex, + SubtreeIndex = j, + Subtree = subtrees[j], + NodeCount = (ushort)subtreeNodeCount, + IndexOffset = indexOffset, + ParentIndex = (ushort)(parentIndex + parentIndexOffset), + SiblingIndex = m_Tasks[m_SubtreeNodesReference[i].NodeIndex].SiblingIndex, +#if UNITY_EDITOR + NodePropertiesPosition = m_LogicNodeProperties[m_SubtreeNodesReference[i].NodeIndex].Position, + Collapsed = m_LogicNodeProperties[m_SubtreeNodesReference[i].NodeIndex].Collapsed +#endif + }); + indexOffset += (ushort)subtreeNodeCount; + } + + // Update the parent index offset for the next subtree reference + if (indexOffset > 0) { // Subtree References may not contain any valid subtrees. + subtreeReferenceCount++; + } + var subtreeNodesReferenceOrig = m_SubtreeNodesReference[i]; + subtreeNodesReferenceOrig.NodeCount = indexOffset; + m_SubtreeNodesReference[i] = subtreeNodesReferenceOrig; + } + } + + if (taskCount == 0) { + return; + } + + var targetCount = m_Tasks.Length + taskCount - subtreeReferenceCount; + var originalTaskCount = m_Tasks.Length; + if (m_Tasks.Length != targetCount) { + Array.Resize(ref m_Tasks, targetCount); +#if UNITY_EDITOR + Array.Resize(ref m_LogicNodeProperties, targetCount); +#endif + } + + // Make space for all of the subtree tasks. + var addedTasks = 0; + for (int i = 0; i < subtreeAssignments.Count; ++i) { + var subtreeIndex = (ushort)(subtreeAssignments[i].NodeIndex + addedTasks); + var subtreeTaskCount = subtreeAssignments[i].NodeCount - (subtreeAssignments[i].IndexOffset == 0 ? 1 : 0); + if (subtreeTaskCount > 0) { // subtreeTaskCount will be zero if a single task replaces the reference task. + for (int j = originalTaskCount - 1 + addedTasks; j > subtreeIndex; --j) { + var node = m_Tasks[j]; + node.Index += (ushort)subtreeTaskCount; + if (node.ParentIndex > subtreeIndex && node.ParentIndex != ushort.MaxValue) { + node.ParentIndex += (ushort)subtreeTaskCount; + } + if (node.SiblingIndex > subtreeIndex && node.SiblingIndex != ushort.MaxValue) { + node.SiblingIndex += (ushort)subtreeTaskCount; + } + m_Tasks[j + subtreeTaskCount] = node; + m_Tasks[j] = null; +#if UNITY_EDITOR + m_LogicNodeProperties[j + subtreeTaskCount] = m_LogicNodeProperties[j]; +#endif + } + + // The parents need to adjust their sibling index offsets for the newly added nodes. This should only be done with an index offset of 0 + // as grouped subtrees have the same parents. + if (subtreeAssignments[i].IndexOffset == 0) { + var parentIndex = m_Tasks[subtreeIndex].ParentIndex; + while (parentIndex != ushort.MaxValue) { + var parentNode = m_Tasks[parentIndex]; + if (parentNode.SiblingIndex != ushort.MaxValue) { + parentNode.SiblingIndex += (ushort)subtreeTaskCount; + m_Tasks[parentIndex] = parentNode; + } + parentIndex = parentNode.ParentIndex; + } + } + + // Any disabled nodes after the insertion needs to shift. + var lastDisabledNodeIndex = 0; + if (m_DisabledLogicNodes != null) { + for (int j = 0; j < m_DisabledLogicNodes.Length; ++j) { + if (m_DisabledLogicNodes[j] > subtreeIndex) { + m_DisabledLogicNodes[j] += (ushort)subtreeTaskCount; + } else { // Remember the last index that was greater than the subtree index so any disabled subtree nodes can be inserted. + lastDisabledNodeIndex = j + 1; + } + } + } + + // If the parent reference task is disabled then all subtree nodes should be disabled. + var subtreeDisabledLogicNodes = subtreeAssignments[i].Subtree.DisabledLogicNodes; + if (!IsNodeEnabled(true, m_SubtreeNodesReference[subtreeAssignments[i].ReferenceIndex].NodeIndex)) { + subtreeDisabledLogicNodes = new ushort[subtreeAssignments[i].NodeCount]; + for (ushort j = 0; j < subtreeDisabledLogicNodes.Length; ++j) { + subtreeDisabledLogicNodes[j] = j; + } + } + + // The subtree may have disabled tasks. + if (subtreeDisabledLogicNodes != null && subtreeDisabledLogicNodes.Length > 0) { + var subtreeDisabledLength = subtreeDisabledLogicNodes.Length; + // Ensure all of the disabled logic nodes have been transferred. + for (int j = subtreeDisabledLength - 1; j >= 0; --j) { + if (subtreeDisabledLogicNodes[j] > subtreeTaskCount) { + subtreeDisabledLength--; + } + } + + if (subtreeDisabledLength > 0) { + if (m_DisabledLogicNodes == null) { + m_DisabledLogicNodes = new ushort[subtreeDisabledLength]; + } else { + Array.Resize(ref m_DisabledLogicNodes, m_DisabledLogicNodes.Length + subtreeDisabledLength); + } + var originalLength = m_DisabledLogicNodes.Length - subtreeDisabledLength; + for (int j = lastDisabledNodeIndex; j < originalLength; ++j) { + m_DisabledLogicNodes[j + subtreeDisabledLength] = m_DisabledLogicNodes[j]; + } + for (int j = 0; j < subtreeDisabledLength; ++j) { + if (subtreeDisabledLogicNodes[j] > subtreeTaskCount) { + continue; + } + m_DisabledLogicNodes[lastDisabledNodeIndex + j] = (ushort)(subtreeIndex + subtreeDisabledLogicNodes[j]); + } + } + } + } + // Tasks were added to the tree. Update the tree to the correct indicies. + var subtreeAssignment = subtreeAssignments[i]; + subtreeAssignment.IndexOffset = (ushort)(addedTasks + (subtreeAssignments[i].IndexOffset == 0 ? 0 : 1)); + subtreeAssignments[i] = subtreeAssignment; + + addedTasks += subtreeTaskCount; + } + + // Populate the tasks with the subtree. + for (int i = 0; i < subtreeAssignments.Count; ++i) { + var subtreeIndex = (ushort)(subtreeAssignments[i].NodeIndex + subtreeAssignments[i].IndexOffset); + var subtreeParentIndex = subtreeAssignments[i].ParentIndex; +#if UNITY_EDITOR + var positionOffset = Vector2.zero; +#endif + for (int j = 0; j < subtreeAssignments[i].NodeCount; ++j) { + var origNode = m_SubtreeNodesReference[subtreeAssignments[i].ReferenceIndex].Nodes[subtreeAssignments[i].SubtreeIndex][j]; + // The node needs to be copied to prevent the same node from being used in multiple trees. + var node = CopyUtility.DeepCopy(m_SubtreeNodesReference[subtreeAssignments[i].ReferenceIndex].Nodes[subtreeAssignments[i].SubtreeIndex][j]) as ILogicNode; + node.Index = (ushort)(subtreeIndex + j); + node.RuntimeIndex = ushort.MaxValue; + if (j == 0) { + node.ParentIndex = subtreeParentIndex; + subtreeParentIndex = node.Index; // The subsequent subtree tasks should use the first subtree task as the parent reference. + node.SiblingIndex = subtreeAssignments[i].SiblingIndex != ushort.MaxValue ? (ushort)(subtreeIndex + subtreeAssignments[i].NodeCount) : ushort.MaxValue; + } else { + // Adjust the subsequent subtree tasks by the location of the insertion. + node.ParentIndex += subtreeParentIndex; + if (node.SiblingIndex != ushort.MaxValue) { + node.SiblingIndex += subtreeIndex; + } + } + m_Tasks[subtreeIndex + j] = node; +#if UNITY_EDITOR + var nodeProperties = CopyUtility.DeepCopy(subtreeAssignments[i].Subtree.LogicNodeProperties[j]) as LogicNodeProperties; + nodeProperties.GuidString = Guid.NewGuid().ToString(); + if (j == 0) { + // Keep the tasks in the same relative position as the subtree reference. + positionOffset = subtreeAssignments[i].NodePropertiesPosition - subtreeAssignments[i].Subtree.LogicNodeProperties[j].Position; + } else { + // Apply a small offset for stacked subtrees so they are not directly overlapping. + positionOffset += new Vector2(2, 2); + } + nodeProperties.Position += positionOffset; + nodeProperties.Collapsed = subtreeAssignments[i].Collapsed; + m_LogicNodeProperties[subtreeIndex + j] = nodeProperties; +#endif + } + } + } + + /// + /// Returns the Node of the specified type. + /// + /// The type of Node that should be retrieved. + /// The Node of the specified type (can be null). + public ILogicNode GetNode(Type type) + { + if (m_Tasks == null) { + return null; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i].GetType() == type) { + return m_Tasks[i]; + } + } + return null; + } + + /// + /// Returns the event node of the specified type. + /// + /// The type of EventNode that should be retrieved. + /// The EventNode of the specified type (can be null). If the node is found the index will also be returned. + public (IEventNode, ushort) GetEventNode(Type type) + { + if (m_EventTasks == null) { + return (null, ushort.MaxValue); + } + + for (ushort i = 0; i < m_EventTasks.Length; ++i) { + if (m_EventTasks[i].GetType() == type) { + return (m_EventTasks[i], i); + } + } + return (null, ushort.MaxValue); + } + + /// + /// Returns the total number of children belonging to the specified node. + /// + /// The node to retrieve the child count of. + /// All of the nodes that belong to the graph. + /// The total number of children belonging to the specified node. + public int GetChildCount(ILogicNode node, ILogicNode[] nodes) + { + if (node.SiblingIndex != ushort.MaxValue) { + return node.SiblingIndex - node.Index - 1; + } + + if (node.Index + 1 == nodes.Length) { + return 0; + } + + var child = nodes[node.Index + 1]; + if (child.ParentIndex != node.Index) { + return 0; + } + + // Determine the child count based off of the sibling index. + while (child.SiblingIndex != ushort.MaxValue) { + child = nodes[child.SiblingIndex]; + } + + return child.Index - node.Index + GetChildCount(child, nodes); + } + + /// + /// Reevaluates the SubtreeReferences by calling the EvaluateSubtrees method. + /// + /// The component that the graph is being deserialized from. + /// The graph that is being reevaluated. + /// Action that should be done before the tasks are swapped. + /// True if the subtree was reevaluated. + public bool ReevaluateSubtreeReferences(IGraphComponent graphComponent, IGraph graph, Action onBeforeReevaluationSwap) + { + // The tree must contain tasks. + if (!Application.isPlaying || m_Tasks == null || m_Tasks.Length == 0) { + return false; + } + + // Subtree references must exist. + if (m_SubtreeNodesReference == null || m_SubtreeNodesReference.Count == 0) { + return false; + } + + if (onBeforeReevaluationSwap != null) { + onBeforeReevaluationSwap(); + } + + // Find the new reevaluated nodes. + for (int i = m_SubtreeNodesReference.Count - 1; i >= 0; --i) { + var subtreeNodesReference = m_SubtreeNodesReference[i]; + var subtreeReference = m_SubtreeNodesReference[i].SubtreeReference; + subtreeReference.EvaluateSubtrees(graphComponent); + var reevaluatedSubtrees = subtreeReference.Subtrees; + ILogicNode[][] reevaluatedNodes; + if (reevaluatedSubtrees == null) { + continue; + } + + // The parent must be able to accept the number of subtrees that there are. + var parentIndex = m_Tasks[m_SubtreeNodesReference[i].NodeIndex].ParentIndex; + IParentNode parentNode = null; + if (parentIndex != ushort.MaxValue) { + parentNode = m_Tasks[parentIndex] as IParentNode; + } + + if ((parentNode == null && reevaluatedSubtrees.Length > 1) || (parentNode != null && reevaluatedSubtrees.Length > parentNode.MaxChildCount)) { + Debug.LogError($"Error: the reevaluated graph contains multiple subtrees as the starting task or as a child of a parent task which cannot contain so many children (such as a decorator)."); + continue; + } + + reevaluatedNodes = new ILogicNode[reevaluatedSubtrees.Length][]; + var errorState = false; + for (int j = 0; j < reevaluatedSubtrees.Length; ++j) { + if (reevaluatedSubtrees[j] == null) { + continue; + } + if (!reevaluatedSubtrees[j].Deserialize(graphComponent, true, true, true, subtreeReference.SharedVariableOverrides)) { + errorState = true; + break; + }; + // Keep a reference to the deserialized nodes. This will ensure they are unique and do not get overwritten. + reevaluatedNodes[j] = reevaluatedSubtrees[j].LogicNodes; + } + if (errorState) { + continue; + } + + // The subtree index will be offsetted from the original index value if there are multiple subtree references. + var nodeOffset = 0; + for (int j = i - 1; j >= 0; --j) { + nodeOffset += m_SubtreeNodesReference[j].NodeCount - 1; + } + + // All of the reevaluated nodes have been determined. Remove the old subtree nodes. + var nodeCount = m_SubtreeNodesReference[i].NodeCount; + + // Replace the first node with the subtree reference, and remove the rest of the added nodes. + m_Tasks[m_SubtreeNodesReference[i].NodeIndex + nodeOffset] = m_SubtreeNodesReference[i].SubtreeReference as ILogicNode; + for (int j = m_SubtreeNodesReference[i].NodeIndex + nodeOffset + 1; j < m_Tasks.Length - nodeCount + 1; ++j) { + m_Tasks[j] = m_Tasks[j + nodeCount - 1]; + m_Tasks[j].Index = (ushort)j; + if (m_Tasks[j].ParentIndex != ushort.MaxValue && m_Tasks[j].ParentIndex > m_SubtreeNodesReference[i].NodeIndex + nodeOffset) { + m_Tasks[j].ParentIndex -= (ushort)(nodeCount - 1); + } + if (m_Tasks[j].SiblingIndex != ushort.MaxValue && m_Tasks[j].SiblingIndex > m_SubtreeNodesReference[i].NodeIndex + nodeOffset) { + m_Tasks[j].SiblingIndex -= (ushort)(nodeCount - 1); + } + +#if UNITY_EDITOR + m_LogicNodeProperties[j] = m_LogicNodeProperties[j + nodeCount - 1]; +#endif + } + + // Restore the original ConnectedIndex value. + if (m_EventTasks != null) { + for (int j = 0; j < m_EventTasks.Length; ++j) { + if (m_EventTasks[j].ConnectedIndex > m_SubtreeNodesReference[i].NodeIndex) { + m_EventTasks[j].ConnectedIndex -= (ushort)(nodeCount - 1); + } + } + } + Array.Resize(ref m_Tasks, m_Tasks.Length - nodeCount + 1); +#if UNITY_EDITOR + Array.Resize(ref m_LogicNodeProperties, m_LogicNodeProperties.Length - nodeCount + 1); +#endif + + // Replace the old nodes with the new nodes. + subtreeNodesReference.Nodes = reevaluatedNodes; + m_SubtreeNodesReference[i] = subtreeNodesReference; + + // The disabled nodes also need to be removed. + var subtrees = m_SubtreeNodesReference[i].Subtrees; + var disabledNodesCount = 0; + for (int j = 0; j < subtrees.Length; ++j) { + if (subtrees[j].DisabledLogicNodes == null || subtrees[j].DisabledLogicNodes.Length == 0) { + continue; + } + disabledNodesCount += subtrees[j].DisabledLogicNodes.Length; + } + if (disabledNodesCount > 0) { + if (m_DisabledLogicNodes.Length > disabledNodesCount) { // The local tree may not have any disabled nodes. + for (int j = 0; j < m_DisabledLogicNodes.Length - disabledNodesCount; ++j) { + if (m_DisabledLogicNodes[j] >= m_SubtreeNodesReference[i].NodeIndex + nodeOffset + 1) { + m_DisabledLogicNodes[j] = (ushort)(m_DisabledLogicNodes[j + disabledNodesCount] - nodeCount + 1); + } + } + } + Array.Resize(ref m_DisabledLogicNodes, m_DisabledLogicNodes.Length - disabledNodesCount); + } + } + + // The tasks array has been restored to the original set of nodes with the ISubtreeReference. Inject the new nodes. + InjectSubtrees(); + + // Modify the ConnectedIndex to match the injection. + if (m_EventTasks != null && m_SubtreeNodesReference != null) { + for (int i = 0; i < m_EventTasks.Length; ++i) { + var offset = 0; + for (int j = 0; j < m_SubtreeNodesReference.Count; ++j) { + if (m_SubtreeNodesReference[j].NodeIndex >= m_EventTasks[i].ConnectedIndex) { + break; + } + offset += m_SubtreeNodesReference[j].NodeCount - 1; + } + if (offset != 0) { + m_EventTasks[i].ConnectedIndex += (ushort)offset; + } + } + } + + return true; + } + + /// + /// Returns the SharedVariable with the specified name. + /// + /// The graph that the data belongs to. + /// The name of the SharedVariable that should be retrieved. + /// The scope of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(IGraph graph, string name, SharedVariable.SharingScope scope) + { + if (string.IsNullOrEmpty(name)) { + return null; + } + + if (m_VariableByNameMap == null) { + DeserializeSharedVariables(false, null); + m_VariableByNameMap = PopulateSharedVariablesMapping(graph, true); + } + + if (m_VariableByNameMap != null && m_VariableByNameMap.TryGetValue(new VariableAssignment(name, scope), out var variable)) { + return variable; + } + + return null; + } + + /// + /// Returns the SharedVariable of the specified type. + /// + /// The graph that the data belongs to. + /// The name of the SharedVariable that should be retrieved. + /// The scope of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(IGraph graph, string name, SharedVariable.SharingScope scope) + { + if (string.IsNullOrEmpty(name)) { + return null; + } + + if (m_VariableByNameMap == null) { + DeserializeSharedVariables(false, null); + m_VariableByNameMap = PopulateSharedVariablesMapping(graph, true); + } + + if (m_VariableByNameMap != null && m_VariableByNameMap.TryGetValue(new VariableAssignment(name, scope), out var variable)) { + return variable as SharedVariable; + } + + return null; + } + + /// + /// Sets the value of the SharedVariable. + /// + /// The type of SharedVarible. + /// The graph that the data belongs to. + /// The name of the SharedVariable. + /// The value of the SharedVariable. + public void SetVariableValue(IGraph graph, string name, T value, SharedVariable.SharingScope scope) + { + if (string.IsNullOrEmpty(name)) { + return; + } + + if (m_VariableByNameMap == null) { + DeserializeSharedVariables(false, null); + m_VariableByNameMap = PopulateSharedVariablesMapping(graph, true); + } + + if (m_VariableByNameMap == null || !m_VariableByNameMap.TryGetValue(new VariableAssignment(name, scope), out var variable)) { + return; + } + + (variable as SharedVariable).Value = value; + } + + /// + /// Overrides the SharedVariable value. The name must match an exsting variable. + /// + /// The graph that the data belongs to. + /// The reference to the SharedVariable. + internal void OverrideVariableValue(IGraph graph, SharedVariable variable) + { + if (string.IsNullOrEmpty(variable.Name)) { + return; + } + + DeserializeSharedVariables(false, null); + var dirty = false; + if (m_SharedVariables != null) { + for (int i = 0; i < m_SharedVariables.Length; ++i) { + if (m_SharedVariables[i].Name == variable.Name && m_SharedVariables[i].GetType() == variable.GetType()) { + m_SharedVariables[i].SetValue(variable.GetValue()); + dirty = true; + break; + } + } + } + + if (dirty) { + m_VariableByNameMap = PopulateSharedVariablesMapping(graph, true); + } + } + + /// + /// Is the node with the specified index enabled? + /// + /// Is the node a LogicNode? + /// The index of the node. + /// True if the node with the specified index is enabled. + public bool IsNodeEnabled(bool logicNode, int index) + { + if (index == ushort.MaxValue) { + return true; + } + + var disabledNodes = logicNode ? m_DisabledLogicNodes : m_DisabledEventNodes; + if (disabledNodes == null) { + return true; + } + for (int i = 0; i < disabledNodes.Length; ++i) { + if (disabledNodes[i] == index) { + return false; + } + } + return true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs.meta new file mode 100644 index 000000000..0fc4d6176 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: b88607c73749e1f47b8bb1ed0b34a7a8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Components.meta b/Packages/com.opsive.behaviordesigner/Runtime/Components.meta new file mode 100644 index 000000000..87788c5ab --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Components.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3f13872ff04404c4da862a21fe89cac6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs b/Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs new file mode 100644 index 000000000..8a47504b8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs @@ -0,0 +1,109 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Components +{ + using Opsive.BehaviorDesigner.Runtime.Groups; + using Unity.Entities; + using UnityEngine; + + /// + /// Indicates that the behavior tree was baked. + /// + public class BakedBehaviorTree : IComponentData + { + [Tooltip("The index of the connected start task.")] + public int StartEventConnectedIndex; + [Tooltip("Should the behavior tree be started after it has been baked?")] + public bool StartEvaluation; + [Tooltip("The indicies of the reevaluate task systems.")] + public string[] ReevaluateTaskSystems; + [Tooltip("The indicies of the interrupt task systems.")] + public string[] InterruptTaskSystems; + [Tooltip("The indicies of the traversal task systems.")] + public string[] TraversalTaskSystems; + [Tooltip("The hashes that correspond to the TaskComponent's ComponentType.")] + public ulong[] TagStableTypeHashes; + [Tooltip("The hashes that correspond to the ReevaluateTaskComponent's ComponentType.")] + public ulong[] ReevaluateTagStableTypeHashes; + } + + /// + /// The behavior tree has been baked. Start the tree using the baked data. + /// + public partial struct StartBakedBehaviorTreeSystem : ISystem + { + /// + /// Restricts when the system should run. + /// + /// The current SystemState. + private void OnCreate(ref SystemState state) + { + state.RequireForUpdate(); + state.Enabled = false; + } + + /// + /// Starts the baked behavior tree. + /// + /// The current SystemState. + private void OnUpdate(ref SystemState state) + { + state.Enabled = false; + + // The components are baked, but systems are not baked. Create the required systems within the current world. + var reevaluateTaskSystemGroup = state.World.GetOrCreateSystemManaged(); + var interruptTaskSystemGroup = state.World.GetOrCreateSystemManaged(); + var traversalTaskSystemGroup = state.World.GetOrCreateSystemManaged(); + + var ecb = new EntityCommandBuffer(state.WorldUpdateAllocator); + foreach (var (bakedBehaviorTree, entity) in SystemAPI.Query().WithEntityAccess()) { + AddSystems(state.World, reevaluateTaskSystemGroup, bakedBehaviorTree.ReevaluateTaskSystems); + AddSystems(state.World, interruptTaskSystemGroup, bakedBehaviorTree.InterruptTaskSystems); + AddSystems(state.World, traversalTaskSystemGroup, bakedBehaviorTree.TraversalTaskSystems); + + // ComponentTypes cannot be serialized. Convert the StableTypeHash to a ComponentType. + var taskComponents = state.World.EntityManager.GetBuffer(entity); + for (int i = 0; i < taskComponents.Length; ++i) { + var taskComponent = taskComponents[i]; + taskComponent.TagComponentType = ComponentType.FromTypeIndex(TypeManager.GetTypeIndexFromStableTypeHash(bakedBehaviorTree.TagStableTypeHashes[i])); + taskComponents[i] = taskComponent; + } + + if (state.World.EntityManager.HasBuffer(entity)) { + var reevaluateComponents = state.World.EntityManager.GetBuffer(entity); + for (int i = 0; i < reevaluateComponents.Length; ++i) { + var reevaluateComponent = reevaluateComponents[i]; + reevaluateComponent.ReevaluateTagComponentType = ComponentType.FromTypeIndex(TypeManager.GetTypeIndexFromStableTypeHash(bakedBehaviorTree.ReevaluateTagStableTypeHashes[i])); + reevaluateComponents[i] = reevaluateComponent; + } + } + + // All of the systems have been added. Start the behavior tree. + BehaviorTree.StartBranch(state.World, entity, (ushort)bakedBehaviorTree.StartEventConnectedIndex, bakedBehaviorTree.StartEvaluation); + ecb.RemoveComponent(entity); + } + ecb.Playback(state.EntityManager); + ecb.Dispose(); + } + + /// + /// Adds the systems indicated by the SystemTypeIndex to the specified group. + /// + /// The current World. + /// The group that the systems should be added to. + /// The types of systems that should be added. + private void AddSystems(World world, ComponentSystemGroup group, string[] systemTypes) + { + if (systemTypes == null) { return; } + + for (int i = 0; i < systemTypes.Length; ++i) { + group.AddSystemToUpdateList(world.GetOrCreateSystem(Shared.Utility.TypeUtility.GetType(systemTypes[i]))); + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs.meta new file mode 100644 index 000000000..7870ae135 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f68d4eca856988e4a8f4073516e7de57 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Components/BakedBehaviorTree.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs b/Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs new file mode 100644 index 000000000..94787d07a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs @@ -0,0 +1,194 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Components +{ + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Unity.Entities; + using UnityEngine; + using System.Runtime.InteropServices; + + /// + /// The runtime DOTS data associated with a task. + /// + [System.Serializable] + public struct TaskComponent : IBufferElementData, IEnableableComponent + { + [Tooltip("The current execution status of the task.")] + //public TaskStatus Status; + [SerializeField] private TaskStatus m_Status; + public TaskStatus Status { get => m_Status; + set { + m_Status = value; + CanReevaluate = value != TaskStatus.Inactive; + //UnityEngine.Debug.Log(string.Format("{0} status: {1}", Index, value)); + } + } + [Tooltip("The index of the task within the behavior tree.")] + public ushort Index; + [Tooltip("The index of the parent task within the behavior tree.")] + public ushort ParentIndex; + //public ushort m_ParentIndex; + //public ushort ParentIndex { get { return m_ParentIndex; } set { UnityEngine.Debug.Log(Index + " parent: " + value); m_ParentIndex = value; } } + [Tooltip("The index of the sibling task within the behavior tree.")] + public ushort SiblingIndex; + //public ushort m_SiblingIndex; + //public ushort SiblingIndex { get { return m_SiblingIndex; } set { UnityEngine.Debug.Log(Index + " sibling: " + value); m_SiblingIndex = value; } } + [Tooltip("The index of the branch the task executes within.")] + public ushort BranchIndex; + //public ushort m_BranchIndex; + //public ushort BranchIndex { get { return m_BranchIndex; } set { UnityEngine.Debug.Log(Index + " branch: " + value); m_BranchIndex = value; } } + [Tooltip("The component type responsible for indicating that the task is active.")] + public ComponentType TagComponentType; + [Tooltip("Can the task be reevaluated with conditional aborts?")] + [MarshalAs(UnmanagedType.U1)] + public bool CanReevaluate; + [Tooltip("Is the task being reevaluated with conditional aborts?")] + [MarshalAs(UnmanagedType.U1)] + public bool Reevaluate; + [Tooltip("Is the task disabled?")] + [MarshalAs(UnmanagedType.U1)] + public bool Disabled; + } + + /// + /// Specifies if the behavior tree is enabled. + /// + public struct EnabledTag : IComponentData, IEnableableComponent + { + } + + /// + /// Specifies when the behavior tree should be updated. + /// + public enum UpdateMode + { + EveryFrame, // The behavior tree should be updated every frame. + Manual // The behavior tree should be updated manually via a user script. + } + + /// + /// Specifies how many tasks should be evaluated. Evaluation will end if all branches return a status of TaskStatus.Running. + /// + public enum EvaluationType : byte + { + EntireTree, // Evaluates up to all of the tasks within the tree. + Count // Evaluates up to the specified MaxEvaluationCount. + } + + /// + /// Specifies if the tree should be evaluated. + /// + public struct EvaluationComponent : IComponentData, IEnableableComponent + { + [Tooltip("Specifies how many tasks should be updated during a single tick.")] + public EvaluationType EvaluationType; + [Tooltip("The maximum number of tasks that can run if the evaluation type is set to EvaluationType.Count.")] + public ushort MaxEvaluationCount; + [Tooltip("The number of tasks that have been evaluated within the current frame.")] + public ushort EvaluationCount; + } + + /// + /// Specifies how the branch was interrupted. + /// + public enum InterruptType : byte + { + None, // No interrupt. + Branch, // A conditional abort or utility selector triggered the interruption. + ImmediateSuccess, // The branch was interrupted with a success status. + ImmediateFailure, // The branch was interrupted with a failure status. + } + + /// + /// The runtime DOTS data associated with a branch. + /// + public struct BranchComponent : IBufferElementData + { + [Tooltip("The index of the task that is currently active.")] + public int ActiveIndex; + //public int m_ActiveIndex; + //public int ActiveIndex { get { return m_ActiveIndex; } set { Debug.Log(string.Format("Active: {0}", value)); m_ActiveIndex = value; } } + [Tooltip("The index of the task that should execute next.")] + public int NextIndex; + //public int m_NextIndex; + //public int NextIndex { get { return m_NextIndex; } set { Debug.Log(string.Format("Next: {0}", value)); m_NextIndex = value; } } + [Tooltip("The component tag that is active.")] + public ComponentType ActiveTagComponentType; + //public ComponentType m_ActiveTagComponentType; + //public ComponentType ActiveTagComponentType { get { return m_ActiveTagComponentType; } set { Debug.Log(string.Format("Tag: {0}", value)); m_ActiveTagComponentType = value; } } + [Tooltip("Specifies how the branch is interrupted.")] + public InterruptType InterruptType; + //public InterruptType m_InterruptType; + //public InterruptType InterruptType { get { return m_InterruptType; } set { m_InterruptType = value; Debug.Log("Interrupt Type " + value); } } + [Tooltip("The index of the task that caused an interruption. A value of 0 indicates no interruption.")] + public ushort InterruptIndex; + } + + /// + /// Tag used to indicate when the branch should be interrupted. + /// + public struct InterruptTag : IComponentData, IEnableableComponent { } + + /// + /// Tag used to indicate that the branch has been interrupted. + /// + public struct InterruptedTag : IComponentData, IEnableableComponent { } + + /// + /// Specifies the reevaluation status of the task. + /// + public enum ReevaluateStatus : byte + { + Inactive, // The task is not being reevaluated. + Active, // The task is currently being reevaluated. + Dirty // The task was reevaluated and triggered a change. + } + + /// + /// The runtime DOTS data associated with conditional aborts. + /// + public struct ReevaluateTaskComponent : IBufferElementData + { + [Tooltip("The index of the task.")] + public ushort Index; + [Tooltip("The type of conditional abort.")] + public ConditionalAbortType AbortType; + [Tooltip("The lower bound index of the next task if a lower priority abort is specified.")] + public ushort LowerPriorityLowerIndex; + [Tooltip("The upper bound index of the next task if a lower priority abort is specified.")] + public ushort LowerPriorityUpperIndex; + [Tooltip("The upper bound index of the next task if a self priority abort is specified.")] + public ushort SelfPriorityUpperIndex; + [Tooltip("The original status of the task.")] + public TaskStatus OriginalStatus; + [Tooltip("The tag specifiying the task should be reevaluated.")] + public ComponentType ReevaluateTagComponentType; + [Tooltip("The current reevaluation status of the task.")] + public ReevaluateStatus ReevaluateStatus; + } + + /// + /// Runtime representation of IEventNodes that can run its own entity logic. + /// + public interface IEventNodeEntityReceiver + { + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + void AddBufferElement(World world, Entity entity); + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + void ClearBufferElement(World world, Entity entity); + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs.meta new file mode 100644 index 000000000..3f58e0489 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 12b6df69a20daeb4ab4ce1ccaa7bc7ec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Components/BehaviorTreeComponents.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups.meta b/Packages/com.opsive.behaviordesigner/Runtime/Groups.meta new file mode 100644 index 000000000..e0e65918c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d9c918e9af659ea4fb420fd6af1433b7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs new file mode 100644 index 000000000..b1d926d86 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs @@ -0,0 +1,46 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Groups +{ + using Opsive.BehaviorDesigner.Runtime.Systems; + using Unity.Entities; + + /// + /// Grouping for the systems that should before other systems. + /// + [UpdateInGroup(typeof(BehaviorTreeSystemGroup), OrderFirst = true)] + public partial class BeforeTraversalSystemGroup : ComponentSystemGroup + { + } + + /// + /// Grouping for the task systems that should reevaluate. + /// + [UpdateInGroup(typeof(BeforeTraversalSystemGroup))] + public partial class ReevaluateTaskSystemGroup : ComponentSystemGroup + { + } + + /// + /// Grouping for the systems that run before the tree execution. + /// + [UpdateInGroup(typeof(BehaviorTreeSystemGroup))] + public partial class InterruptSystemGroup : ComponentSystemGroup + { + } + + /// + /// Grouping for the task systems that can cause interrupts. + /// + [UpdateInGroup(typeof(InterruptSystemGroup))] + [UpdateAfter(typeof(InterruptSystem))] + [UpdateBefore(typeof(InterruptCleanupSystem))] + public partial class InterruptTaskSystemGroup : ComponentSystemGroup + { + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs.meta new file mode 100644 index 000000000..71233efa7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 83e6fa82f6125e140a3d0bd4737feeb3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Groups/BeforeTraversalSystemGroup.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs new file mode 100644 index 000000000..51b8ed881 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs @@ -0,0 +1,80 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Groups +{ + using Opsive.BehaviorDesigner.Runtime.Systems; + using Unity.Entities; + using UnityEngine; + + /// + /// System group which runs all of the behavior tree systems. + /// + [UpdateInGroup(typeof(SimulationSystemGroup))] + [UpdateAfter(typeof(BeginSimulationEntityCommandBufferSystem))] + public partial class BehaviorTreeSystemGroup : ComponentSystemGroup + { + private bool m_Alive; + + public bool Alive { get => m_Alive; } + + /// + /// Disable the group if there are no behavior trees. + /// + [RuntimeInitializeOnLoadMethod] + private static void Init() + { + if (BehaviorTree.BehaviorTreeCount > 0) { + return; + } + + var worlds = World.All; + for (int i = 0; i < worlds.Count; ++i) { + var systemGroup = worlds[i].GetExistingSystemManaged(); + if (systemGroup == null) { + continue; + } + systemGroup.Enabled = false; + } + } + + /// + /// The group has been created. + /// + protected override void OnCreate() + { + base.OnCreate(); + + m_Alive = true; + } + + /// + /// Update the system group. + /// + protected override void OnUpdate() + { + base.OnUpdate(); + + // Stop running if all trees have completed. + var systemHandle = World.GetExistingSystem(); + var system = EntityManager.WorldUnmanaged.GetUnsafeSystemRef(systemHandle); + if (!system.Active) { + Enabled = false; + } + } + + /// + /// The group has been destroyed. + /// + protected override void OnDestroy() + { + base.OnDestroy(); + + m_Alive = false; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs.meta new file mode 100644 index 000000000..0292ae0cd --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 905219e69953a5e479911f095744ec54 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs new file mode 100644 index 000000000..5c0567ae9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs @@ -0,0 +1,41 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Groups +{ + using System; + using Unity.Entities; + using UnityEngine; + + /// + /// Group that executes all of the tasks. + /// + [UpdateInGroup(typeof(TraversalSystemGroup))] + public partial class TraversalTaskSystemGroup : ComponentSystemGroup + { + [Tooltip("Callback before the outher tasks are updated.")] + public Action OnPreUpdate; + [Tooltip("Callback after the outher tasks are updated.")] + public Action OnPostUpdate; + + /// + /// Updates the group. + /// + protected override void OnUpdate() + { + if (OnPreUpdate != null) { + OnPreUpdate(); + } + + base.OnUpdate(); + + if (OnPostUpdate != null) { + OnPostUpdate(); + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs.meta new file mode 100644 index 000000000..5c60d45ba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f48a72a09e70b944a82639a4d549f090 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs new file mode 100644 index 000000000..5985cbad2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs @@ -0,0 +1,76 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Groups +{ + using Opsive.BehaviorDesigner.Runtime.Systems; + using Unity.Entities; + + /// + /// Main group for the systems that are responsible for traversing the behavior tree. + /// + [UpdateInGroup(typeof(BehaviorTreeSystemGroup))] + [UpdateAfter(typeof(InterruptSystemGroup))] + public partial class TraversalSystemGroup : ComponentSystemGroup + { + private SystemHandle m_EvaluationSystemHandle; + private SystemHandle m_DetermineEvaluationSystemHandle; + + /// + /// The group has been created. + /// + protected override void OnCreate() + { + base.OnCreate(); + + m_EvaluationSystemHandle = World.GetExistingSystem(); + m_DetermineEvaluationSystemHandle = World.GetExistingSystem(); + } + + /// + /// Updates the systems. Determines if the systems need to keep being evaluated. + /// + protected override void OnUpdate() + { +#if UNITY_EDITOR + var count = 0; +#endif + bool evaluate; + do { + base.OnUpdate(); + + var determineEvaluationSystem = EntityManager.WorldUnmanaged.GetUnsafeSystemRef(m_DetermineEvaluationSystemHandle); + determineEvaluationSystem.Complete(EntityManager); + evaluate = determineEvaluationSystem.Evaluate; + + var evaluationSystem = EntityManager.WorldUnmanaged.GetUnsafeSystemRef(m_EvaluationSystemHandle); + evaluationSystem.Complete(EntityManager); + +#if UNITY_EDITOR + if (evaluate) { + count++; + if (count == ushort.MaxValue / 10) { + UnityEngine.Debug.LogWarning("An infinite loop would have been caused by the TraversalSystemGroup. Please email support@opsive.com with steps to reproduce this error."); + break; + } + } +#endif + } while (evaluate); + } + + /// + /// The group has stopped running. + /// + protected override void OnStopRunning() + { + base.OnStopRunning(); + + var evaluationSystem = EntityManager.WorldUnmanaged.GetUnsafeSystemRef(m_EvaluationSystemHandle); + evaluationSystem.Complete(EntityManager, true); + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs.meta new file mode 100644 index 000000000..39b7c99a2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 2c1ad397e3cdf7a44ae172b5ae92c2e4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Groups/TraversalSystemGroup.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef b/Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef new file mode 100644 index 000000000..3427a4783 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef @@ -0,0 +1,29 @@ +{ + "name": "Opsive.BehaviorDesigner.Runtime", + "rootNamespace": "Opsive.BehaviorDesigner.Runtime", + "references": [ + "GUID:e9319bc8ab9315745bdf80aeffa01d6d", + "GUID:d8e89a79cd8df884b8d5b3356783eb74", + "GUID:734d92eba21c94caba915361bd5ac177", + "GUID:2665a8d13d1b3f18800f46e256720795", + "GUID:e0cd26848372d4e5c891c569017e11f1", + "GUID:d8b63aba1907145bea998dd612889d6b", + "GUID:a5baed0c9693541a5bd947d336ec7659", + "GUID:8819f35a0fc84499b990e90a4ca1911f" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [ + { + "name": "com.unity.entities", + "expression": "1.3.5", + "define": "UNITY_ENTITIES" + } + ], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef.meta b/Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef.meta new file mode 100644 index 000000000..07b39fe88 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: f9fbcd65fc33f6847b0f124cf7e891b6 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Opsive.BehaviorDesigner.Runtime.asmdef + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs b/Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs new file mode 100644 index 000000000..f1b7a91f8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs @@ -0,0 +1,278 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using System; + using UnityEngine; + + /// + /// The behavior tree stored on a Scriptable Object. + /// + [CreateAssetMenu(fileName = "Subtree", menuName = "Opsive/Behavior Designer/Subtree", order = 1)] + public class Subtree : ScriptableObject, IGraph, ISharedVariableContainer + { + [Tooltip("The behavior tree data.")] + [SerializeField] private BehaviorTreeData m_Data = new BehaviorTreeData(); + + public string Name { get => name; set => name = value; } + public SharedVariable.SharingScope VariableScope { get => SharedVariable.SharingScope.Graph; } + public BehaviorTreeData Data { get => m_Data; } + public UnityEngine.Object Parent { get => this; } + public ILogicNode[] LogicNodes { get => m_Data.LogicNodes; set => m_Data.LogicNodes = value; } + public IEventNode[] EventNodes { get => m_Data.EventNodes; set => m_Data.EventNodes = value; } + public SharedVariable[] SharedVariables { get => m_Data.SharedVariables; set => m_Data.SharedVariables = value; } + public ushort[] DisabledLogicNodes { get => m_Data.DisabledLogicNodes; set => m_Data.DisabledLogicNodes = value; } + public ushort[] DisabledEventNodes { get => m_Data.DisabledEventNodes; set => m_Data.DisabledEventNodes = value; } + + public LogicNodeProperties[] LogicNodeProperties + { +#if UNITY_EDITOR + get => m_Data.LogicNodeProperties; + set => m_Data.LogicNodeProperties = value; +#else + get => null; + set { } +#endif + } + public NodeProperties[] EventNodeProperties + { +#if UNITY_EDITOR + get => m_Data.EventNodeProperties; + set => m_Data.EventNodeProperties = value; +#else + get => null; + set { } +#endif + } + public GroupProperties[] GroupProperties + { +#if UNITY_EDITOR + get => m_Data.GroupProperties; + set => m_Data.GroupProperties = value; +#else + get => null; + set { } +#endif + } + + public int UniqueID { get => m_Data.UniqueID; } + + /// + /// Serializes the behavior tree. + /// + public void Serialize() + { + m_Data.Serialize(); + } + + /// + /// Deserialize the behavior tree. + /// + /// Should the behavior tree be force deserialized? + /// True if the tree was deserialized. + public bool Deserialize(bool force = false) + { + return Deserialize(null, force, false, true, null); + } + + /// + /// Deserialize the behavior tree. + /// + /// Should the behavior tree be force deserialized? + /// Should the subtrees be injected into the behavior tree? + /// Can the SharedVariables be deep copied? + /// True if the tree was deserialized. + public bool Deserialize(bool force, bool injectSubtrees, bool canDeepCopyVariables = true) + { + return Deserialize(null, force, injectSubtrees, canDeepCopyVariables, null); + } + + /// + /// Deserialize the behavior tree. + /// + /// The component that the graph is being deserialized from. + /// Should the behavior tree be force deserialized? + /// Should the subtrees be injected into the behavior tree? + /// Can the SharedVariables be deep copied? + /// A list of SharedVariables that should override the current SharedVariable value. + /// True if the tree was deserialized. + public bool Deserialize(IGraphComponent graphComponent, bool force, bool injectSubtrees, bool canDeepCopyVariables, SharedVariableOverride[] sharedVariableOverrides) + { + if (m_Data == null) { + return false; + } + + return m_Data.Deserialize(graphComponent, this, force, injectSubtrees, canDeepCopyVariables, sharedVariableOverrides); + } + + /// + /// Deserializes the SharedVariables. This allows the SharedVariables to be deserialized independently. + /// + /// Should the variables be forced deserialized? + /// True if the SharedVariables were deserialized. + public bool DeserializeSharedVariables(bool force) + { + if (m_Data == null) { + return false; + } + + return m_Data.DeserializeSharedVariables(force); + } + + /// + /// Adds the specified logic node. + /// + /// The node that should be added. + public void AddNode(ILogicNode node) + { + m_Data.AddNode(node); + } + + /// + /// Removes the specified logic node. + /// + /// The node that should be removed. + /// True if the node was removed. + public bool RemoveNode(ILogicNode node) + { + return m_Data.RemoveNode(node); + } + + /// + /// Adds the specified event node. + /// + /// The event node that should be added. + public void AddNode(IEventNode eventNode) + { + m_Data.AddNode(eventNode); + } + + /// + /// Removes the specified event node. + /// + /// The event node that should be removed. + /// True if the event node was removed. + public bool RemoveNode(IEventNode eventNode) + { + return m_Data.RemoveNode(eventNode); + } + + /// + /// Returns the Node of the specified type. + /// + /// The type of Node that should be retrieved. + /// The Node of the specified type (can be null). + public ILogicNode GetNode(Type type) + { + return m_Data.GetNode(type); + } + + /// + /// Returns the EventNode of the specified type. + /// + /// The type of EventNode that should be retrieved. + /// The EventNode of the specified type (can be null). If the node is found the index will also be returned. + public (IEventNode, ushort) GetEventNode(Type type) + { + return m_Data.GetEventNode(type); + } + + /// + /// Returns the SharedVariable with the specified name. + /// + /// The name of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(string name) + { + return m_Data.GetVariable(this, name, SharedVariable.SharingScope.Graph); + } + + /// + /// Returns the SharedVariable of the specified name. + /// + /// The name of the SharedVariable that should be retrieved. + /// The SharedVariable with the specified name (can be null). + public SharedVariable GetVariable(string name) + { + return m_Data.GetVariable(this, name, SharedVariable.SharingScope.Graph); + } + + /// + /// Sets the value of the SharedVariable. + /// + /// The type of SharedVarible. + /// The name of the SharedVariable. + /// The value of the SharedVariable. + public void SetVariableValue(string name, T value) + { + m_Data.SetVariableValue(this, name, value, SharedVariable.SharingScope.Graph); + } + + /// + /// Is the node with the specified index enabled? + /// + /// Is the node a LogicNode? + /// The index of the node. + /// True if the node with the specified index is enabled. + public bool IsNodeEnabled(bool logicNode, int index) + { + return m_Data.IsNodeEnabled(logicNode, index); + } + + /// + /// Is the node with the specified index active? + /// + /// Is the node a LogicNode? + /// The index of the node. + /// True if the node with the specified index is active. + public bool IsNodeActive(bool logicNode, int index) + { + return false; // The subtree node itself is never active. + } + + /// + /// Copies the graph onto the current graph. + /// + /// The graph that should be copied. + public void Clone(IGraph other) + { + m_Data = new BehaviorTreeData(); + m_Data.EventNodes = other.EventNodes; + m_Data.LogicNodes = other.LogicNodes; + m_Data.SharedVariables = other.SharedVariables; + +#if UNITY_EDITOR + m_Data.EventNodeProperties = other.EventNodeProperties; + m_Data.LogicNodeProperties = other.LogicNodeProperties; + m_Data.GroupProperties = other.GroupProperties; +#endif + + m_Data.Serialize(); + } + + /// + /// Overrides ToString. + /// + /// The desired string value. + public override string ToString() + { + return name; + } + } + + /// + /// Attribute indicating that a ReorderableList should be used for the Subtree array. + /// + [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] + public class SubtreeListAttribute : System.Attribute + { + + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs.meta new file mode 100644 index 000000000..65ab2b542 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0ab170e3869205449b993a35614c2084 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: e0a8f1df788b6274a9a24003859dfa7e, type: 3} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Subtree.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems.meta b/Packages/com.opsive.behaviordesigner/Runtime/Systems.meta new file mode 100644 index 000000000..5b02575de --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a33ce2113e48ee54f946531482da6261 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs b/Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs new file mode 100644 index 000000000..7a896a22f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs @@ -0,0 +1,412 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Systems +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Unity.Burst; + using Unity.Collections; + using Unity.Entities; + using UnityEngine; + + /// + /// System which checks for any tasks that should be reevaluated with conditional aborts. This system only marks the tasks, it does not do + /// the actual reevaluation or interruption. + /// + [UpdateInGroup(typeof(BeforeTraversalSystemGroup), OrderFirst = true)] + public partial struct ReevaluateSystem : ISystem + { + private EntityQuery m_Query; + + /// + /// Builds the query. + /// + /// THe current SystemState. + private void OnCreate(ref SystemState state) + { + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAll().WithAbsent().Build(); + } + + /// + /// Creates the ReevaluateJob. + /// + /// The current SystemState. + private void OnUpdate(ref SystemState state) + { + var ecb = new EntityCommandBuffer(Allocator.TempJob); + state.Dependency = new ReevaluateJob() + { + EntityCommandBuffer = ecb.AsParallelWriter(), + }.ScheduleParallel(m_Query, state.Dependency); + + // The job must run immediately for the next systems. + state.Dependency.Complete(); + ecb.Playback(state.EntityManager); + ecb.Dispose(); + } + + /// + /// Job which checks for any tasks that should be reevaluated with conditional aborts. This job only flags the tasks, it does not do + /// the actual reevaluation or interruption. + /// + [BurstCompile] + private partial struct ReevaluateJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + + /// + /// Executes the job. + /// + /// The entity that is being acted upon. + /// The index of the entity. + /// An array of branch components. + /// An array of task components. + /// An array of reevaluate task components. + [BurstCompile] + public void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, in DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer reevaluateTaskComponents) + { + for (int i = 0; i < reevaluateTaskComponents.Length; ++i) { + var reevaluateTaskComponent = reevaluateTaskComponents[i]; + // The task may not be able to reevaluate. + var taskComponent = taskComponents[reevaluateTaskComponent.Index]; + if (!taskComponent.CanReevaluate || taskComponent.Disabled) { + continue; + } + + // The branch may not be active. + var branchComponent = branchComponents[taskComponent.BranchIndex]; + if (branchComponent.ActiveIndex == ushort.MaxValue) { + if (taskComponent.Reevaluate) { + taskComponent.Reevaluate = false; + taskComponents[reevaluateTaskComponent.Index] = taskComponent; + + reevaluateTaskComponent.ReevaluateStatus = ReevaluateStatus.Inactive; + reevaluateTaskComponents[i] = reevaluateTaskComponent; + } + continue; + } + + var reevaluate = false; + if (reevaluateTaskComponent.AbortType == ConditionalAbortType.Self || reevaluateTaskComponent.AbortType == ConditionalAbortType.Both) { + if (branchComponent.ActiveIndex > taskComponent.Index && branchComponent.ActiveIndex <= reevaluateTaskComponent.SelfPriorityUpperIndex) { + // Reevaluate. + reevaluate = true; + if (reevaluateTaskComponent.ReevaluateStatus == ReevaluateStatus.Inactive) { + reevaluateTaskComponent.ReevaluateStatus = ReevaluateStatus.Active; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, reevaluateTaskComponent.ReevaluateTagComponentType, true); + } + } + } + if (!reevaluate && (reevaluateTaskComponent.AbortType == ConditionalAbortType.LowerPriority || reevaluateTaskComponent.AbortType == ConditionalAbortType.Both)) { + if (branchComponent.ActiveIndex > reevaluateTaskComponent.LowerPriorityLowerIndex && branchComponent.ActiveIndex <= reevaluateTaskComponent.LowerPriorityUpperIndex) { + // Reevaluate. + reevaluate = true; + if (reevaluateTaskComponent.ReevaluateStatus == ReevaluateStatus.Inactive) { + reevaluateTaskComponent.ReevaluateStatus = ReevaluateStatus.Active; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, reevaluateTaskComponent.ReevaluateTagComponentType, true); + } + } + } + + // The task should no longer reevaluate. + if (!reevaluate && (taskComponent.Reevaluate || reevaluateTaskComponent.ReevaluateStatus == ReevaluateStatus.Dirty)) { + // The system needs to be kept active if there are other tasks with the same reevaluate tag. + var keepSystemActive = false; + for (int j = 0; j < reevaluateTaskComponents.Length; ++j) { + if (i == j) { + continue; + } + + if (reevaluateTaskComponents[j].ReevaluateStatus == ReevaluateStatus.Active && + reevaluateTaskComponent.ReevaluateTagComponentType == reevaluateTaskComponents[j].ReevaluateTagComponentType) { + keepSystemActive = true; + break; + } + } + + if (!keepSystemActive) { + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, reevaluateTaskComponent.ReevaluateTagComponentType, false); + } + // The task should always disable itself. + taskComponent.Reevaluate = false; + reevaluateTaskComponent.ReevaluateStatus = ReevaluateStatus.Inactive; + } else { + // Store the current status of the task. This status will be compared after the task is reevaluated within DetermineInterruptSystem. + reevaluateTaskComponent.OriginalStatus = taskComponent.Status; + } + + reevaluateTaskComponents[i] = reevaluateTaskComponent; + + taskComponent.Reevaluate = reevaluate; + taskComponents[reevaluateTaskComponent.Index] = taskComponent; + } + } + } + } + + /// + /// The tasks have been reevaluated. Compare the status to determine if an interrupt should occur. + /// + [UpdateInGroup(typeof(InterruptSystemGroup))] + [UpdateBefore(typeof(InterruptSystem))] + public partial struct ConditionalAbortsInvokerSystem : ISystem + { + private EntityQuery m_Query; + + /// + /// Builds the query. + /// + /// THe current SystemState. + private void OnCreate(ref SystemState state) + { + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAbsent().Build(); + } + + /// + /// Creates the jobs necessary for conditional aborts. + /// + /// The current SystemState. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var ecb = new EntityCommandBuffer(Allocator.TempJob); + state.Dependency = new ConditionalAbortsJob() + { + EntityCommandBuffer = ecb.AsParallelWriter() + }.ScheduleParallel(m_Query, state.Dependency); + + // The jobs must be run immediately for the next systems. + state.Dependency.Complete(); + ecb.Playback(state.EntityManager); + ecb.Dispose(); + } + + /// + /// Job which checks for any tasks that should be reevaluated with conditional aborts. This job only flags the tasks, it does not do + /// the actual reevaluation or interruption. + /// + [BurstCompile] + private partial struct ConditionalAbortsJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + + /// + /// Executes the job. + /// + /// The entity that is being acted upon. + /// The index of the entity. + /// An array of branch components. + /// An array of task components. + /// An array of reevaluate task components. + [BurstCompile] + public void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer reevaluateTaskComponents) + { + for (int i = 0; i < reevaluateTaskComponents.Length; ++i) { + var reevaluateTaskComponent = reevaluateTaskComponents[i]; + var taskComponent = taskComponents[reevaluateTaskComponent.Index]; + + if (taskComponent.Reevaluate) { + if (reevaluateTaskComponent.OriginalStatus != taskComponent.Status) { + // The status is different. This will cause an interrupt. + var branchComponent = branchComponents[taskComponent.BranchIndex]; + // The task with the highest priority should cause the abort. + if (branchComponent.InterruptType == InterruptType.None || taskComponent.Index < branchComponent.InterruptIndex) { + branchComponent.InterruptIndex = taskComponent.Index; + branchComponent.InterruptType = InterruptType.Branch; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } else { + taskComponent.Status = TaskStatus.Inactive; + } + + taskComponent.Reevaluate = false; + taskComponents[reevaluateTaskComponent.Index] = taskComponent; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, true); + + reevaluateTaskComponent.ReevaluateStatus = ReevaluateStatus.Dirty; + var reevaluateTaskComponentsBuffer = reevaluateTaskComponents; + reevaluateTaskComponentsBuffer[i] = reevaluateTaskComponent; + } + } + } + } + } + } + + /// + /// Processes any interrupts. + /// + [UpdateInGroup(typeof(InterruptSystemGroup))] + [UpdateAfter(typeof(ConditionalAbortsInvokerSystem))] + public partial struct InterruptSystem : ISystem + { + private EntityQuery m_Query; + + /// + /// Builds the query. + /// + /// THe current SystemState. + private void OnCreate(ref SystemState state) + { + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAll().Build(); + } + + /// + /// Creates the InterruptJob. + /// + /// The current SystemState. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var ecb = new EntityCommandBuffer(Allocator.TempJob); + state.Dependency = new InterruptJob() + { + EntityCommandBuffer = ecb.AsParallelWriter(), + }.ScheduleParallel(m_Query, state.Dependency); + + // The job must run immediately for the next systems. + state.Dependency.Complete(); + ecb.Playback(state.EntityManager); + ecb.Dispose(); + } + + /// + /// Triggers the interrupts. + /// + [BurstCompile] + private partial struct InterruptJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + + /// + /// Executes the job. + /// + /// The entity that is being acted upon. + /// The index of the entity. + /// An array of branch components. + /// An array of task components. + [BurstCompile] + public void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, DynamicBuffer branchComponents, DynamicBuffer taskComponents) + { + for (ushort i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.InterruptType != InterruptType.None) { + var targetTaskComponent = taskComponents[branchComponent.InterruptIndex]; + var parentIndex = targetTaskComponent.ParentIndex; + TaskStatus prevActiveNewStatus; + if (branchComponent.InterruptType == InterruptType.Branch) { + branchComponent.NextIndex = branchComponent.InterruptIndex; + branchComponents[i] = branchComponent; + + // Set the target branch tasks to running. + targetTaskComponent.Status = TaskStatus.Running; + while (parentIndex != ushort.MaxValue && taskComponents[parentIndex].Status != TaskStatus.Running) { + var parentTaskComponent = taskComponents[parentIndex]; + parentTaskComponent.Status = TaskStatus.Running; + taskComponents[parentIndex] = parentTaskComponent; + parentIndex = parentTaskComponent.ParentIndex; + } + + prevActiveNewStatus = TaskStatus.Failure; + } else { // InterruptType.ImmediateSuccess/Failure. + targetTaskComponent.Status = branchComponent.InterruptType == InterruptType.ImmediateSuccess ? TaskStatus.Success : TaskStatus.Failure; + var targetBranchComponent = branchComponents[targetTaskComponent.BranchIndex]; + targetBranchComponent.NextIndex = targetTaskComponent.ParentIndex; + branchComponents[targetTaskComponent.BranchIndex] = targetBranchComponent; + + prevActiveNewStatus = targetTaskComponent.Status; + } + + // Determine if any other branches need to be interrupted. + for (ushort j = i; j < branchComponents.Length; ++j) { + if (i == j || TraversalUtility.IsParent((ushort)branchComponents[j].ActiveIndex, parentIndex, ref taskComponents)) { + AbortChildren((ushort)branchComponents[j].ActiveIndex, parentIndex, ref taskComponents, prevActiveNewStatus); + + // Reset any queued children. + var taskComponentBuffer = taskComponents; + var childCount = TraversalUtility.GetChildCount(branchComponent.ActiveIndex, ref taskComponentBuffer); + for (int k = 0; k < childCount; ++k) { + var childTaskComponent = taskComponents[branchComponent.ActiveIndex + k + 1]; + if (childTaskComponent.Status == TaskStatus.Queued) { + childTaskComponent.Status = TaskStatus.Inactive; + taskComponentBuffer[branchComponent.ActiveIndex + k + 1] = childTaskComponent; + } + } + + // If the branch is a parallel branch then reset the NextIndex. The current branch (i) will be interrupted normally above. + var localBranchComponent = branchComponents[j]; + if (localBranchComponent.InterruptType == InterruptType.None) { + localBranchComponent.NextIndex = ushort.MaxValue; + branchComponents[j] = localBranchComponent; + } + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, true); + } else { + break; + } + } + + taskComponents[targetTaskComponent.Index] = targetTaskComponent; + } + } + } + + /// + /// Aborts all of the children within the specified branch. + /// + /// The index of the active task within the branch. + /// Aborts the tasks up to the specified parent index. + /// All of the tasks. + /// The abort status. + [BurstCompile] + private void AbortChildren(ushort activeIndex, ushort parentIndex, ref DynamicBuffer taskComponents, TaskStatus status) + { + while (activeIndex != ushort.MaxValue && activeIndex != parentIndex) { + var activeTask = taskComponents[activeIndex]; + activeTask.Status = status; + taskComponents[activeIndex] = activeTask; + activeIndex = activeTask.ParentIndex; + } + } + } + } + + /// + /// Cleanup the interrupts after they have run. + /// + [UpdateInGroup(typeof(InterruptSystemGroup), OrderLast = true)] + public partial struct InterruptCleanupSystem : ISystem + { + /// + /// Executes the system. + /// + /// The current SystemState. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (branchComponents, entity) in + SystemAPI.Query>().WithAll().WithEntityAccess()) { + for (int i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.InterruptType != InterruptType.None) { + // Reset the interruption. + branchComponent.InterruptType = InterruptType.None; + branchComponent.InterruptIndex = 0; + var branchComponentBuffer = branchComponents; + branchComponentBuffer[i] = branchComponent; + + state.EntityManager.SetComponentEnabled(entity, false); + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs.meta new file mode 100644 index 000000000..63463eca8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ffa99079a1d11e547943e43bd0446c86 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Systems/BeforeTraversalSystems.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs b/Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs new file mode 100644 index 000000000..fd1fc5779 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs @@ -0,0 +1,155 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Systems +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Unity.Burst; + using Unity.Burst.Intrinsics; + using Unity.Collections; + using Unity.Entities; + + /// + /// Resets the evaluation status. + /// + [UpdateInGroup(typeof(BehaviorTreeSystemGroup), OrderLast = true)] + public partial struct EvaluationCleanupSystem : ISystem + { + private EntityQuery m_EvaluateCleanupQuery; + private ComponentTypeHandle m_EnabledComponentHandle; + private ComponentTypeHandle m_EvaluationComponentHandle; + + /// + /// Creates the required objects for use within the job system. + /// + /// The current SystemState. + [BurstCompile] + private void OnCreate(ref SystemState state) + { + m_EvaluateCleanupQuery = new EntityQueryBuilder(Allocator.Temp) + .WithAll() + .WithOptions(EntityQueryOptions.IgnoreComponentEnabledState) + .Build(ref state); + m_EnabledComponentHandle = state.GetComponentTypeHandle(); + m_EvaluationComponentHandle = state.GetComponentTypeHandle(); + } + + /// + /// Updates the data object values for use within the job system. + /// + /// The current SystemState. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + state.Dependency.Complete(); + + // Reset the evaluation status. + m_EnabledComponentHandle.Update(ref state); + m_EvaluationComponentHandle.Update(ref state); + var evaluationCleanupJob = new EvaluationCleanupJob() + { + EnabledComponentHandle = m_EnabledComponentHandle, + EvaluationComponentHandle = m_EvaluationComponentHandle, + }; + state.Dependency = evaluationCleanupJob.ScheduleParallel(m_EvaluateCleanupQuery, state.Dependency); + } + + /// + /// Job that resets the EvaluationComponent component value. + /// + [BurstCompile(CompileSynchronously = true)] + public struct EvaluationCleanupJob : IJobChunk + { + [UnityEngine.Tooltip("A reference to the Enabled Component Handle.")] + public ComponentTypeHandle EnabledComponentHandle; + [UnityEngine.Tooltip("A reference to the Evaluate Component Handle.")] + public ComponentTypeHandle EvaluationComponentHandle; + + /// + /// Resets the EvaluationComponent component value. + /// + /// Block of memory that contains the entity and components. + /// The index of the chunk. + /// Should the enabled mask be used? + /// The bitwise enabled mask. + [BurstCompile] + public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex, bool useEnabledMask, in v128 chunkEnabledMask) + { + for (int i = 0; i < chunk.Count; i++) { + // If the chunk is enabled then it should be evaluated. + if (chunk.IsComponentEnabled(ref EnabledComponentHandle, i)) { + chunk.SetComponentEnabled(ref EvaluationComponentHandle, i, true); + } + } + } + } + } + + /// + /// Resets the InterruptedTag enabled value. + /// + [UpdateInGroup(typeof(BehaviorTreeSystemGroup), OrderLast = true)] + public partial struct InterruptedCleanupSystem : ISystem + { + private EntityQuery m_InterruptedCleanupQuery; + private ComponentTypeHandle m_InterruptedComponentHandle; + + /// + /// Creates the required objects for use within the job system. + /// + /// The current SystemState. + [BurstCompile] + private void OnCreate(ref SystemState state) + { + m_InterruptedCleanupQuery = new EntityQueryBuilder(Allocator.Temp) + .WithAll() + .Build(ref state); + m_InterruptedComponentHandle = state.GetComponentTypeHandle(); + } + + /// + /// Updates the data object values for use within the job system. + /// + /// The current SystemState. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + // Clean up the interrupted tag. + m_InterruptedComponentHandle.Update(ref state); + var interruptedJob = new InterruptedCleanupJob() + { + InterruptedComponentHandle = m_InterruptedComponentHandle, + }; + state.Dependency = interruptedJob.ScheduleParallel(m_InterruptedCleanupQuery, state.Dependency); + } + + /// + /// Job that resets the InterruptedTag value. + /// + [BurstCompile(CompileSynchronously = true)] + public partial struct InterruptedCleanupJob : IJobChunk + { + [UnityEngine.Tooltip("A reference to the Interrupted Component Handle.")] + public ComponentTypeHandle InterruptedComponentHandle; + + /// + /// Resets the InterruptedTag value. + /// + /// The entity that is being acted upon. + /// The index of the entity. + [BurstCompile] + public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex, bool useEnabledMask, in v128 chunkEnabledMask) + { + for (int i = 0; i < chunk.Count; i++) { + // Only chunks with the tag enabled will be returned so there's no need to check if the tag is enabled. + chunk.SetComponentEnabled(ref InterruptedComponentHandle, i, false); + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs.meta new file mode 100644 index 000000000..b6dbd8023 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 36ac1accbf78b7344be0384fd1edf942 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Systems/CleanupSystem.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs new file mode 100644 index 000000000..792d95f2b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs @@ -0,0 +1,204 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Systems +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Unity.Entities; + using UnityEngine; + + /// + /// Specifies that the node is an object task which can specify the next child that should run. + /// + public interface ITaskObjectParentNode + { + /// + /// Returns the index of the next child that should run. Set to ushort.MaxValue to ignore. + /// + ushort NextChildIndex { get; } + } + + /// + /// The DOTS data structure for the TaskObject class. + /// + public struct TaskObjectComponent : IBufferElementData + { + [Tooltip("The index of the task.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when an TaskObject node is active. + /// + public struct TaskObjectTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the TaskObject logic. + /// + [DisableAutoCreation] + [UpdateInGroup(typeof(TraversalTaskSystemGroup), OrderLast = true)] + public partial struct TaskObjectSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + private void OnUpdate(ref SystemState state) + { + // When the task is interrupted there is no callback which prevents Task.OnEnd from being called. Track the status within the referenced task object and if the status is different then + // the task was aborted and OnEnd needs to be called. + foreach (var (taskObjectComponents, taskComponents, entity) in + SystemAPI.Query, DynamicBuffer>().WithAll().WithEntityAccess()) { + var behaviorTree = BehaviorTree.GetBehaviorTree(entity); + if (behaviorTree == null) { + continue; + } + + for (int i = 0; i < taskObjectComponents.Length; ++i) { + var taskComponent = taskComponents[taskObjectComponents[i].Index]; + if (taskComponent.Status == TaskStatus.Success || taskComponent.Status == TaskStatus.Failure) { + var task = behaviorTree.GetTask(taskObjectComponents[i].Index) as Task; + if (task.Status != taskComponent.Status) { + task.OnEnd(); + task.Status = taskComponent.Status; + } + } + } + } + + // Update the task objects. + foreach (var (taskObjectComponents, taskComponents, branchComponents, entity) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll().WithEntityAccess()) { + + var behaviorTree = BehaviorTree.GetBehaviorTree(entity); + if (behaviorTree == null) { + continue; + } + + for (int i = 0; i < taskObjectComponents.Length; ++i) { + var taskComponent = taskComponents[taskObjectComponents[i].Index]; + var task = behaviorTree.GetTask(taskObjectComponents[i].Index) as Task; + if (taskComponent.Status == TaskStatus.Queued) { + task.Status = taskComponent.Status = TaskStatus.Running; + var buffer = taskComponents; + buffer[taskComponent.Index] = taskComponent; + + task.OnStart(); + } + if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + var status = task.OnUpdate(); + // Update the status if has changed. + if (status != taskComponent.Status) { + task.Status = taskComponent.Status = status; + var buffer = taskComponents; + buffer[taskComponent.Index] = taskComponent; + + // End the task if it is done running. + if (status != TaskStatus.Running) { + task.OnEnd(); + + var branchComponent = branchComponents[taskComponent.BranchIndex]; + branchComponent.NextIndex = taskComponent.ParentIndex; + var branchComponentBuffer = branchComponents; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + } + + if (task is IParentNode && (task is ITaskObjectParentNode taskObjectParentNode)) { + if (status == TaskStatus.Running) { + // Parent object tasks do not have a direct way to set the next child. Use the ITaskObjectParentNode to switch the child task. + if (taskObjectParentNode.NextChildIndex != ushort.MaxValue && taskComponents[taskObjectParentNode.NextChildIndex].Status != TaskStatus.Running) { + var branchComponent = branchComponents[taskComponent.BranchIndex]; + branchComponent.NextIndex = taskObjectParentNode.NextChildIndex; + var branchComponentBuffer = branchComponents; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + + var nextTaskComponent = taskComponents[taskObjectParentNode.NextChildIndex]; + nextTaskComponent.Status = TaskStatus.Queued; + var taskComponentBuffer = taskComponents; + taskComponentBuffer[taskObjectParentNode.NextChildIndex] = nextTaskComponent; + } + } else if (status == TaskStatus.Success || status == TaskStatus.Failure) { + // An interrupt should occur if the parent returns a success or failure status before the children. + var taskComponentBuffer = taskComponents; + var childCount = TraversalUtility.GetChildCount(taskComponent.Index, ref taskComponentBuffer); + var branchComponentBuffer = branchComponents; + for (ushort j = (ushort)(taskComponent.Index + 1); j < taskComponent.Index + childCount; ++j) { + var childTaskComponent = taskComponents[j]; + if (childTaskComponent.Status == TaskStatus.Running || childTaskComponent.Status == TaskStatus.Queued) { + childTaskComponent.Status = status; + taskComponentBuffer[j] = childTaskComponent; + + var branchComponent = branchComponents[childTaskComponent.BranchIndex]; + if (!SystemAPI.HasComponent(entity)) { + ComponentUtility.AddInterruptComponents(behaviorTree.World.EntityManager, entity); + } + SystemAPI.SetComponentEnabled(entity, true); + if (branchComponent.ActiveIndex == childTaskComponent.Index) { + branchComponent.NextIndex = ushort.MaxValue; + branchComponentBuffer[childTaskComponent.BranchIndex] = branchComponent; + } + } + } + } + } + } + } + } + } + + /// + /// A DOTS tag indicating when an TaskObject node needs to be reevaluated. + /// + public struct TaskObjectReevaluateTag : IComponentData, IEnableableComponent + { + } + + /// + /// Runs the TaskObject reevaluation logic. + /// + [DisableAutoCreation] + public partial struct TaskObjectReevaluateSystem : ISystem + { + /// + /// Updates the reevaluation logic. + /// + /// The current state of the system. + private void OnUpdate(ref SystemState state) + { + foreach (var (taskComponents, taskObjectComponents, entity) in + SystemAPI.Query, DynamicBuffer>().WithAll().WithEntityAccess()) { + for (int i = 0; i < taskObjectComponents.Length; ++i) { + var taskObjectComponent = taskObjectComponents[i]; + var taskComponent = taskComponents[taskObjectComponent.Index]; + if (!taskComponent.Reevaluate) { + continue; + } + var behaviorTree = BehaviorTree.GetBehaviorTree(entity); + if (behaviorTree == null) { + continue; + } + + var task = behaviorTree.GetTask(taskObjectComponent.Index) as IConditionalReevaluation; + var status = task.OnReevaluateUpdate(); + if (status != taskComponent.Status) { + taskComponent.Status = status; + var buffer = taskComponents; + buffer[taskComponent.Index] = taskComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs.meta new file mode 100644 index 000000000..096680351 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 203f2349f12650c4f887e6a0a3925c04 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Systems/TaskObjectSystem.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs new file mode 100644 index 000000000..8401b30d9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs @@ -0,0 +1,407 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Systems +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Unity.Burst; + using Unity.Collections; + using Unity.Entities; + using Unity.Jobs; + using UnityEngine; + + /// + /// Loops through the active tasks to determine if the system should stay active for the current tick. + /// + [UpdateInGroup(typeof(TraversalSystemGroup))] + [UpdateBefore(typeof(TraversalTaskSystemGroup))] + public partial struct DetermineEvaluationSystem : ISystem + { + private bool m_JobScheduled; + private EntityQuery m_Query; + private JobHandle m_Dependency; + private EntityCommandBuffer m_EntityCommandBuffer; + private NativeArray m_Results; + + [Tooltip("Should the group stay active? An inactive tree does not run.")] + public bool Active { get; private set; } + [Tooltip("Should the group be evaluate? This bool indicates if the entire tree should be evaluated instead of the reevaluation" + + "concept for conditional aborts. The tree will be reevaluated if any of the leaf tasks have a status of running.")] + public bool Evaluate { get; private set; } + + /// + /// The system has been created. + /// + /// The state of the system. + private void OnCreate(ref SystemState state) + { + Active = Evaluate = true; + m_JobScheduled = false; + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAll().WithAll().WithAbsent().Build(); + } + + /// + /// Executes the job to determine if the system should stay active and evaluating. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + Active = Evaluate = true; + m_JobScheduled = true; + + m_EntityCommandBuffer = new EntityCommandBuffer(Allocator.TempJob); + m_Results = new NativeArray(3, Allocator.TempJob, NativeArrayOptions.UninitializedMemory); + for (int i = 0; i < m_Results.Length; ++i) { + m_Results[i] = false; + } + + state.Dependency = new DetermineEvaluationJob() + { + EntityCommandBuffer = m_EntityCommandBuffer.AsParallelWriter(), + Results = m_Results + }.ScheduleParallel(m_Query, state.Dependency); + + m_Dependency = state.Dependency; + } + + /// + /// Completes the job and releases any memory. + /// + /// The running EntityManager. + [BurstCompile] + public void Complete(EntityManager entityManager) + { + if (!m_JobScheduled) { + return; + } + + m_Dependency.Complete(); + m_EntityCommandBuffer.Playback(entityManager); + m_EntityCommandBuffer.Dispose(); + + if (m_Results.IsCreated) { + if (m_Results[0]) { + Active = m_Results[1]; + Evaluate = m_Results[2]; + } else { + // If the first element is false then no trees executed. + Active = Evaluate = false; + } + m_Results.Dispose(); + } + m_JobScheduled = false; + } + + /// + /// The system has been destroyed. + /// + /// The current state of the system. + private void OnDestroy(ref SystemState state) + { + if (m_Dependency.IsCompleted) { + return; + } + + m_Results.Dispose(); + } + + /// + /// Job which determine if the system should stay active. If any behavior tree should stay active then the entire system must remain active. + /// + [BurstCompile] + public partial struct DetermineEvaluationJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + [Tooltip("The computed results.")] + [NativeDisableParallelForRestriction] public NativeArray Results; + + /// + /// Executes the job. + /// + /// The entity that is being acted upon. + /// The index of the entity. + /// An array of branch components. + /// An array of task components. + /// The EvaluationComponent that belongs to the entity. + [BurstCompile] + private void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref EvaluationComponent evaluationComponent) + { + Results[0] = true; // The first element indicates that the job has been executed. + + // No branches may be active. + var active = false; + for (int i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.ActiveIndex == ushort.MaxValue) { + continue; + } + active = true; + break; + } + + // If a branch is active then at least one task within that branch is active. + var evaluate = false; + if (active) { + var continueEvaluation = false; + for (int i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.ActiveIndex == ushort.MaxValue) { + continue; + } + + var taskComponent = taskComponents[branchComponent.ActiveIndex]; + var taskComponentBuffer = taskComponents; + var isParentTask = EvaluationUtility.IsParentTask(ref taskComponentBuffer, branchComponent.ActiveIndex); + // Continue evaluation if the active task is an outer node (action or conditional) and is not running OR + // the task is an inner node (composite or decorator), is running, and is not a parallel task. Parent tasks cannot run without an active child. + if ((!isParentTask && taskComponent.Status != TaskStatus.Running && taskComponent.ParentIndex != ushort.MaxValue) || + (isParentTask && (taskComponent.Status == TaskStatus.Queued || taskComponent.Status == TaskStatus.Running) && + !EvaluationUtility.IsParallelTask(ref taskComponentBuffer, branchComponent.ActiveIndex))) { + continueEvaluation = true; + break; + } + } + + if (continueEvaluation) { + evaluationComponent.EvaluationCount++; + + // Disable the evaluation if too many tasks have run. + if ((evaluationComponent.EvaluationType == EvaluationType.EntireTree && evaluationComponent.EvaluationCount >= taskComponents.Length * 2) || + (evaluationComponent.EvaluationType == EvaluationType.Count && evaluationComponent.EvaluationCount >= evaluationComponent.MaxEvaluationCount)) { + // Reset the count when the component has been disabled. + evaluationComponent.EvaluationCount = 0; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, false); + } else { + evaluate = true; + } + } else { + evaluationComponent.EvaluationCount = 0; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, false); + } + } + + // Sets the results. These results are not thread safe but that's ok because the value will only be read after the job is complete. + if (active) { + Results[1] = true; + } + if (evaluate) { + Results[2] = true; + } + } + } + } + + /// + /// Traverses and ensures the correct tasks are active. + /// + [UpdateInGroup(typeof(TraversalSystemGroup), OrderFirst = true)] + [UpdateBefore(typeof(TraversalTaskSystemGroup))] + public partial struct EvaluationSystem : ISystem + { + private bool m_JobScheduled; + private EntityQuery m_Query; + private JobHandle m_Dependency; + private EntityCommandBuffer m_EntityCommandBuffer; + + /// + /// The system has been created. + /// + /// The state of the system. + private void OnCreate(ref SystemState state) + { + m_JobScheduled = false; + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAbsent().Build(); + } + + /// + /// Starts the job which traverses the tree. + /// + /// The current state of the system. + private void OnUpdate(ref SystemState state) + { + m_JobScheduled = true; + + m_EntityCommandBuffer = new EntityCommandBuffer(state.WorldUpdateAllocator); + state.Dependency = new EvaluationJob() + { + EntityCommandBuffer = m_EntityCommandBuffer.AsParallelWriter(), + }.ScheduleParallel(m_Query, state.Dependency); + } + + /// + /// Completes the job and releases any memory. + /// + /// The running EntityManager. + /// Has the system been stopped? + [BurstCompile] + public void Complete(EntityManager entityManager, bool stopRunning = false) + { + if (!m_JobScheduled) { + return; + } + + if (!stopRunning) { + m_Dependency.Complete(); + m_EntityCommandBuffer.Playback(entityManager); + m_EntityCommandBuffer.Dispose(); + } + + m_JobScheduled = false; + } + + /// + /// Job which traverses the tree. + /// + [BurstCompile] + public partial struct EvaluationJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + + /// + /// Executes the job. + /// + /// The entity that is being acted upon. + /// The index of the entity.An array of branch components. + /// An array of task components. + [BurstCompile] + public void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents) + { + EvaluationUtility.Traverse(ref entity, ref EntityCommandBuffer, entityIndex, ref branchComponents, ref taskComponents); + } + } + } + + /// + /// Utility functions for the task evaluation. + /// + [BurstCompile] + public struct EvaluationUtility + { + /// + /// Is the task at the specified index a parent task. + /// + /// An array of task components. + /// The index to check if it is a parent. + /// True if the task at the specified index is a parent task. + [BurstCompile] + public static bool IsParentTask(ref DynamicBuffer taskComponents, int index) + { + // The last task cannot be a parent. + if (index == taskComponents.Length - 1) { + return false; + } + + // The next child will have a parent of the current task. + if (taskComponents[index + 1].ParentIndex == index) { + return true; + } + + // The parent index is different - the current task is not a parent. + return false; + } + + /// + /// Is the task at the specified index a parallel task. + /// + /// An array of task components. + /// The index to check if it is parallel. + /// True if the task at the specified index is a parallel task. + [BurstCompile] + public static bool IsParallelTask(ref DynamicBuffer taskComponents, int index) + { + // The task is a parent task, but is it parallel? + return taskComponents[index].BranchIndex != taskComponents[index + 1].BranchIndex; + } + + /// + /// Traverses through the TaskComponents to determine the active index. This method will update the corresponding tag. + /// + /// The entity being traversed. + /// The EntityCommandBuffer used to update the tag. + /// The index of the entity. + /// An array of branch components. + /// An array of task components. + [BurstCompile] + public static void Traverse(ref Entity entity, ref EntityCommandBuffer.ParallelWriter entityCommandBuffer, int entityIndex, ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents) + { + for (int i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.ActiveIndex != ushort.MaxValue && branchComponent.ActiveIndex == branchComponent.NextIndex) { + var activeTask = taskComponents[branchComponent.ActiveIndex]; + if (activeTask.Status == TaskStatus.Success || activeTask.Status == TaskStatus.Failure) { + branchComponent.NextIndex = activeTask.ParentIndex; + } + } + if (branchComponent.ActiveIndex != branchComponent.NextIndex) { + // Do not switch into a disabled task. + if (branchComponent.NextIndex != ushort.MaxValue && taskComponents[branchComponent.NextIndex].Disabled) { + var taskComponent = taskComponents[branchComponent.NextIndex]; + taskComponent.Status = TaskStatus.Inactive; + var taskComponentBuffer = taskComponents; + taskComponentBuffer[branchComponent.NextIndex] = taskComponent; + + branchComponent.NextIndex = branchComponent.ActiveIndex; + } else { + // The status for all children should be reset back to their inactive state if the next task is within a new branch. This will prevent + // the return status from being reset when the task ends normally. + var taskComponentBuffer = taskComponents; + if (branchComponent.NextIndex != ushort.MaxValue && + !TraversalUtility.IsParent((ushort)branchComponent.ActiveIndex, (ushort)branchComponent.NextIndex, ref taskComponentBuffer)) { + var nextTaskComponent = taskComponents[branchComponent.NextIndex]; + nextTaskComponent.Status = nextTaskComponent.Status == TaskStatus.Running ? TaskStatus.Running : TaskStatus.Queued; + taskComponentBuffer[branchComponent.NextIndex] = nextTaskComponent; + var childCount = TraversalUtility.GetChildCount(branchComponent.NextIndex, ref taskComponentBuffer); + for (int j = 0; j < childCount; ++j) { + var childTaskComponent = taskComponents[branchComponent.NextIndex + j + 1]; + childTaskComponent.Status = TaskStatus.Inactive; + taskComponentBuffer[branchComponent.NextIndex + j + 1] = childTaskComponent; + } + } + + branchComponent.ActiveIndex = branchComponent.NextIndex; + + // Change the component tag if the task type is different. + var componentType = branchComponent.ActiveIndex != ushort.MaxValue ? taskComponents[branchComponent.ActiveIndex].TagComponentType : new ComponentType(); + if (componentType != branchComponent.ActiveTagComponentType) { + if (branchComponent.ActiveTagComponentType.TypeIndex != TypeIndex.Null) { + var deactivateTag = true; + for (int j = 0; j < branchComponents.Length; ++j) { + // The tag should be deactivated if no other tasks have the same tag type. + if (i != j && branchComponents[j].ActiveIndex != ushort.MaxValue && + branchComponent.ActiveTagComponentType == branchComponents[j].ActiveTagComponentType) { + deactivateTag = false; + break; + } + } + + // The task of that type is no longer active - disable the system to prevent it from running. + if (deactivateTag) { + entityCommandBuffer.SetComponentEnabled(entityIndex, entity, branchComponent.ActiveTagComponentType, false); + } + } + // A new system type should start. + if (branchComponent.ActiveIndex != ushort.MaxValue) { + var taskComponent = taskComponents[branchComponent.ActiveIndex]; + entityCommandBuffer.SetComponentEnabled(entityIndex, entity, taskComponent.TagComponentType, true); + } + branchComponent.ActiveTagComponentType = componentType; + } + } + var branchComponentBuffer = branchComponents; + branchComponentBuffer[i] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs.meta new file mode 100644 index 000000000..d33ab44b4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 4e38e2be36422f54fa65b67063d03366 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Systems/TraversalSystems.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks.meta new file mode 100644 index 000000000..61befb4d7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0b7936234bfdce042b052d68dd0136f1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Actions.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Actions.meta rename to Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions.meta index 614c16ef6..ab1c73130 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Actions.meta +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 91c6a439cec3003498369e01301ee57a +guid: 72fd968959b610e4bb7994fedbaab0c9 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs new file mode 100644 index 000000000..5423f2907 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs @@ -0,0 +1,19 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + + /// + /// A TaskObject implementation of the Action task. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public abstract class Action : Task, IAction + { + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs.meta new file mode 100644 index 000000000..a4f0d90f5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 24e232a868c7a0d439cb82feeb963c8e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Action.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs new file mode 100644 index 000000000..8f1c70149 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs @@ -0,0 +1,31 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using UnityEngine; + + /// + /// A TaskObject implementation of the Action task. This class can be used when the task should not be grouped by the StackedAction task. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public abstract class ActionNode : Task, ILogicNode, IAction + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs.meta new file mode 100644 index 000000000..63bef15f6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f95ceadf4eaf7df499091158c2ba5178 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ActionNode.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList.meta new file mode 100644 index 000000000..d79aed918 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 31447ed8785ef5146bbb37d6466c1954 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs new file mode 100644 index 000000000..086701b0b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs @@ -0,0 +1,45 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using UnityEngine; + + [NodeDescription("Adds the GameObject to the array.")] + [Shared.Utility.Category("Lists")] + public class AddGameObjectToArray : TargetGameObjectAction + { + [Tooltip("The list of possible GameObjects.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + [Tooltip("Are duplicates allowed to be added?")] + [SerializeField] protected SharedVariable m_AllowDuplicates = true; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (!m_AllowDuplicates.Value && m_StoreResult.Value.Contains(m_ResolvedGameObject)) { + return TaskStatus.Failure; + } + + var array = m_StoreResult.Value; + if (array == null) { + array = new GameObject[1]; + } else { + System.Array.Resize(ref array, array.Length + 1); + } + + m_StoreResult.Value = array; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs.meta new file mode 100644 index 000000000..b32611198 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0e15921d659313647b2d4d2b3c76c6ec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToArray.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs new file mode 100644 index 000000000..334726a3d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs @@ -0,0 +1,38 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using System.Collections.Generic; + using UnityEngine; + + [NodeDescription("Adds the GameObject to the list.")] + [Shared.Utility.Category("Lists")] + public class AddGameObjectToList : TargetGameObjectAction + { + [Tooltip("The list of possible GameObjects.")] + [RequireShared] [SerializeField] protected SharedVariable> m_StoreResult; + [Tooltip("Are duplicates allowed to be added?")] + [SerializeField] protected SharedVariable m_AllowDuplicates = true; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (!m_AllowDuplicates.Value && m_StoreResult.Value.Contains(m_ResolvedGameObject)) { + return TaskStatus.Failure; + } + + m_StoreResult.Value.Add(m_ResolvedGameObject); + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs.meta new file mode 100644 index 000000000..7d9d897c0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 771474f9417f55641b0b1a23028e05d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/AddGameObjectToList.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs new file mode 100644 index 000000000..bead02de7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs @@ -0,0 +1,49 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Sets a random GameObject value from the GameObject array.")] + [Shared.Utility.Category("Lists")] + public class RandomGameObjectFromArray : Action + { + [Tooltip("The list of possible GameObjects.")] + [SerializeField] protected SharedVariable m_GameObjects; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] protected int m_Seed; + + /// + /// Callback when the behavior tree is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + Random.InitState(m_Seed); + } + } + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_GameObjects.Value == null || m_GameObjects.Value.Length == 0) { + return TaskStatus.Failure; + } + + m_StoreResult.Value = m_GameObjects.Value[Random.Range(0, m_GameObjects.Value.Length)]; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs.meta new file mode 100644 index 000000000..be0fc0e13 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a32475ebd3e6d3145bd238c01607ea15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromArray.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs new file mode 100644 index 000000000..6bd0e4941 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs @@ -0,0 +1,50 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + using System.Collections.Generic; + + [NodeDescription("Sets a random GameObject value from the GameObject list.")] + [Shared.Utility.Category("Lists")] + public class RandomGameObjectFromList : Action + { + [Tooltip("The list of possible GameObjects.")] + [SerializeField] protected SharedVariable> m_GameObjects; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] protected int m_Seed; + + /// + /// Callback when the behavior tree is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + Random.InitState(m_Seed); + } + } + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_GameObjects.Value == null || m_GameObjects.Value.Count == 0) { + return TaskStatus.Failure; + } + + m_StoreResult.Value = m_GameObjects.Value[Random.Range(0, m_GameObjects.Value.Count)]; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs.meta new file mode 100644 index 000000000..74b8cd707 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: b7809ab5aee37184c9a3f0c4b013ab0a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RandomGameObjectFromList.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs new file mode 100644 index 000000000..5850da957 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs @@ -0,0 +1,57 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Removes the GameObject from the array.")] + [Shared.Utility.Category("Lists")] + public class RemoveGameObjectFromArray : TargetGameObjectAction + { + [Tooltip("The list of possible GameObjects.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + var array = m_StoreResult.Value; + if (array == null) { + return TaskStatus.Failure; + } + + // Find the index of the GameObject to remove. + var indexToRemove = -1; + for (int i = 0; i < array.Length; i++) { + if (array[i] == m_ResolvedGameObject) { + indexToRemove = i; + break; + } + } + if (indexToRemove == -1) { + return TaskStatus.Failure; + } + + // Create a new array with the GameObject removed. + var newArray = new GameObject[array.Length - 1]; + for (int i = 0, j = 0; i < array.Length; ++i) { + if (i != indexToRemove) { + newArray[j] = array[i]; + ++j; + } + } + + m_StoreResult.Value = newArray; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs.meta new file mode 100644 index 000000000..f4d3a9b3a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 29d1b655a839c324c9ca4b12f3af0351 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromArray.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs new file mode 100644 index 000000000..dbff31494 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs @@ -0,0 +1,31 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using System.Collections.Generic; + using UnityEngine; + + [NodeDescription("Removes the GameObject from the list.")] + [Shared.Utility.Category("Lists")] + public class RemoveGameObjectFromList : TargetGameObjectAction + { + [Tooltip("The list of possible GameObjects.")] + [RequireShared] [SerializeField] protected SharedVariable> m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + return m_StoreResult.Value.Remove(m_ResolvedGameObject) ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs.meta new file mode 100644 index 000000000..dc2804bb4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 89e178d0be1b41b4b933d144dc32aef1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/RemoveGameObjectFromList.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs new file mode 100644 index 000000000..b87de872c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs @@ -0,0 +1,39 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Selects the GameObject from the array.")] + [Shared.Utility.Category("Lists")] + public class SelectGameObjectFromArray : Action + { + [Tooltip("The list of possible GameObjects.")] + [SerializeField] protected SharedVariable m_GameObjects; + [Tooltip("The index of the GameObject that should be selected.")] + [SerializeField] protected SharedVariable m_ElementIndex; + [Tooltip("The selected GameObject.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_GameObjects.Value == null || m_ElementIndex.Value < 0 || m_ElementIndex.Value > m_GameObjects.Value.Length) { + return TaskStatus.Failure; + } + + m_StoreResult.Value = m_GameObjects.Value[m_ElementIndex.Value]; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs.meta new file mode 100644 index 000000000..88c31141a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: d082de8064bdd7c4dada3c5a48e46fef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromArray.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs new file mode 100644 index 000000000..f61612a76 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs @@ -0,0 +1,40 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using System.Collections.Generic; + using UnityEngine; + + [NodeDescription("Selects the GameObject from the list.")] + [Shared.Utility.Category("Lists")] + public class SelectGameObjectFromList : Action + { + [Tooltip("The list of possible GameObjects.")] + [SerializeField] protected SharedVariable> m_GameObjects; + [Tooltip("The index of the GameObject that should be selected.")] + [SerializeField] protected SharedVariable m_ElementIndex; + [Tooltip("The selected GameObject.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_GameObjects.Value == null || m_ElementIndex.Value < 0 || m_ElementIndex.Value > m_GameObjects.Value.Count) { + return TaskStatus.Failure; + } + + m_StoreResult.Value = m_GameObjects.Value[m_ElementIndex.Value]; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs.meta new file mode 100644 index 000000000..aa82b0518 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: e0dab44acdb589c4a8d2966c9ddc73a0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/IList/SelectGameObjectFromList.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs new file mode 100644 index 000000000..551962c32 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs @@ -0,0 +1,127 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + + /// + /// A node representation of the idle task. + /// + [NodeIcon("fc4d1b83384913b4abfbd8455db6df5b", "79a6985a753bb244fb5b32dc0f26addb")] + [NodeDescription("Returns a TaskStatus of running. The task will only stop when interrupted or a conditional abort is triggered.")] + public struct Idle : ILogicNode, ITaskComponentData, IAction + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public ComponentType Tag { get => typeof(IdleTag); } + public System.Type SystemType { get => typeof(IdleTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new IdleComponent() { + Index = RuntimeIndex + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the Idle class. + /// + public struct IdleComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when a Idle node is active. + /// + public struct IdleTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Idle logic. + /// + [DisableAutoCreation] + public partial struct IdleTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAll().Build(); + state.Dependency = new IdleJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct IdleJob : IJobEntity + { + /// + /// Executes the idle logic. + /// An array of TaskComponents. + /// An array of IdleComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer taskComponents, ref DynamicBuffer idleComponents) + { + for (int i = 0; i < idleComponents.Length; ++i) { + var idleComponent = idleComponents[i]; + var taskComponent = taskComponents[idleComponent.Index]; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[idleComponent.Index] = taskComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs.meta new file mode 100644 index 000000000..b044504d9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3cbbfc0d48db475498ad454651507929 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Idle.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs new file mode 100644 index 000000000..082719019 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs @@ -0,0 +1,34 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// Logs the specified string. + /// + [NodeIcon("c97bee71424b3e247a161d1279643506", "138439e3588de5d449b7949d68d32ad8")] + [NodeDescription("A simple task which will output the specified text and return success. It can be used for debugging.")] + public class Log : Action + { + [Tooltip("The string that should be outputted to the console.")] + [SerializeField] protected SharedVariable m_Text; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + Debug.Log(m_Text.Value); + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs.meta new file mode 100644 index 000000000..9e8e69ae4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 74a01e8c621648b44bb6cf0cff363e59 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Log.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs new file mode 100644 index 000000000..74f9d33d9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs @@ -0,0 +1,38 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// Logs the specified value. + /// + [NodeIcon("c97bee71424b3e247a161d1279643506", "138439e3588de5d449b7949d68d32ad8")] + public class LogValue : Action + { + [Tooltip("The value that should be outputted to the console.")] + [RequireShared] [SerializeField] protected SharedVariable m_Value; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_Value == null || m_Value.Scope == SharedVariable.SharingScope.Empty) { + Debug.LogWarning("Warning: The LogValue.Value variable must be set."); + return TaskStatus.Failure; + } + + Debug.Log(m_Value.GetValue()); + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs.meta new file mode 100644 index 000000000..41038d88d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0e6b3f8ede31f634ea1aa5727a7df673 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/LogValue.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math.meta new file mode 100644 index 000000000..728026274 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7177abfd9732b2d45aec5e96e4415d68 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs new file mode 100644 index 000000000..bc249d049 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs @@ -0,0 +1,31 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Flips the value of the boolean.")] + [Shared.Utility.Category("Math")] + public class BoolFlip : Action + { + [Tooltip("The bool that should be flipped.")] + [SerializeField] protected SharedVariable m_Bool; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_Bool.Value = !m_Bool.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs.meta new file mode 100644 index 000000000..c826fea22 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a6654554de66a1340bff69fd22ffcacf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolFlip.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs new file mode 100644 index 000000000..cddf73989 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs @@ -0,0 +1,61 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Performs a math operation on the two booleans.")] + [Shared.Utility.Category("Math")] + public class BoolOperator : Action + { + /// + /// Specifies the type of bool operation that should be performed. + /// + protected enum Operation + { + AND, // Returns the AND between two booleans. + OR, // Returns the OR between two booleans. + NAND, // Returns the NAND between two booleans. + XOR, // Returns the XOR between two booleans. + } + + [Tooltip("The operation to perform.")] + [SerializeField] protected SharedVariable m_Operation; + [Tooltip("The first boolean.")] + [SerializeField] protected SharedVariable m_Bool1; + [Tooltip("The second boolean.")] + [SerializeField] protected SharedVariable m_Bool2; + [Tooltip("The variable to store the result.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + switch (m_Operation.Value) { + case Operation.AND: + m_StoreResult.Value = m_Bool1.Value && m_Bool2.Value; + break; + case Operation.OR: + m_StoreResult.Value = m_Bool1.Value || m_Bool2.Value; + break; + case Operation.NAND: + m_StoreResult.Value = !(m_Bool1.Value && m_Bool2.Value); + break; + case Operation.XOR: + m_StoreResult.Value = (m_Bool1.Value ^ m_Bool2.Value); + break; + } + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs.meta new file mode 100644 index 000000000..5786a0bdd --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: bf243997f53145143915ba48268817b4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/BoolOperator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs new file mode 100644 index 000000000..cb4098d8a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs @@ -0,0 +1,73 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Performs a math operation on the two floats.")] + [Shared.Utility.Category("Math")] + public class FloatOperator : Action + { + /// + /// Specifies the type of float operation that should be performed. + /// + protected enum Operation + { + Add, // Returns the addition between two floats. + Subtract, // Returns the division between two floats. + Multiply, // Returns the multiplication between two floats. + Divide, // Returns the division between two floats. + Modulo, // Returns the modulo between two floats. + Min, // Returns the minimum of two floats. + Max, // Returns the maximum of two floats. + } + + [Tooltip("The operation to perform.")] + [SerializeField] protected SharedVariable m_Operation; + [Tooltip("The first float.")] + [SerializeField] protected SharedVariable m_Float1; + [Tooltip("The second float.")] + [SerializeField] protected SharedVariable m_Float2; + [Tooltip("The variable to store the result.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + switch (m_Operation.Value) { + case Operation.Add: + m_StoreResult.Value = m_Float1.Value + m_Float2.Value; + break; + case Operation.Subtract: + m_StoreResult.Value = m_Float1.Value - m_Float2.Value; + break; + case Operation.Multiply: + m_StoreResult.Value = m_Float1.Value * m_Float2.Value; + break; + case Operation.Divide: + m_StoreResult.Value = m_Float1.Value / m_Float2.Value; + break; + case Operation.Modulo: + m_StoreResult.Value = m_Float1.Value % m_Float2.Value; + break; + case Operation.Min: + m_StoreResult.Value = Mathf.Min(m_Float1.Value, m_Float2.Value); + break; + case Operation.Max: + m_StoreResult.Value = Mathf.Max(m_Float1.Value, m_Float2.Value); + break; + } + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs.meta new file mode 100644 index 000000000..9d9aa1a8e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fd85a074520c85b4aac9a2e02a37fe47 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/FloatOperator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs new file mode 100644 index 000000000..aa8156149 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs @@ -0,0 +1,73 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Performs a math operation on the two integers.")] + [Shared.Utility.Category("Math")] + public class IntOperator : Action + { + /// + /// Specifies the type of int operation that should be performed. + /// + protected enum Operation + { + Add, // Returns the addition between two integers. + Subtract, // Returns the division between two integers. + Multiply, // Returns the multiplication between two integers. + Divide, // Returns the division between two integers. + Modulo, // Returns the modulo between two integers. + Min, // Returns the minimum of two integers. + Max, // Returns the maximum of two integers. + } + + [Tooltip("The operation to perform.")] + [SerializeField] protected SharedVariable m_Operation; + [Tooltip("The first integer.")] + [SerializeField] protected SharedVariable m_Integer1; + [Tooltip("The second integer.")] + [SerializeField] protected SharedVariable m_Integer2; + [Tooltip("The variable to store the result.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + switch (m_Operation.Value) { + case Operation.Add: + m_StoreResult.Value = m_Integer1.Value + m_Integer2.Value; + break; + case Operation.Subtract: + m_StoreResult.Value = m_Integer1.Value - m_Integer2.Value; + break; + case Operation.Multiply: + m_StoreResult.Value = m_Integer1.Value * m_Integer2.Value; + break; + case Operation.Divide: + m_StoreResult.Value = m_Integer1.Value / m_Integer2.Value; + break; + case Operation.Modulo: + m_StoreResult.Value = m_Integer1.Value % m_Integer2.Value; + break; + case Operation.Min: + m_StoreResult.Value = Mathf.Min(m_Integer1.Value, m_Integer2.Value); + break; + case Operation.Max: + m_StoreResult.Value = Mathf.Max(m_Integer1.Value, m_Integer2.Value); + break; + } + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs.meta new file mode 100644 index 000000000..8731df2d2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 77d11b9520f296b43a19d4a987844d73 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/IntOperator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs new file mode 100644 index 000000000..b74c7f354 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs @@ -0,0 +1,45 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Tasks.Actions.Math +{ + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Tasks.Actions; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [Tooltip("Returns a random bool value.")] + [Shared.Utility.Category("Math")] + public class RandomBool : Action + { + [Tooltip("The stored random bool value.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] protected int m_Seed; + + /// + /// Callback when the behavior tree is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + Random.InitState(m_Seed); + } + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = Random.value > 0.5; + return base.OnUpdate(); + } + + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs.meta new file mode 100644 index 000000000..e70f373a2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: e39f6d31610d07b4ca1c977ce86198bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomBool.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs new file mode 100644 index 000000000..5b5909596 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs @@ -0,0 +1,49 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Tasks.Actions.Math +{ + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Tasks.Actions; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [Tooltip("Returns a random float between the specified values (inclusive).")] + [Shared.Utility.Category("Math")] + public class RandomFloat : Action + { + [Tooltip("The minimum float value (inclusive).")] + [SerializeField] protected SharedVariable m_MinimumFloat; + [Tooltip("The maximum float value (inclusive).")] + [SerializeField] protected SharedVariable m_MaximumFloat; + [Tooltip("The stored random float value.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] protected int m_Seed; + + /// + /// Callback when the behavior tree is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + Random.InitState(m_Seed); + } + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = Random.Range(m_MinimumFloat.Value, m_MaximumFloat.Value); + return base.OnUpdate(); + } + + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs.meta new file mode 100644 index 000000000..b975d4366 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: e4cd0328bf01f2a46a89268dcaf0cd26 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomFloat.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs new file mode 100644 index 000000000..1d3bc24df --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs @@ -0,0 +1,49 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Tasks.Actions.Math +{ + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.BehaviorDesigner.Runtime.Tasks.Actions; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [Tooltip("Returns a random integer between the specified values (inclusive).")] + [Shared.Utility.Category("Math")] + public class RandomInteger : Action + { + [Tooltip("The minimum integer value (inclusive).")] + [SerializeField] protected SharedVariable m_MinimumInteger; + [Tooltip("The maximum integer value (inclusive).")] + [SerializeField] protected SharedVariable m_MaximumInteger; + [Tooltip("The stored random integer value.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] protected int m_Seed; + + /// + /// Callback when the behavior tree is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + Random.InitState(m_Seed); + } + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = Random.Range(m_MinimumInteger.Value, m_MaximumInteger.Value); + return base.OnUpdate(); + } + + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs.meta new file mode 100644 index 000000000..f66b157e0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: bf8b675bf82b06f44a19056eedc9e3f6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/RandomInteger.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs new file mode 100644 index 000000000..3f75c7a3d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the boolean value.")] + [Shared.Utility.Category("Math")] + public class SetBool : Action + { + [Tooltip("The bool value to set.")] + [SerializeField] protected SharedVariable m_Value; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = m_Value.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs.meta new file mode 100644 index 000000000..738f55a7e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 77b177a61d9c7c94889fe58326045014 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetBool.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs new file mode 100644 index 000000000..851289a55 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the float value.")] + [Shared.Utility.Category("Math")] + public class SetFloat : Action + { + [Tooltip("The float value to set.")] + [SerializeField] protected SharedVariable m_Value; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = m_Value.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs.meta new file mode 100644 index 000000000..7dc19dfd6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 7114039f3b7a3ff439a901637ba04235 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetFloat.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs new file mode 100644 index 000000000..93c7a0370 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the integer value.")] + [Shared.Utility.Category("Math")] + public class SetInt : Action + { + [Tooltip("The int value to set.")] + [SerializeField] protected SharedVariable m_Value; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = m_Value.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs.meta new file mode 100644 index 000000000..8a7aa125e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: eed961f4064f9024f8e51b3ddb69020a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetInt.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs new file mode 100644 index 000000000..5908b3c44 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the string value.")] + [Shared.Utility.Category("Math")] + public class SetString : Action + { + [Tooltip("The string value to set.")] + [SerializeField] protected SharedVariable m_Value; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = m_Value.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs.meta new file mode 100644 index 000000000..8c8aa4e75 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 450ec74688a332e42a42173708a621c1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetString.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs new file mode 100644 index 000000000..61433e6d0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the Vector2 value.")] + [Shared.Utility.Category("Math")] + public class SetVector2 : Action + { + [Tooltip("The Vector2 value to set.")] + [SerializeField] protected SharedVariable m_Value; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = m_Value.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs.meta new file mode 100644 index 000000000..58e641969 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 1507af45b59e2d642a8372f952ef5bec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector2.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs new file mode 100644 index 000000000..ec38733e3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the Vector3 value.")] + [Shared.Utility.Category("Math")] + public class SetVector3 : Action + { + [Tooltip("The Vector3 value to set.")] + [SerializeField] protected SharedVariable m_Value; + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + m_StoreResult.Value = m_Value.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs.meta new file mode 100644 index 000000000..906ff6c23 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8fd35c62b935e674da0ed3b7d450a049 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Math/SetVector3.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs new file mode 100644 index 000000000..5cdfcaa6a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs @@ -0,0 +1,180 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using Unity.Collections; + + [NodeIcon("7c0aba0d8377aac48966d8e3f817a2a8", "90105f40f82a30e45b08d150c1928950")] + [NodeDescription("Performs the actual interruption. This will immediately stop the specified tasks from running and will return success or failure depending on the value of interrupt success.")] + public struct PerformInterruption : ILogicNode, ITaskComponentData, IAction + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("The task that should be interrupted.")] + [SerializeField] ILogicNode[] m_InterruptTasks; + [Tooltip("Should the interrupted task return success?")] + [SerializeField] bool m_InterruptSuccess; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public ComponentType Tag { get => typeof(PerformInterruptionTag); } + public System.Type SystemType { get => typeof(PerformInterruptionTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + if (m_InterruptTasks == null || m_InterruptTasks.Length == 0) { + UnityEngine.Debug.LogError("Error: At least one interrupt task must be specified."); + return; + } + + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + + var indicies = new ushort[m_InterruptTasks.Length]; + var nullTaskCount = 0; + for (int i = 0; i < m_InterruptTasks.Length; ++i) { + if (m_InterruptTasks[i] == null) { + nullTaskCount++; + continue; + } + indicies[i - nullTaskCount] = m_InterruptTasks[i].Index; + } + if (nullTaskCount > 0) { + System.Array.Resize(ref indicies, indicies.Length - nullTaskCount); + } + + var builder = new BlobBuilder(Allocator.Temp); + ref var root = ref builder.ConstructRoot(); + var indicesArray = builder.Allocate(ref root.Indicies, indicies.Length); + for (int i = 0; i < indicies.Length; i++) { + indicesArray[i] = indicies[i]; + } + var blobAsset = builder.CreateBlobAssetReference(Allocator.Persistent); + builder.Dispose(); + + buffer.Add(new PerformInterruptionComponent() { + Index = RuntimeIndex, + InterruptIndicies = blobAsset, + InterruptSuccess = m_InterruptSuccess + }); + + var entityManager = world.EntityManager; + ComponentUtility.AddInterruptComponents(entityManager, entity); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the PerformInterruption class. + /// + public struct PerformInterruptionComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + [SerializeField] public ushort Index; + [Tooltip("The indicies of the tasks that should be interrupted.")] + [SerializeField] public BlobAssetReference InterruptIndicies; + [Tooltip("Should the interrupted tasks return success?")] + [SerializeField] public bool InterruptSuccess; + } + + /// + /// A DOTS tag indicating when a PerformInterruption node is active. + /// + public struct PerformInterruptionTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the PerformInterruption logic. + /// + [DisableAutoCreation] + public partial struct PerformInterruptionTaskSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (branchComponents, taskComponents, performInterruptionComponents, entity) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll().WithEntityAccess()) { + for (int i = 0; i < performInterruptionComponents.Length; ++i) { + var performInterruptionComponent = performInterruptionComponents[i]; + var taskComponent = taskComponents[performInterruptionComponent.Index]; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Success; + var taskComponentsBuffer = taskComponents; + taskComponentsBuffer[taskComponent.Index] = taskComponent; + + var branchComponentsBuffer = branchComponents; + for (int j = 0; j < performInterruptionComponent.InterruptIndicies.Value.Indicies.Length; ++j) { + var interruptTaskComponent = taskComponents[performInterruptionComponent.InterruptIndicies.Value.Indicies[j]]; + var interruptBranchComponent = branchComponents[interruptTaskComponent.BranchIndex]; + interruptBranchComponent.InterruptType = performInterruptionComponent.InterruptSuccess ? InterruptType.ImmediateSuccess : InterruptType.ImmediateFailure; + interruptBranchComponent.InterruptIndex = interruptTaskComponent.Index; + branchComponentsBuffer[interruptTaskComponent.BranchIndex] = interruptBranchComponent; + } + + state.EntityManager.SetComponentEnabled(entity, true); + } + } + } + } + + /// + /// The task has been destroyed. + /// + /// The current state of the system. + private void OnDestroy(ref SystemState state) + { + foreach (var performInterruptionComponents in SystemAPI.Query>()) { + for (int i = 0; i < performInterruptionComponents.Length; ++i) { + var performInterruptionComponent = performInterruptionComponents[i]; + if (performInterruptionComponent.InterruptIndicies.IsCreated) { + performInterruptionComponent.InterruptIndicies.Dispose(); + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs.meta new file mode 100644 index 000000000..1dfe01d2b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 9407f1f7d7a4efc43928e2885fbd047d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/PerformInterruption.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs new file mode 100644 index 000000000..ec00c1879 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs @@ -0,0 +1,60 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using System.Collections; + using UnityEngine; + + [NodeIcon("e0a8f1df788b6274a9a24003859dfa7e")] + [NodeDescription("Restarts the specified behavior tree.")] + public class RestartBehaviorTree : TargetBehaviorTreeAction + { + private TaskStatus m_Status; + + /// + /// The task has started. + /// + public override void OnStart() + { + m_Status = TaskStatus.Queued; + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + // The coroutine has already been started if the status is not queued. + if (m_Status != TaskStatus.Queued) { + return m_Status; + } + + if (m_ResolvedBehaviorTree == null) { + return TaskStatus.Failure; + } + + m_Status = TaskStatus.Running; + StartCoroutine(RestartBehavior()); + return m_Status; + } + + /// + /// Restarts the behavior tree using a coroutine to allow structural changes. + /// + private IEnumerator RestartBehavior() + { + yield return new WaitForEndOfFrame(); + + m_Status = m_ResolvedBehaviorTree.RestartBehavior() ? TaskStatus.Success : TaskStatus.Failure; + } + + + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs.meta new file mode 100644 index 000000000..f9f76a496 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 1240560819407764d95369a091d6f5e9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/RestartBehaviorTree.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs new file mode 100644 index 000000000..2e0ee13c2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs @@ -0,0 +1,151 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + /// + /// A node representation of the return status task. + /// + [NodeDescription("The return status task will immediately return sucess or failure.")] + public struct ReturnStatus : ILogicNode, ITaskComponentData, IAction, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("Should a success status be returned? If false then failure will be returned.")] + [SerializeField] bool m_Success; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public bool Success { get => m_Success; set => m_Success = value; } + + public ComponentType Tag { get => typeof(ReturnStatusTag); } + public System.Type SystemType { get => typeof(ReturnStatusTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new ReturnStatusComponent() { + Index = RuntimeIndex, + Success = m_Success + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.Success = Success; + return clone; + } + } + + /// + /// The DOTS data structure for the ReturnStatus class. + /// + public struct ReturnStatusComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("Should a success status be returned? If false then failure will be returned.")] + [SerializeField] bool m_Success; + public ushort Index { get => m_Index; set => m_Index = value; } + public bool Success { get => m_Success; set => m_Success = value; } + } + + /// + /// A DOTS tag indicating when a ReturnStatus node is active. + /// + public struct ReturnStatusTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the ReturnStatus logic. + /// + [DisableAutoCreation] + public partial struct ReturnStatusTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new ReturnStatusJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct ReturnStatusJob : IJobEntity + { + /// + /// Executes the return status logic. + /// + /// An array of TaskComponents. + /// An array of ReturnStatusComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer taskComponents, ref DynamicBuffer returnStatusComponents) + { + for (int i = 0; i < returnStatusComponents.Length; ++i) { + var returnStatusComponent = returnStatusComponents[i]; + var taskComponent = taskComponents[returnStatusComponent.Index]; + if (taskComponent.Status != TaskStatus.Queued) { + continue; + } + taskComponent.Status = returnStatusComponent.Success ? TaskStatus.Success : TaskStatus.Failure; + taskComponents[returnStatusComponent.Index] = taskComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs.meta new file mode 100644 index 000000000..c5593192d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 837791748c4f57c4293429e8e94fd32c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/ReturnStatus.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs new file mode 100644 index 000000000..19a4f367f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs @@ -0,0 +1,81 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Events; + using UnityEngine; + + /// + /// Executes the specified event. + /// + [NodeIcon("bde76446ddfbd234488e8d591bc75e2f", "6d03b96c0f79bee4ab2e14fc82aa0031")] + [NodeDescription("Sends an event to the behavior tree, returns success after sending the event.")] + public class SendEvent : TargetBehaviorTreeAction + { + [Tooltip("The name of the event.")] + [SerializeField] protected SharedVariable m_EventName; + [Tooltip("Is the event a global event?")] + [SerializeField] protected SharedVariable m_GlobalEvent; + [Tooltip("Optionally specify a first argument to send.")] + [RequireShared] [SerializeField] protected SharedVariable m_Argument1; + [Tooltip("Optionally specify a second argument to send.")] + [RequireShared] [SerializeField] protected SharedVariable m_Argument2; + [Tooltip("Optionally specify a third argument to send.")] + [RequireShared] [SerializeField] protected SharedVariable m_Argument3; + + /// + /// Executes the event. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_ResolvedBehaviorTree == null) { + return TaskStatus.Failure; + } + + if (string.IsNullOrEmpty(m_EventName.Value)) { + Debug.LogError("Error: Unable to send event. The event name is empty."); + return TaskStatus.Failure; + } + + if (m_Argument1 == null || !m_Argument1.IsShared) { + if (m_GlobalEvent.Value) { + EventHandler.ExecuteEvent(m_EventName.Value); + } else { + EventHandler.ExecuteEvent(m_ResolvedBehaviorTree, m_EventName.Value); + } + } else { + if (m_Argument2 == null || !m_Argument2.IsShared) { + if (m_GlobalEvent.Value) { + EventHandler.ExecuteEvent(m_EventName.Value, m_Argument1.GetValue()); + } else { + EventHandler.ExecuteEvent(m_ResolvedBehaviorTree, m_EventName.Value, m_Argument1.GetValue()); + } + } else { + if (m_Argument3 == null || !m_Argument3.IsShared) { + if (m_GlobalEvent.Value) { + EventHandler.ExecuteEvent(m_EventName.Value, m_Argument1.GetValue(), m_Argument2.GetValue()); + } else { + EventHandler.ExecuteEvent(m_ResolvedBehaviorTree, m_EventName.Value, m_Argument1.GetValue(), m_Argument2.GetValue()); + } + } else { + if (m_GlobalEvent.Value) { + EventHandler.ExecuteEvent(m_EventName.Value, m_Argument1.GetValue(), m_Argument2.GetValue(), m_Argument3.GetValue()); + } else { + EventHandler.ExecuteEvent(m_ResolvedBehaviorTree, m_EventName.Value, m_Argument1.GetValue(), m_Argument2.GetValue(), m_Argument3.GetValue()); + } + } + } + } + + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs.meta new file mode 100644 index 000000000..4de4a5e9c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 6af31db67c14aba458ffd11cd0b671aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SendEvent.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs new file mode 100644 index 000000000..bc32d53cc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs @@ -0,0 +1,20 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + + /// + /// The StackedAction task allows for multiple actions to be added to the same node. + /// + [NodeIcon("dacf20a036b1f5e41886d84ac4a47779", "2df1cb3efc025214cbab4df573bb3515")] + [NodeDescription("Allows multiple action tasks to be added to a single node.")] + public class StackedAction : StackedTask, IAction + { + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs.meta new file mode 100644 index 000000000..f48857ff5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 4342d213dec4aa5458c9e9969ef98fc7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StackedAction.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs new file mode 100644 index 000000000..8cd120f86 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs @@ -0,0 +1,58 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using System.Collections; + using UnityEngine; + + [NodeIcon("e0a8f1df788b6274a9a24003859dfa7e")] + [NodeDescription("Starts the specified behavior tree.")] + public class StartBehaviorTree : TargetBehaviorTreeAction + { + private TaskStatus m_Status; + + /// + /// The task has started. + /// + public override void OnStart() + { + m_Status = TaskStatus.Queued; + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + // The coroutine has already been started if the status is not queued. + if (m_Status != TaskStatus.Queued) { + return m_Status; + } + + if (m_ResolvedBehaviorTree == null || m_ResolvedBehaviorTree.IsActive()) { + return TaskStatus.Failure; + } + + m_Status = TaskStatus.Running; + StartCoroutine(StartBehavior()); + return m_Status; + } + + /// + /// Starts the behavior tree using a coroutine to allow structural changes. + /// + private IEnumerator StartBehavior() + { + yield return new WaitForEndOfFrame(); + + m_Status = m_ResolvedBehaviorTree.StartBehavior() ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs.meta new file mode 100644 index 000000000..e807d5bdb --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a308f84e10d3f9b4e89c16ea755e4120 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StartBehaviorTree.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs new file mode 100644 index 000000000..9ee1bea07 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs @@ -0,0 +1,32 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeIcon("e0a8f1df788b6274a9a24003859dfa7e")] + [NodeDescription("Stops the specified behavior tree.")] + public class StopBehaviorTree : TargetBehaviorTreeAction + { + [SerializeField] protected SharedVariable m_PauseBehaviorTree; + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + if (m_ResolvedBehaviorTree == null || !m_ResolvedBehaviorTree.IsActive()) { + return TaskStatus.Failure; + } + + return m_ResolvedBehaviorTree.StopBehavior(m_PauseBehaviorTree.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs.meta new file mode 100644 index 000000000..1ce06f3c5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ff712b458703ec440a858c41edeca111 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/StopBehaviorTree.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs new file mode 100644 index 000000000..614224538 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs @@ -0,0 +1,50 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// Allows for subtrees to be loaded at runtime into the tree. + /// + [NodeIcon("e0a8f1df788b6274a9a24003859dfa7e")] + [NodeDescription("Loads the specified subtrees in at runtime.")] + public class SubtreeReference : ActionNode, ISubtreeReference + { + [Tooltip("The subtrees that should be loaded.")] + [SubtreeListAttribute] + [SerializeField] protected Subtree[] m_Subtrees; + [Tooltip("The variables that should override the subtree variables.")] + [SharedVariableOverridesListAttribute] + [SerializeField] protected SharedVariableOverride[] m_Variables; + + public virtual Subtree[] Subtrees { get { return m_Subtrees; } } + + /// + /// A list of mapped SharedVariables. These variables can override the subtree. + /// + public virtual SharedVariableOverride[] SharedVariableOverrides { get => m_Variables; set => m_Variables = value; } + + /// + /// Performs any runtime operations to evaluate the array of subtrees that should be returned. + /// + /// The component that the node is attached to. + public virtual void EvaluateSubtrees(IGraphComponent graphComponent) { } + + /// + /// If the task exists at runtime then the subtree didn't load. Return failure. + /// + /// The failure TaskStatus. + public override TaskStatus OnUpdate() + { + return TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs.meta new file mode 100644 index 000000000..9c2d7e1d0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 176873898443d5643badfdcaa50ddfdb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReference.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs new file mode 100644 index 000000000..a8851c5e4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs @@ -0,0 +1,42 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.BehaviorDesigner.Runtime; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// Allows for subtrees to be loaded at runtime into the tree. + /// + [NodeDescription("Selects a subtree based on the index value.")] + public class SubtreeReferenceSelector : SubtreeReference + { + [Tooltip("The index of the subtree that should be selected.")] + [SerializeField] protected SharedVariable m_Index; + + private Subtree[] m_Selection; + + public override Subtree[] Subtrees => m_Selection != null ? m_Selection : m_Subtrees; + + /// + /// Performs any runtime operations to evaluate the array of subtrees that should be returned. + /// + /// The component that the node is attached to. + public override void EvaluateSubtrees(IGraphComponent graphComponent) + { + if (m_Index.Value < 0 || m_Index.Value >= m_Subtrees.Length) { + return; + } + + m_Selection = new Subtree[] { m_Subtrees[m_Index.Value] }; + } + } +} + +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs.meta new file mode 100644 index 000000000..0d540edba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 501228e2e706ea841a290cb3863f6f38 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/SubtreeReferenceSelector.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs new file mode 100644 index 000000000..5eb728999 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs @@ -0,0 +1,71 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// A TaskObject Action task which implements the shared TargetGameObject/TreeUserID objects. + /// + public abstract class TargetBehaviorTreeAction : Action + { + [Tooltip("The GameObject of the target behavior tree. If the value is null the current GameObject will be used.")] + [SerializeField] protected SharedVariable m_TargetGameObject; + [Tooltip("The index of the tree if there are multiple behavior trees on the same GameObject.")] + [SerializeField] protected SharedVariable m_TreeIndex; + + protected BehaviorTree m_ResolvedBehaviorTree; + + /// + /// Initializes the task. + /// + public override void OnAwake() + { + m_TargetGameObject.OnValueChange += InitializeTarget; + m_TreeIndex.OnValueChange += InitializeTarget; + + InitializeTarget(); + } + + /// + /// Initializes the target behavior tree. + /// + protected virtual void InitializeTarget() + { + if (m_TargetGameObject.Value == null) { + m_ResolvedBehaviorTree = m_BehaviorTree; + } else { + var behaviorTrees = m_TargetGameObject.Value.GetComponents(); + if (behaviorTrees.Length == 1) { + m_ResolvedBehaviorTree = behaviorTrees[0]; + } else if (behaviorTrees.Length > 1) { + for (int i = 0; i < behaviorTrees.Length; ++i) { + if (behaviorTrees[i].Index == m_TreeIndex.Value) { + m_ResolvedBehaviorTree = behaviorTrees[i]; + break; + } + } + // If the UserID can't be found then use the first behavior tree. + if (m_ResolvedBehaviorTree == null) { + m_ResolvedBehaviorTree = behaviorTrees[0]; + } + } + } + } + + /// + /// The behavior tree has been destroyed. + /// + public override void OnDestroy() + { + m_TargetGameObject.OnValueChange -= InitializeTarget; + m_TreeIndex.OnValueChange -= InitializeTarget; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs.meta new file mode 100644 index 000000000..b773f08e5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ea8fab3de7105aa4497485f5934c06d9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetBehaviorTreeAction.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs new file mode 100644 index 000000000..2e7cebe9c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs @@ -0,0 +1,54 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// A TaskObject Action task which returns the current GameObject if the target is null. + /// + public abstract class TargetGameObjectAction : Action + { + [Tooltip("The GameObject of the target behavior tree. If the value is null the current GameObject will be used.")] + [SerializeField] protected SharedVariable m_TargetGameObject; + + protected override GameObject gameObject => m_ResolvedGameObject; + protected override Transform transform => m_ResolvedTransform; + + protected GameObject m_ResolvedGameObject; + protected Transform m_ResolvedTransform; + + /// + /// Initializes the task. + /// + public override void OnAwake() + { + m_TargetGameObject.OnValueChange += InitializeTarget; + + InitializeTarget(); + } + + /// + /// Initializes the target GameObject. + /// + protected virtual void InitializeTarget() + { + m_ResolvedGameObject = (m_TargetGameObject.Value == null || m_TargetGameObject.Value.Equals(null)) ? m_GameObject : m_TargetGameObject.Value; + m_ResolvedTransform = m_ResolvedGameObject.transform; + } + + /// + /// The behavior tree has been destroyed. + /// + public override void OnDestroy() + { + m_TargetGameObject.OnValueChange -= InitializeTarget; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs.meta new file mode 100644 index 000000000..b7247fc6f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3025700b92fd09d4d86b26d7213de9ab +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/TargetGameObjectAction.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects.meta new file mode 100644 index 000000000..840183052 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1e88e229aee9deb4596b688718c14806 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs new file mode 100644 index 000000000..9ad6df40c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs @@ -0,0 +1,36 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Enables or disables the specified MonoBehaviour.")] + [Shared.Utility.Category("Unity")] + public class SetEnabled : Action + { + [Tooltip("Should the MonoBehaviour be enabled?")] + [SerializeField] protected SharedVariable m_Enable; + [Tooltip("The MonoBehaviour that should be enabled or disabled.")] + [SerializeField] protected SharedVariable m_MonoBehaviour; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_MonoBehaviour.Value == null) { + return TaskStatus.Failure; + } + m_MonoBehaviour.Value.enabled = m_Enable.Value; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs.meta new file mode 100644 index 000000000..429ca60c9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8f30ae346f704e446942d6cdb1c4adfa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetEnabled.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs new file mode 100644 index 000000000..b91b227bb --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs @@ -0,0 +1,33 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Set the GameObject value.")] + [Shared.Utility.Category("Unity")] + public class SetGameObject : TargetGameObjectAction + { + [Tooltip("The variable that should be set.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + InitializeTarget(); + + m_StoreResult.Value = m_ResolvedGameObject; + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs.meta new file mode 100644 index 000000000..84ff77541 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: acfe874544935e64f80eeb34681141c1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/SetGameObject.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs new file mode 100644 index 000000000..95b616f3e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs @@ -0,0 +1,58 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success as soon as the current Animator state ends.")] + [Shared.Utility.Category("Unity")] + public class WaitForAnimatorState : TargetGameObjectAction + { + [Tooltip("The layer to wait for the state on.")] + public SharedVariable m_Layer; + + private Animator m_Animator; + private int m_StateHash; + + /// + /// Initializes the default values. + /// + public override void OnAwake() + { + base.OnAwake(); + + m_Animator = gameObject.GetComponent(); + } + + /// + /// Caches the Animator state. + /// + public override void OnStart() + { + m_StateHash = (m_Animator.IsInTransition(m_Layer.Value) ? m_Animator.GetNextAnimatorStateInfo(m_Layer.Value) : m_Animator.GetCurrentAnimatorStateInfo(m_Layer.Value)).fullPathHash; + } + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + if (m_Animator.IsInTransition(m_Layer.Value)) { + return TaskStatus.Running; + } + var currentState = m_Animator.GetCurrentAnimatorStateInfo(m_Layer.Value).fullPathHash; + if (currentState != m_StateHash) { + return TaskStatus.Success; + } + return TaskStatus.Running; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs.meta new file mode 100644 index 000000000..01e12d26b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 7f6c915175357ab449604315406c51bb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/UnityObjects/WaitForAnimatorState.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs new file mode 100644 index 000000000..d65a8d8c6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs @@ -0,0 +1,400 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + [NodeIcon("b4b59e888607422409f1efa599af34ae", "e1cb9cb566a90fb4489bf31465b99747")] + [NodeDescription("Wait a specified amount of time. The task will return running until the task is done waiting. It will return success after the wait time has elapsed.")] + public struct Wait : ILogicNode, ITaskComponentData, IAction, ICloneable, IPausableTask, ISavableTask + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("The amount of time to wait (in seconds).")] + [SerializeField] float m_Duration; + [Tooltip("Should the wait duration be randomized?")] + [SerializeField] bool m_RandomDuration; + [Tooltip("The seed of the random number generator. Set to 0 to use the entity index as the seed.")] + [SerializeField] uint m_Seed; + [Tooltip("The wait duration range if random wait is enabled.")] + [SerializeField] RangeFloat m_RandomDurationRange; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public float Duration { get => m_Duration; set => m_Duration = value; } + public bool RandomDuration { get => m_RandomDuration; set => m_RandomDuration = value; } + public uint Seed { get => m_Seed; set => m_Seed = value; } + public RangeFloat RandomDurationRange { get => m_RandomDurationRange; set => m_RandomDurationRange = value; } + + public ComponentType Tag { get => typeof(WaitTag); } + public Type SystemType { get => typeof(WaitTaskSystem); } + + /// + /// Resets the task to its default values. + /// + public void Reset() { m_Duration = m_RandomDurationRange.Min = m_RandomDurationRange.Max = 1; m_RandomDuration = false; m_Seed = 0; } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new WaitComponent() { + Index = RuntimeIndex, + Duration = m_Duration, + RandomDuration = m_RandomDuration, + RandomDurationRange = m_RandomDurationRange, + Seed = m_Seed, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// The task has been paused. + /// + /// The DOTS world. + /// The DOTS entity. + public void Pause(World world, Entity entity) + { + var waitComponents = world.EntityManager.GetBuffer(entity); + var waitComponent = waitComponents[m_ComponentIndex]; + waitComponent.PauseTime = Time.time; + var waitComponentBuffer = waitComponents; + waitComponentBuffer[m_ComponentIndex] = waitComponent; + } + + /// + /// The task has been resumed. + /// + /// The DOTS world. + /// The DOTS entity. + public void Resume(World world, Entity entity) + { + var waitComponents = world.EntityManager.GetBuffer(entity); + var waitComponent = waitComponents[m_ComponentIndex]; + waitComponent.StartTime += (Time.time - waitComponent.PauseTime); + waitComponent.PauseTime = 0; + var waitComponentBuffer = waitComponents; + waitComponentBuffer[m_ComponentIndex] = waitComponent; + } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var waitComponents = world.EntityManager.GetBuffer(entity); + var waitComponent = waitComponents[m_ComponentIndex]; + + // Save the unique data. + return new object[] { waitComponent.WaitDuration, Time.time - waitComponent.StartTime }; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var waitComponents = world.EntityManager.GetBuffer(entity); + var waitComponent = waitComponents[m_ComponentIndex]; + + // saveData is the wait duration and the elapsed amount of time. + var data = (object[])saveData; + waitComponent.WaitDuration = (double)data[0]; + waitComponent.StartTime = Time.time - (double)data[1]; + waitComponents[m_ComponentIndex] = waitComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.Duration = Duration; + clone.RandomDuration = RandomDuration; + clone.Seed = Seed; + clone.RandomDurationRange = RandomDurationRange; + return clone; + } + } + + /// + /// The DOTS data structure for the Wait struct. + /// + public struct WaitComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The amount of time the task should wait.")] + public float Duration; + [Tooltip("Should the wait duration be randomized?")] + public bool RandomDuration; + [Tooltip("The wait duration range if random wait is enabled.")] + public RangeFloat RandomDurationRange; + [Tooltip("The amount of time the task should wait.")] + public double WaitDuration; + [Tooltip("The real time the task started to wait.")] + public double StartTime; + [Tooltip("The seed of the random number generator.")] + public uint Seed; + [Tooltip("The random number generator for the task.")] + public Unity.Mathematics.Random RandomNumberGenerator; + [Tooltip("The time that the game was paused.")] + public double PauseTime; + } + + /// + /// A DOTS tag indicating when a Wait node is active. + /// + public struct WaitTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Wait logic. + /// + [DisableAutoCreation] + public partial struct WaitTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new WaitJob() { ElapsedTime = SystemAPI.Time.ElapsedTime }.ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct WaitJob : IJobEntity + { + [Tooltip("The current ElapsedTime.")] + public double ElapsedTime; + + /// + /// Executes the wait logic. + /// + /// The entity that is running the logic. + /// An array of TaskComponents. + /// An array of WaitComponents. + [BurstCompile] + public void Execute(Entity entity, ref DynamicBuffer taskComponents, ref DynamicBuffer waitComponents) + { + for (int i = 0; i < waitComponents.Length; ++i) { + var waitComponent = waitComponents[i]; + var taskComponent = taskComponents[waitComponent.Index]; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + waitComponent.StartTime = ElapsedTime; + + if (waitComponent.RandomDuration) { + // Generate a new random number seed for each entity. + if (waitComponent.RandomNumberGenerator.state == 0) { + waitComponent.RandomNumberGenerator = Unity.Mathematics.Random.CreateFromIndex(waitComponent.Seed != 0 ? waitComponent.Seed : (uint)entity.Index); + } + + waitComponent.WaitDuration = waitComponent.RandomNumberGenerator.NextDouble(waitComponent.RandomDurationRange.Min, waitComponent.RandomDurationRange.Max); + } else { + waitComponent.WaitDuration = waitComponent.Duration; + } + + waitComponents[i] = waitComponent; + } + if (taskComponent.Status == TaskStatus.Running) { + if (waitComponent.StartTime + waitComponent.WaitDuration <= ElapsedTime) { + taskComponent.Status = TaskStatus.Success; + } + } + taskComponents[waitComponent.Index] = taskComponent; + } + } + } + } + + [NodeIcon("b4b59e888607422409f1efa599af34ae", "e1cb9cb566a90fb4489bf31465b99747")] + [NodeDescription("Wait a specified amount of time. The task will return running until the task is done waiting. It will return success after the wait time has elapsed. Uses the GameObject workflow.")] + public class SharedWait : Action + { + [Tooltip("The amount of time to wait (in seconds).")] + [SerializeField] SharedVariable m_Duration = 1; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] int m_Seed; + [Tooltip("Should the wait duration be randomized?")] + [SerializeField] SharedVariable m_RandomDuration; + [Tooltip("The minimum wait duration if random wait is enabled.")] + [SerializeField] SharedVariable m_RandomDurationRange = new RangeFloat(1, 1); + [Tooltip("The maximum wait duration if random wait is enabled.")] + [SerializeField] SharedVariable m_RandomDurationMax = 1; + + public SharedVariable Duration { get => m_Duration; set => m_Duration = value; } + public int Seed { get => m_Seed; set => m_Seed = value; } + public SharedVariable RandomDuration { get => m_RandomDuration; set => m_RandomDuration = value; } + public SharedVariable RandomDurationRange { get => m_RandomDurationRange; set => m_RandomDurationRange = value; } + public SharedVariable RandomDurationMax { get => m_RandomDurationMax; set => m_RandomDurationMax = value; } + + private float m_WaitDuration; + private float m_StartTime; + private float m_PauseTime = -1; + + /// + /// Callback when the task is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + UnityEngine.Random.InitState(m_Seed); + } + } + + /// + /// Callback when the task is started. + /// + public override void OnStart() + { + if (m_RandomDuration.Value) { + m_WaitDuration = UnityEngine.Random.Range(m_RandomDurationRange.Value.Min, m_RandomDurationRange.Value.Max); + } else { + m_WaitDuration = m_Duration.Value; + } + m_StartTime = Time.time; + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + return m_StartTime + m_WaitDuration <= Time.time ? TaskStatus.Success : TaskStatus.Running; + } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public override object Save(World world, Entity entity) + { + // Save the unique data. + return new object[] { m_WaitDuration, Time.time - m_StartTime }; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public override void Load(object saveData, World world, Entity entity) + { + // saveData is the wait duration and the elapsed amount of time. + var data = (object[])saveData; + m_WaitDuration = (float)data[0]; + m_StartTime = Time.time - (float)data[1]; + } + + /// + /// The behavior tree has been started. + /// + public override void OnBehaviorTreeStarted() + { + base.OnBehaviorTreeStarted(); + + if (m_PauseTime != -1) { + m_StartTime += (Time.time - m_PauseTime); + m_PauseTime = -1; + } + } + + /// + /// The behavior tree has been stopped or paused. + /// + /// True if the tree has been paused. + public override void OnBehaviorTreeStopped(bool paused) + { + base.OnBehaviorTreeStopped(paused); + + if (paused) { + m_PauseTime = Time.time; + } + } + + /// + /// Resets the variables. + /// + public override void Reset() + { + base.Reset(); + + m_Duration = 1; + m_RandomDuration = false; + m_Seed = 0; + m_RandomDurationRange = new RangeFloat(1, 1); + m_PauseTime = -1; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs.meta new file mode 100644 index 000000000..9ff043eba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0c0e41c99613e54428dc9103bb7635dd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Actions/Wait.cs + uploadId: 775358 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Composites.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Composites.meta rename to Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites.meta index 707a8f693..8ab82448b 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Composites.meta +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 02c91ef526a3f8a41b5df4402d7c783f +guid: 52b686992c2aafd4bb5214021e8b492b folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs new file mode 100644 index 000000000..9a4fa87e8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs @@ -0,0 +1,35 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.GraphDesigner.Runtime; + using UnityEngine; + + /// + /// A TaskObject implementation of the Composite task. + /// + [NodeIcon("3afb3814c40717440b175b6fde4e73c2", "7fb12c74939f50b41b1679eb8f9e79ab")] + public abstract class CompositeNode : Task, ILogicNode, IParentNode, IComposite, ITaskObjectParentNode + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public virtual int MaxChildCount { get => int.MaxValue; } + public virtual ushort NextChildIndex { get => (ushort)(RuntimeIndex + 1); } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs.meta new file mode 100644 index 000000000..03a23a104 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 03dee97f70b381e4bb7a230cca3e5f8f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/CompositeNode.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs new file mode 100644 index 000000000..7a1f3bf08 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs @@ -0,0 +1,267 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Collections; + using Unity.Entities; + using Unity.Jobs; + using Unity.Mathematics; + using UnityEngine; + + /// + /// A node representation of the parallel task. + /// + [NodeIcon("f612c025389b22640b1b6df88f4502e7", "8a4a401bcfb527a48a08351efaf92e14")] + [NodeDescription("Similar to the sequence task, the parallel task will run each child task until a child task returns failure. " + + "The parallel task will run all of its children tasks simultaneously versus running each task one at a time. " + + "Like the sequence class, the parallel task will return success once all of its children tasks have return success. " + + "If one tasks returns failure the parallel task will end all of the child tasks and return failure.")] + public struct Parallel : ILogicNode, IParentNode, IParallelNode, ITaskComponentData, IComposite + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(ParallelTag); } + public System.Type SystemType { get => typeof(ParallelTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new ParallelComponent() { + Index = RuntimeIndex, + }); + + var entityManager = world.EntityManager; + ComponentUtility.AddInterruptComponents(entityManager, entity); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the Parallel class. + /// + public struct ParallelComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + + public ushort Index { get => m_Index; set => m_Index = value; } + } + + /// + /// A DOTS tag indicating when a Parallel node is active. + /// + public struct ParallelTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Parallel logic. + /// + [DisableAutoCreation] + public partial struct ParallelTaskSystem : ISystem + { + private EntityQuery m_Query; + private EntityCommandBuffer m_EntityCommandBuffer; + private JobHandle m_Dependency; + + /// + /// Builds the query. + /// + /// THe current SystemState. + private void OnCreate(ref SystemState state) + { + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + } + + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + m_Dependency.Complete(); + if (m_EntityCommandBuffer.IsCreated) { + m_EntityCommandBuffer.Playback(state.EntityManager); + m_EntityCommandBuffer.Dispose(); + } + + m_EntityCommandBuffer = new EntityCommandBuffer(Allocator.TempJob); + state.Dependency = new ParallelJob() + { + EntityCommandBuffer = m_EntityCommandBuffer.AsParallelWriter() + }.ScheduleParallel(m_Query, state.Dependency); + m_Dependency = state.Dependency; + } + + /// + /// The system has been destroyed. + /// + /// The current state of the system. + public void OnDestroy(ref SystemState state) + { + if (m_EntityCommandBuffer.IsCreated) { + m_EntityCommandBuffer.Playback(state.EntityManager); + m_EntityCommandBuffer.Dispose(); + } + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct ParallelJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + + /// + /// Executes the parallel logic. + /// + /// The entity that is being acted upon. + /// The index of the entity. + /// An array of ParallelComponents. + /// An array of TaskComponents. + /// An array of BranchComponents. + [BurstCompile] + public void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, ref DynamicBuffer parallelComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer branchComponents) + { + for (int i = 0; i < parallelComponents.Length; ++i) { + var parallelComponent = parallelComponents[i]; + var taskComponent = taskComponents[parallelComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + ushort childIndex; + TaskComponent childTaskComponent; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childIndex = (ushort)(parallelComponent.Index + 1); + while (childIndex != ushort.MaxValue) { + childTaskComponent = taskComponents[childIndex]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[childIndex] = childTaskComponent; + + var childBranchComponent = branchComponents[childTaskComponent.BranchIndex]; + childBranchComponent.NextIndex = childTaskComponent.Index; + branchComponents[childTaskComponent.BranchIndex] = childBranchComponent; + + childIndex = taskComponents[childIndex].SiblingIndex; + } + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + var childrenFailure = false; + var childrenRunning = false; + childIndex = (ushort)(parallelComponent.Index + 1); + while (childIndex != ushort.MaxValue) { + childTaskComponent = taskComponents[childIndex]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + childrenRunning = true; + } else if (childTaskComponent.Status == TaskStatus.Failure) { + childrenFailure = true; + + var childBranchComponent = branchComponents[childTaskComponent.BranchIndex]; + childBranchComponent.NextIndex = ushort.MaxValue; + branchComponents[childTaskComponent.BranchIndex] = childBranchComponent; + break; + } else if (childTaskComponent.Status == TaskStatus.Success) { + var childBranchComponent = branchComponents[childTaskComponent.BranchIndex]; + if (childBranchComponent.ActiveIndex != ushort.MaxValue) { + childBranchComponent.NextIndex = ushort.MaxValue; + branchComponents[childTaskComponent.BranchIndex] = childBranchComponent; + } + } + childIndex = taskComponents[childIndex].SiblingIndex; + } + + // If a single child fails then all tasks should be stopped. + if (childrenFailure) { + var maxChildIndex = math.min(taskComponent.SiblingIndex, taskComponents.Length); + for (ushort j = (ushort)(taskComponent.Index + 1); j < maxChildIndex; ++j) { + childTaskComponent = taskComponents[j]; + if (childTaskComponent.Status == TaskStatus.Running || childTaskComponent.Status == TaskStatus.Queued) { + childTaskComponent.Status = TaskStatus.Failure; + taskComponents[j] = childTaskComponent; + + branchComponent = branchComponents[childTaskComponent.BranchIndex]; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, true); + if (branchComponent.ActiveIndex == childTaskComponent.Index) { + branchComponent.NextIndex = ushort.MaxValue; + branchComponents[childTaskComponent.BranchIndex] = branchComponent; + } + } + } + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + taskComponent.Status = TaskStatus.Failure; + taskComponents[taskComponent.Index] = taskComponent; + + continue; + } + + if (childrenRunning) { + continue; + } + + // No more children are running. Resume the parent task. + taskComponent.Status = TaskStatus.Success; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs.meta new file mode 100644 index 000000000..8364a6117 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 121e856fe6b49d648a50fde8ee6923ed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Parallel.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs new file mode 100644 index 000000000..885227987 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs @@ -0,0 +1,258 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Collections; + using Unity.Entities; + using Unity.Jobs; + using Unity.Mathematics; + using UnityEngine; + + /// + /// A node representation of the parallel selector task. + /// + [NodeIcon("d47aff1a00bcc6d4da8ca0df32ed8415", "108591b5d7a6bd94383d16a62cb3b4a7")] + [NodeDescription("Similar to the selector task, the parallel selector task will return success as soon as a child task returns success. " + + "The parallel task will run all of its children tasks simultaneously versus running each task one at a time. " + + "If one tasks returns success the parallel selector task will end all of the child tasks and return success. " + + "If every child task returns failure then the parallel selector task will return failure.")] + public struct ParallelSelector : ILogicNode, IParentNode, IParallelNode, ITaskComponentData, IComposite + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(ParallelSelectorTag); } + public System.Type SystemType { get => typeof(ParallelSelectorTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new ParallelSelectorComponent() { + Index = RuntimeIndex, + }); + + var entityManager = world.EntityManager; + ComponentUtility.AddInterruptComponents(entityManager, entity); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the ParallelSelector class. + /// + public struct ParallelSelectorComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + + public ushort Index { get => m_Index; set => m_Index = value; } + } + + /// + /// A DOTS tag indicating when a ParallelSelector node is active. + /// + public struct ParallelSelectorTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the ParallelSelector logic. + /// + [DisableAutoCreation] + public partial struct ParallelSelectorTaskSystem : ISystem + { + private EntityQuery m_Query; + private EntityCommandBuffer m_EntityCommandBuffer; + private JobHandle m_Dependency; + + /// + /// Builds the query. + /// + /// THe current SystemState. + private void OnCreate(ref SystemState state) + { + m_Query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + } + + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + m_Dependency.Complete(); + if (m_EntityCommandBuffer.IsCreated) { + m_EntityCommandBuffer.Playback(state.EntityManager); + m_EntityCommandBuffer.Dispose(); + } + + m_EntityCommandBuffer = new EntityCommandBuffer(Allocator.TempJob); + state.Dependency = new ParallelSelectorJob() + { + EntityCommandBuffer = m_EntityCommandBuffer.AsParallelWriter() + }.ScheduleParallel(m_Query, state.Dependency); + m_Dependency = state.Dependency; + } + + /// + /// The system has been destroyed. + /// + /// The current state of the system. + public void OnDestroy(ref SystemState state) + { + if (m_EntityCommandBuffer.IsCreated) { + m_EntityCommandBuffer.Playback(state.EntityManager); + m_EntityCommandBuffer.Dispose(); + } + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct ParallelSelectorJob : IJobEntity + { + [Tooltip("CommandBuffer which sets the component data.")] + public EntityCommandBuffer.ParallelWriter EntityCommandBuffer; + + /// + /// Executes the parallel selector logic. + /// + /// The entity that is being acted upon. + /// The index of the entity. + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of ParallelSelectorComponents. + [BurstCompile] + public void Execute(Entity entity, [EntityIndexInQuery] int entityIndex, ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer parallelSelectorComponents) + { + for (int i = 0; i < parallelSelectorComponents.Length; ++i) { + var parallelSelectorComponent = parallelSelectorComponents[i]; + var taskComponent = taskComponents[parallelSelectorComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + ushort childIndex; + TaskComponent childTaskComponent; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childIndex = (ushort)(parallelSelectorComponent.Index + 1); + while (childIndex != ushort.MaxValue) { + childTaskComponent = taskComponents[childIndex]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[childIndex] = childTaskComponent; + + var childBranchComponent = branchComponents[childTaskComponent.BranchIndex]; + childBranchComponent.NextIndex = childTaskComponent.Index; + branchComponents[childTaskComponent.BranchIndex] = childBranchComponent; + + childIndex = taskComponents[childIndex].SiblingIndex; + } + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + var childSuccess = false; + var childrenRunning = false; + childIndex = (ushort)(parallelSelectorComponent.Index + 1); + while (childIndex != ushort.MaxValue) { + childTaskComponent = taskComponents[childIndex]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + childrenRunning = true; + } else if (childTaskComponent.Status == TaskStatus.Failure) { + var childBranchComponent = branchComponents[childTaskComponent.BranchIndex]; + if (childBranchComponent.ActiveIndex != ushort.MaxValue) { + childBranchComponent.NextIndex = ushort.MaxValue; + branchComponents[childTaskComponent.BranchIndex] = childBranchComponent; + } + } else if (childTaskComponent.Status == TaskStatus.Success) { + childSuccess = true; + + var childBranchComponent = branchComponents[childTaskComponent.BranchIndex]; + childBranchComponent.NextIndex = ushort.MaxValue; + branchComponents[childTaskComponent.BranchIndex] = childBranchComponent; + break; + } + childIndex = taskComponents[childIndex].SiblingIndex; + } + + // If a single child succeeds then all tasks should be stopped. + if (childSuccess) { + var maxChildIndex = math.min(taskComponent.SiblingIndex, taskComponents.Length); + for (ushort j = (ushort)(taskComponent.Index + 1); j < maxChildIndex; ++j) { + childTaskComponent = taskComponents[j]; + if (childTaskComponent.Status == TaskStatus.Running || childTaskComponent.Status == TaskStatus.Queued) { + childTaskComponent.Status = TaskStatus.Failure; + taskComponents[j] = childTaskComponent; + + branchComponent = branchComponents[childTaskComponent.BranchIndex]; + EntityCommandBuffer.SetComponentEnabled(entityIndex, entity, true); + if (branchComponent.ActiveIndex == childTaskComponent.Index) { + branchComponent.NextIndex = ushort.MaxValue; + branchComponents[childTaskComponent.BranchIndex] = branchComponent; + } + } + } + } else if (childrenRunning) { + continue; + } + + // No more children are running. Resume the parent task. + taskComponent.Status = TaskStatus.Success; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs.meta new file mode 100644 index 000000000..6ac32d03d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f3ba12965f09f3f4e81b66fa35df8ec3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/ParallelSelector.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs new file mode 100644 index 000000000..2d6bb5038 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs @@ -0,0 +1,355 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Collections; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + /// + /// A node representation of the priority selector task. + /// + [NodeIcon("cea0f2b6cee06a742bb35dcc40202e8e", "744afc2640950e045961296f1d5800d7")] + [NodeDescription("Similar to the selector task, the priority selector task will return success as soon as a child task returns success. " + + "Instead of running the tasks sequentially from left to right within the tree, the priority selector will ask the task what its priority is to determine the order. " + + "The higher priority tasks have a higher chance at being run first.")] + public struct PrioritySelector : ILogicNode, IParentNode, ITaskComponentData, IComposite, ISavableTask, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(PrioritySelectorTag); } + public System.Type SystemType { get => typeof(PrioritySelectorTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + + buffer.Add(new PrioritySelectorComponent() { + Index = RuntimeIndex, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var prioritySelectorComponents = world.EntityManager.GetBuffer(entity); + var prioritySelectorComponent = prioritySelectorComponents[m_ComponentIndex]; + + // Save the active child and array order. + var saveData = new object[2]; + saveData[0] = prioritySelectorComponent.ActiveRelativeChildIndex; + if (prioritySelectorComponent.Priorities.IsCreated) { + saveData[1] = prioritySelectorComponent.Priorities.ToArray(); + } + return saveData; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var prioritySelectorComponents = world.EntityManager.GetBuffer(entity); + var prioritySelectorComponent = prioritySelectorComponents[m_ComponentIndex]; + + // saveData is the active child and array order. + var taskSaveData = (object[])saveData; + prioritySelectorComponent.ActiveRelativeChildIndex = (ushort)taskSaveData[0]; + if (taskSaveData[1] != null) { + prioritySelectorComponent.Priorities = new NativeArray((PrioritySelectorComponent.PriorityItem[])taskSaveData[1], Allocator.Persistent); + } + prioritySelectorComponents[m_ComponentIndex] = prioritySelectorComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + return clone; + } + } + + /// + /// The DOTS data structure for the PrioritySelector class. + /// + public struct PrioritySelectorComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The relative index of the child that is currently active.")] + public ushort ActiveRelativeChildIndex; + [Tooltip("The latest priority values for each child task.")] + public NativeArray Priorities; + + /// + /// Joins the task index with the priority value. + /// + public struct PriorityItem : IComparable + { + [Tooltip("The index of the task.")] + public ushort TaskIndex; + [Tooltip("The index of the PriorityValueComponent. A value of ushort.MaxValue indicates that there is not a corresponding PriorityValueComponent to this element.")] + public ushort PriorityValueIndex; + [Tooltip("The priority value.")] + public float Value; + + /// + /// Compares the current PriorityItem to the other PriorityItem. + /// + /// The other PriorityItem. + /// The comparison between the current PriorityItem and the other PriorityItem. + public int CompareTo(PriorityItem other) + { + // The higher the value the lower the item is in the array. + return other.Value.CompareTo(Value); + } + } + } + + /// + /// DOTS structure that contains the most recently priority of the task. + /// + public struct PriorityValueComponent : IBufferElementData + { + [Tooltip("The index of the task.")] + public ushort Index; + [Tooltip("The current priority value. The higher the value the more likely it will be selected.")] + public float Value; + } + + /// + /// A DOTS tag indicating when a PrioritySelector node is active. + /// + public struct PrioritySelectorTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the PrioritySelector logic. + /// + [DisableAutoCreation] + public partial struct PrioritySelectorTaskSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var hasPriorityValueComponent = false; + foreach (var (branchComponents, taskComponents, prioritySelectorComponents, priorityValueComponents) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer, DynamicBuffer>().WithAll()) { + + hasPriorityValueComponent = true; + for (int i = 0; i < prioritySelectorComponents.Length; ++i) { + var prioritySelectorComponent = prioritySelectorComponents[i]; + var taskComponent = taskComponents[prioritySelectorComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + var prioritySelectorComponentsBuffer = prioritySelectorComponents; + var taskComponentsBuffer = taskComponents; + var branchComponentBuffer = branchComponents; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponentsBuffer[taskComponent.Index] = taskComponent; + + // Initialize the priority value array. + NativeArray priorities; + if (prioritySelectorComponent.Priorities.Length == 0) { + var childCount = TraversalUtility.GetImmediateChildCount(ref taskComponent, ref taskComponentsBuffer); + priorities = new NativeArray(childCount, Allocator.Persistent); + // Match the PriorityValueComponent with the child index. + var childIndex = (ushort)(taskComponent.Index + 1); + for (ushort j = 0; j < childCount; ++j) { + priorities[j] = new PrioritySelectorComponent.PriorityItem() { TaskIndex = childIndex, PriorityValueIndex = ushort.MaxValue, Value = float.MinValue }; + for (ushort k = 0; k < priorityValueComponents.Length; ++k) { + var priorityValueComponent = priorityValueComponents[k]; + + if (priorityValueComponent.Index == childIndex) { + var priorityItem = priorities[j]; + priorityItem.PriorityValueIndex = k; + priorities[j] = priorityItem; + break; + } + } + childIndex = taskComponents[childIndex].SiblingIndex; + } + + prioritySelectorComponent.Priorities = priorities; + } + + // Determine the child order when the task starts. + priorities = prioritySelectorComponent.Priorities; + + for (ushort j = 0; j < priorities.Length; ++j) { + var valueIndex = priorities[j].PriorityValueIndex; + // The task may not have a matching PriorityValueComponent. + if (valueIndex == ushort.MaxValue) { + continue; + } + + var priorityItem = priorities[j]; + priorityItem.Value = priorityValueComponents[valueIndex].Value; + priorities[j] = priorityItem; + } + priorities.Sort(); + prioritySelectorComponent.Priorities = priorities; + prioritySelectorComponentsBuffer[i] = prioritySelectorComponent; + + prioritySelectorComponent.ActiveRelativeChildIndex = 0; + branchComponent.NextIndex = prioritySelectorComponent.Priorities[prioritySelectorComponent.ActiveRelativeChildIndex].TaskIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + + // Start the child. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[branchComponent.NextIndex] = nextChildTaskComponent; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The prioritySelector task is currently active. Check the first child. + var childTaskComponent = taskComponents[prioritySelectorComponent.Priorities[prioritySelectorComponent.ActiveRelativeChildIndex].TaskIndex]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + // Switch to the next highest priority. If no more priority values exist the task should act as a normal selector. + if (prioritySelectorComponent.ActiveRelativeChildIndex == prioritySelectorComponent.Priorities.Length - 1 || + childTaskComponent.Status == TaskStatus.Success) { + // There are no more children or the child succeeded. The selector task should end. + taskComponent.Status = childTaskComponent.Status; + prioritySelectorComponent.ActiveRelativeChildIndex = 0; + taskComponentsBuffer[prioritySelectorComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } else { + // The child task returned failure. Move onto the next task. + prioritySelectorComponent.ActiveRelativeChildIndex++; + var nextIndex = prioritySelectorComponent.Priorities[prioritySelectorComponent.ActiveRelativeChildIndex].TaskIndex; + var nextTaskComponent = taskComponents[nextIndex]; + nextTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[nextIndex] = nextTaskComponent; + + branchComponent.NextIndex = nextIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + prioritySelectorComponentsBuffer[i] = prioritySelectorComponent; + } + } + + // Special case where the PrioritySelectorComponent has no PriorityValueComponent children. + if (!hasPriorityValueComponent) { + foreach (var (prioritySelectorComponents, taskComponents, branchComponents) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll()) { + + for (int i = 0; i < prioritySelectorComponents.Length; ++i) { + var prioritySelectorComponent = prioritySelectorComponents[i]; + var taskComponent = taskComponents[prioritySelectorComponent.Index]; + + // If there are no values then the selector should return failure. + if (taskComponent.Status == TaskStatus.Queued && prioritySelectorComponent.Priorities.Length == 0) { + taskComponent.Status = TaskStatus.Failure; + var taskComponentsBuffer = taskComponents; + taskComponentsBuffer[prioritySelectorComponent.Index] = taskComponent; + + var branchComponent = branchComponents[taskComponent.BranchIndex]; + branchComponent.NextIndex = taskComponent.ParentIndex; + var branchComponentBuffer = branchComponents; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + } + } + } + } + + /// + /// The task has been destroyed. + /// + /// The current state of the system. + private void OnDestroy(ref SystemState state) + { + foreach (var prioritySelectorComponents in SystemAPI.Query>()) { + for (int i = 0; i < prioritySelectorComponents.Length; ++i) { + prioritySelectorComponents[i].Priorities.Dispose(); + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs.meta new file mode 100644 index 000000000..c12873c1f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0df94ec9b57703043babb28f51e4b55d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/PrioritySelector.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs new file mode 100644 index 000000000..95ddb4225 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs @@ -0,0 +1,345 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Collections; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + /// + /// A node representation of the random selector task. + /// + [NodeIcon("d7c1e0f5830316e449df8a35561df859", "7638e4bc5a1f4cd488801902387ec5ea")] + [NodeDescription("Similar to the selector task, the random selector task will return success as soon as a child task returns success. " + + "The difference is that the random selector class will run its children in a random order. The selector task is deterministic " + + "in that it will always run the tasks from left to right within the tree. The random selector task shuffles the child tasks up and then begins " + + "execution in a random order. Other than that the random selector class is the same as the selector class. It will continue running tasks " + + "until a task completes successfully. If no child tasks return success then it will return failure.")] + public struct RandomSelector : ILogicNode, IParentNode, ITaskComponentData, IComposite, IConditionalAbortParent, IInterruptResponder, ISavableTask, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("Specifies how the child conditional tasks should be reevaluated.")] + [SerializeField] ConditionalAbortType m_AbortType; + [Tooltip("The seed of the random number generator. Set to 0 to use the entity index as the seed.")] + [SerializeField] uint m_Seed; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public ConditionalAbortType AbortType { get => m_AbortType; set => m_AbortType = value; } + public uint Seed { get => m_Seed; set => m_Seed = value; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(RandomSelectorTag); } + public Type SystemType { get => typeof(RandomSelectorTaskSystem); } + public Type InterruptSystemType { get => typeof(RandomSelectorInterruptSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// Re + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new RandomSelectorComponent() { + Index = RuntimeIndex, + Seed = m_Seed, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var randomSelectorComponents = world.EntityManager.GetBuffer(entity); + var randomSelectorComponent = randomSelectorComponents[m_ComponentIndex]; + + // Save the active child and array order. + var saveData = new object[2]; + saveData[0] = randomSelectorComponent.ActiveRelativeChildIndex; + if (randomSelectorComponent.TaskOrder.IsCreated) { + var taskOrder = randomSelectorComponent.TaskOrder.Value.Indicies.ToArray(); + saveData[1] = taskOrder; + } + return saveData; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var randomSelectorComponents = world.EntityManager.GetBuffer(entity); + var randomSelectorComponent = randomSelectorComponents[m_ComponentIndex]; + + // saveData is the active child and array order. + var taskSaveData = (object[])saveData; + randomSelectorComponent.ActiveRelativeChildIndex = (ushort)taskSaveData[0]; + if (taskSaveData[1] != null) { + var taskOrder = (ushort[])taskSaveData[1]; + var builder = new BlobBuilder(Allocator.Temp); + ref var root = ref builder.ConstructRoot(); + var orderArray = builder.Allocate(ref root.Indicies, taskOrder.Length); + for (int i = 0; i < taskOrder.Length; i++) { + orderArray[i] = taskOrder[i]; + } + randomSelectorComponent.TaskOrder = builder.CreateBlobAssetReference(Allocator.Persistent); + builder.Dispose(); + } + randomSelectorComponents[m_ComponentIndex] = randomSelectorComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.AbortType = AbortType; + return clone; + } + } + + /// + /// The DOTS data structure for the RandomSelector class. + /// + public struct RandomSelectorComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The relative index of the child that is currently active.")] + public ushort ActiveRelativeChildIndex; + [Tooltip("The seed of the random number generator.")] + public uint Seed; + [Tooltip("The random number generator for the task.")] + public Unity.Mathematics.Random RandomNumberGenerator; + [Tooltip("The indicies of the child task execution order.")] + public BlobAssetReference TaskOrder; + } + + /// + /// A DOTS tag indicating when a RandomSelector node is active. + /// + public struct RandomSelectorTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the RandomSelector logic. + /// + [DisableAutoCreation] + public partial struct RandomSelectorTaskSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (branchComponents, taskComponents, randomSelectorComponents, entity) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll().WithEntityAccess()) { + for (int i = 0; i < randomSelectorComponents.Length; ++i) { + var randomSelectorComponent = randomSelectorComponents[i]; + var taskComponent = taskComponents[randomSelectorComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + var randomSelectorComponentsBuffer = randomSelectorComponents; + var taskComponentsBuffer = taskComponents; + var branchComponentBuffer = branchComponents; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponentsBuffer[taskComponent.Index] = taskComponent; + + // Initialize the task order array. + if (!randomSelectorComponent.TaskOrder.IsCreated) { + var childCount = TraversalUtility.GetImmediateChildCount(ref taskComponent, ref taskComponentsBuffer); + var builder = new BlobBuilder(Allocator.Temp); + ref var root = ref builder.ConstructRoot(); + var orderArray = builder.Allocate(ref root.Indicies, childCount); + var childIndex = taskComponent.Index + 1; + for (int j = 0; j < childCount; ++j) { + orderArray[j] = (ushort)childIndex; + childIndex = taskComponents[childIndex].SiblingIndex; + } + randomSelectorComponent.TaskOrder = builder.CreateBlobAssetReference(Allocator.Persistent); + builder.Dispose(); + } + + // Generate a new random number seed for each entity. + if (randomSelectorComponent.RandomNumberGenerator.state == 0) { + randomSelectorComponent.RandomNumberGenerator = Unity.Mathematics.Random.CreateFromIndex(randomSelectorComponent.Seed != 0 ? randomSelectorComponent.Seed : (uint)entity.Index); + } + + // Use fisher-yates to shuffle the array in place. + ref var initialTaskOrder = ref randomSelectorComponent.TaskOrder.Value.Indicies; + var index = initialTaskOrder.Length; + while (index != 0) { + var randomUnitFloat = randomSelectorComponent.RandomNumberGenerator.NextFloat(); + var randomIndex = (int)Unity.Mathematics.math.floor(randomUnitFloat * index); + index--; + + var element = initialTaskOrder[randomIndex]; + initialTaskOrder[randomIndex] = initialTaskOrder[index]; + initialTaskOrder[index] = element; + } + + randomSelectorComponent.ActiveRelativeChildIndex = 0; + randomSelectorComponentsBuffer[i] = randomSelectorComponent; + + branchComponent.NextIndex = initialTaskOrder[randomSelectorComponent.ActiveRelativeChildIndex]; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + + // The child may have already ran and have a non-inactive status. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[branchComponent.NextIndex] = nextChildTaskComponent; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The randomSelector task is currently active. Check the first child. + ref var taskOrder = ref randomSelectorComponent.TaskOrder.Value.Indicies; + var childTaskComponent = taskComponents[taskOrder[randomSelectorComponent.ActiveRelativeChildIndex]]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + if (randomSelectorComponent.ActiveRelativeChildIndex == taskOrder.Length - 1 || childTaskComponent.Status == TaskStatus.Success) { + // There are no more children or the child succeeded. The random selector task should end. A task status of inactive indicates the last task was disabled. Return failure. + taskComponent.Status = childTaskComponent.Status != TaskStatus.Inactive ? childTaskComponent.Status : TaskStatus.Failure; + randomSelectorComponent.ActiveRelativeChildIndex = 0; + taskComponentsBuffer[randomSelectorComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } else { + // The child task returned failure. Move onto the next task. + randomSelectorComponent.ActiveRelativeChildIndex++; + var nextIndex = taskOrder[randomSelectorComponent.ActiveRelativeChildIndex]; + var nextTaskComponent = taskComponents[nextIndex]; + nextTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[nextIndex] = nextTaskComponent; + + branchComponent.NextIndex = nextIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + randomSelectorComponentsBuffer[i] = randomSelectorComponent; + } + } + } + + /// + /// The task has been destroyed. + /// + /// The current state of the system. + private void OnDestroy(ref SystemState state) + { + foreach (var randomSelectorComponents in SystemAPI.Query>()) { + for (int i = 0; i < randomSelectorComponents.Length; ++i) { + var randomSelectorComponent = randomSelectorComponents[i]; + if (randomSelectorComponent.TaskOrder.IsCreated) { + randomSelectorComponent.TaskOrder.Dispose(); + } + } + } + } + } + + /// + /// An interrupt has occurred. Ensure the task state is correct after the interruption. + /// + [DisableAutoCreation] + + public partial struct RandomSelectorInterruptSystem : ISystem + { + /// + /// Runs the logic after an interruption. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (taskComponents, randomSelectorComponents) in + SystemAPI.Query, DynamicBuffer>().WithAll()) { + for (int i = 0; i < randomSelectorComponents.Length; ++i) { + var randomSelectorComponent = randomSelectorComponents[i]; + // The active child will have a non-running status if it has been interrupted. + var taskComponent = taskComponents[randomSelectorComponent.Index]; + if (taskComponent.Status == TaskStatus.Running && taskComponents[randomSelectorComponent.TaskOrder.Value.Indicies[randomSelectorComponent.ActiveRelativeChildIndex]].Status != TaskStatus.Running) { + ushort relativeChildIndex = 0; + // Find the currently active task. + while (taskComponents[randomSelectorComponent.TaskOrder.Value.Indicies[relativeChildIndex]].Status != TaskStatus.Running) { + relativeChildIndex++; + } + randomSelectorComponent.ActiveRelativeChildIndex = relativeChildIndex; + var randomSelectorBuffer = randomSelectorComponents; + randomSelectorBuffer[i] = randomSelectorComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs.meta new file mode 100644 index 000000000..656ded4c5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 88b2c4cec0256b8478ada94d9f020ae3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSelector.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs new file mode 100644 index 000000000..35d7f43ac --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs @@ -0,0 +1,345 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Collections; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + /// + /// A node representation of the random sequence task. + /// + [NodeIcon("edb30349221143a408c76da55a6aa809", "cfb9039832ed52748b617bde070898dc")] + [NodeDescription("Similar to the sequence task, the random sequence task will return success as soon as every child task returns success. " + + "The difference is that the random sequence class will run its children in a random order. The sequence task is deterministic " + + "in that it will always run the tasks from left to right within the tree. The random sequence task shuffles the child tasks up and then begins " + + "execution in a random order. Other than that the random sequence class is the same as the sequence class. It will stop running tasks " + + "as soon as a single task ends in failure. On a task failure it will stop executing all of the child tasks and return failure. " + + "If no child returns failure then it will return success.")] + public struct RandomSequence : ILogicNode, IParentNode, ITaskComponentData, IComposite, IConditionalAbortParent, IInterruptResponder, ISavableTask, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("Specifies how the child conditional tasks should be reevaluated.")] + [SerializeField] ConditionalAbortType m_AbortType; + [Tooltip("The seed of the random number generator. Set to 0 to use the entity index as the seed.")] + [SerializeField] uint m_Seed; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public ConditionalAbortType AbortType { get => m_AbortType; set => m_AbortType = value; } + public uint Seed { get => m_Seed; set => m_Seed = value; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(RandomSequenceTag); } + public Type SystemType { get => typeof(RandomSequenceTaskSystem); } + public Type InterruptSystemType { get => typeof(RandomSequenceInterruptSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new RandomSequenceComponent() { + Index = RuntimeIndex, + Seed = m_Seed, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var randomSequenceComponents = world.EntityManager.GetBuffer(entity); + var randomSequenceComponent = randomSequenceComponents[m_ComponentIndex]; + + // Save the active child and array order. + var saveData = new object[2]; + saveData[0] = randomSequenceComponent.ActiveRelativeChildIndex; + if (randomSequenceComponent.TaskOrder.IsCreated) { + var taskOrder = randomSequenceComponent.TaskOrder.Value.Indicies.ToArray(); + saveData[1] = taskOrder; + } + return saveData; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var randomSequenceComponents = world.EntityManager.GetBuffer(entity); + var randomSequenceComponent = randomSequenceComponents[m_ComponentIndex]; + + // saveData is the active child and array order. + var taskSaveData = (object[])saveData; + randomSequenceComponent.ActiveRelativeChildIndex = (ushort)taskSaveData[0]; + if (taskSaveData[1] != null) { + var taskOrder = (ushort[])taskSaveData[1]; + var builder = new BlobBuilder(Allocator.Temp); + ref var root = ref builder.ConstructRoot(); + var orderArray = builder.Allocate(ref root.Indicies, taskOrder.Length); + for (int i = 0; i < taskOrder.Length; i++) { + orderArray[i] = taskOrder[i]; + } + randomSequenceComponent.TaskOrder = builder.CreateBlobAssetReference(Allocator.Persistent); + builder.Dispose(); + } + randomSequenceComponents[m_ComponentIndex] = randomSequenceComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.AbortType = AbortType; + return clone; + } + } + + /// + /// The DOTS data structure for the RandomSequence class. + /// + public struct RandomSequenceComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The relative index of the child that is currently active.")] + public ushort ActiveRelativeChildIndex; + [Tooltip("The seed of the random number generator.")] + public uint Seed; + [Tooltip("The random number generator for the task.")] + public Unity.Mathematics.Random RandomNumberGenerator; + [Tooltip("The indicies of the child task execution order.")] + public BlobAssetReference TaskOrder; + } + + /// + /// A DOTS tag indicating when a RandomSequence node is active. + /// + public struct RandomSequenceTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the RandomSequence logic. + /// + [DisableAutoCreation] + public partial struct RandomSequenceTaskSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (branchComponents, taskComponents, randomSequenceComponents, entity) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll().WithEntityAccess()) { + for (int i = 0; i < randomSequenceComponents.Length; ++i) { + var randomSequenceComponent = randomSequenceComponents[i]; + var taskComponent = taskComponents[randomSequenceComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + var randomSequenceComponentsBuffer = randomSequenceComponents; + var taskComponentsBuffer = taskComponents; + var branchComponentBuffer = branchComponents; + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponentsBuffer[taskComponent.Index] = taskComponent; + + // Initialize the task order array. + if (!randomSequenceComponent.TaskOrder.IsCreated) { + var childCount = TraversalUtility.GetImmediateChildCount(ref taskComponent, ref taskComponentsBuffer); + var builder = new BlobBuilder(Allocator.Temp); + ref var root = ref builder.ConstructRoot(); + var orderArray = builder.Allocate(ref root.Indicies, childCount); + var childIndex = taskComponent.Index + 1; + for (int j = 0; j < childCount; ++j) { + orderArray[j] = (ushort)childIndex; + childIndex = taskComponents[childIndex].SiblingIndex; + } + randomSequenceComponent.TaskOrder = builder.CreateBlobAssetReference(Allocator.Persistent); + builder.Dispose(); + } + + // Generate a new random number seed for each entity. + if (randomSequenceComponent.RandomNumberGenerator.state == 0) { + randomSequenceComponent.RandomNumberGenerator = Unity.Mathematics.Random.CreateFromIndex(randomSequenceComponent.Seed != 0 ? randomSequenceComponent.Seed : (uint)entity.Index); + } + + // Use fisher-yates to shuffle the array in place. + ref var initialTaskOrder = ref randomSequenceComponent.TaskOrder.Value.Indicies; + var index = initialTaskOrder.Length; + while (index != 0) { + var randomUnitFloat = randomSequenceComponent.RandomNumberGenerator.NextFloat(); + var randomIndex = (int)Unity.Mathematics.math.floor(randomUnitFloat * index); + index--; + + var element = initialTaskOrder[randomIndex]; + initialTaskOrder[randomIndex] = initialTaskOrder[index]; + initialTaskOrder[index] = element; + } + + randomSequenceComponent.ActiveRelativeChildIndex = 0; + randomSequenceComponentsBuffer[i] = randomSequenceComponent; + + branchComponent.NextIndex = initialTaskOrder[randomSequenceComponent.ActiveRelativeChildIndex]; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + + // Start the child. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[branchComponent.NextIndex] = nextChildTaskComponent; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The randomSequence task is currently active. Check the first child. + ref var taskOrder = ref randomSequenceComponent.TaskOrder.Value.Indicies; + var childTaskComponent = taskComponents[taskOrder[randomSequenceComponent.ActiveRelativeChildIndex]]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + if (randomSequenceComponent.ActiveRelativeChildIndex == taskOrder.Length - 1 || childTaskComponent.Status == TaskStatus.Failure) { + // There are no more children or the child failed. The random sequence task should end. A task status of inactive indicates the last task was disabled. Return success. + taskComponent.Status = childTaskComponent.Status != TaskStatus.Inactive ? childTaskComponent.Status : TaskStatus.Success; + randomSequenceComponent.ActiveRelativeChildIndex = 0; + taskComponentsBuffer[randomSequenceComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } else { + // The child task returned success. Move onto the next task. + randomSequenceComponent.ActiveRelativeChildIndex++; + var nextIndex = taskOrder[randomSequenceComponent.ActiveRelativeChildIndex]; + var nextTaskComponent = taskComponents[nextIndex]; + nextTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[nextIndex] = nextTaskComponent; + + branchComponent.NextIndex = nextIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + randomSequenceComponentsBuffer[i] = randomSequenceComponent; + } + } + } + + /// + /// The task has been destroyed. + /// + /// The current state of the system. + private void OnDestroy(ref SystemState state) + { + foreach (var randomSequenceComponents in SystemAPI.Query>()) { + for (int i = 0; i < randomSequenceComponents.Length; ++i) { + var randomSequenceComponent = randomSequenceComponents[i]; + if (randomSequenceComponent.TaskOrder.IsCreated) { + randomSequenceComponent.TaskOrder.Dispose(); + } + } + } + } + } + + /// + /// An interrupt has occurred. Ensure the task state is correct after the interruption. + /// + [DisableAutoCreation] + public partial struct RandomSequenceInterruptSystem : ISystem + { + /// + /// Runs the logic after an interruption. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (taskComponents, randomSequenceComponents) in + SystemAPI.Query, DynamicBuffer>().WithAll()) { + for (int i = 0; i < randomSequenceComponents.Length; ++i) { + var randomSequenceComponent = randomSequenceComponents[i]; + // The active child will have a non-running status if it has been interrupted. + var taskComponent = taskComponents[randomSequenceComponent.Index]; + if (taskComponent.Status == TaskStatus.Running && taskComponents[randomSequenceComponent.TaskOrder.Value.Indicies[randomSequenceComponent.ActiveRelativeChildIndex]].Status != TaskStatus.Running) { + ushort relativeChildIndex = 0; + // Find the currently active task. + while (taskComponents[randomSequenceComponent.TaskOrder.Value.Indicies[relativeChildIndex]].Status != TaskStatus.Running) { + relativeChildIndex++; + } + randomSequenceComponent.ActiveRelativeChildIndex = relativeChildIndex; + var randomSequenceBuffer = randomSequenceComponents; + randomSequenceBuffer[i] = randomSequenceComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs.meta new file mode 100644 index 000000000..ee25c94c2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: d02a71e18382d8548b9f8f0a4834da93 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/RandomSequence.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs new file mode 100644 index 000000000..c4b3948c1 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs @@ -0,0 +1,277 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + /// + /// A node representation of the selector task. + /// + [NodeIcon("4c3d0559a9ebc604e88b16e9a3fdfa05", "de3acf0e386a26246b8bc999b1ef8e32")] + [NodeDescription("The selector task is similar to an \"or\" operation. It will return success as soon as one of its child tasks return success. " + + "If a child task returns failure then it will sequentially run the next task. If no child task returns success then it will return failure.")] + public struct Selector : ILogicNode, IParentNode, ITaskComponentData, IComposite, IConditionalAbortParent, IInterruptResponder, ISavableTask, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("Specifies how the child conditional tasks should be reevaluated.")] + [SerializeField] ConditionalAbortType m_AbortType; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public ConditionalAbortType AbortType { get => m_AbortType; set => m_AbortType = value; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(SelectorTag); } + public Type SystemType { get => typeof(SelectorTaskSystem); } + public Type InterruptSystemType { get => typeof(SelectorInterruptSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new SelectorComponent() { + Index = RuntimeIndex, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var selectorComponents = world.EntityManager.GetBuffer(entity); + var selectorComponent = selectorComponents[m_ComponentIndex]; + + // Save the active child. + return selectorComponent.ActiveChildIndex; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var selectorComponents = world.EntityManager.GetBuffer(entity); + var selectorComponent = selectorComponents[m_ComponentIndex]; + + // saveData is the active child. + selectorComponent.ActiveChildIndex = (ushort)saveData; + selectorComponents[m_ComponentIndex] = selectorComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.AbortType = AbortType; + return clone; + } + } + + /// + /// The DOTS data structure for the Selector class. + /// + public struct SelectorComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The index of the child that is currently active.")] + public ushort ActiveChildIndex; + } + + /// + /// A DOTS tag indicating when a Selector node is active. + /// + public struct SelectorTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Selector logic. + /// + [DisableAutoCreation] + public partial struct SelectorTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new SelectorJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct SelectorJob : IJobEntity + { + /// + /// Executes the selector logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of SelectorComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer selectorComponents) + { + for (int i = 0; i < selectorComponents.Length; ++i) { + var selectorComponent = selectorComponents[i]; + var taskComponent = taskComponents[selectorComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + selectorComponent.ActiveChildIndex = (ushort)(taskComponent.Index + 1); + selectorComponents[i] = selectorComponent; + + branchComponent.NextIndex = selectorComponent.ActiveChildIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + + // Start the child. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponents[branchComponent.NextIndex] = nextChildTaskComponent; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The selector task is currently active. Check the first child. + var childTaskComponent = taskComponents[selectorComponent.ActiveChildIndex]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + if (childTaskComponent.SiblingIndex == ushort.MaxValue || childTaskComponent.Status == TaskStatus.Success) { + // There are no more children or the child succeeded. The selector task should end. A task status of inactive indicates the last task was disabled. Return failure. + taskComponent.Status = childTaskComponent.Status != TaskStatus.Inactive ? childTaskComponent.Status : TaskStatus.Failure; + selectorComponent.ActiveChildIndex = (ushort)(selectorComponent.Index + 1); + taskComponents[selectorComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } else { + // The previous task is no longer running. + var siblingTaskComponent = taskComponents[childTaskComponent.SiblingIndex]; + + siblingTaskComponent.Status = TaskStatus.Queued; + taskComponents[childTaskComponent.SiblingIndex] = siblingTaskComponent; + // The current index is now the sibling index. + selectorComponent.ActiveChildIndex = childTaskComponent.SiblingIndex; + + branchComponent.NextIndex = selectorComponent.ActiveChildIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + selectorComponents[i] = selectorComponent; + } + } + } + } + + /// + /// An interrupt has occurred. Ensure the task state is correct after the interruption. + /// + [DisableAutoCreation] + public partial struct SelectorInterruptSystem : ISystem + { + /// + /// Runs the logic after an interruption. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (taskComponents, selectorComponents) in + SystemAPI.Query, DynamicBuffer>().WithAll()) { + for (int i = 0; i < selectorComponents.Length; ++i) { + var selectorComponent = selectorComponents[i]; + // The active child will have a non-running status if it has been interrupted. + if (taskComponents[selectorComponent.ActiveChildIndex].Status != TaskStatus.Running) { + var childIndex = (ushort)(selectorComponent.Index + 1); + // Find the currently active task. + while (childIndex != ushort.MaxValue && taskComponents[childIndex].Status != TaskStatus.Running) { + childIndex = taskComponents[childIndex].SiblingIndex; + } + if (childIndex != ushort.MaxValue) { + selectorComponent.ActiveChildIndex = childIndex; + } + var selectorBuffer = selectorComponents; + selectorBuffer[i] = selectorComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs.meta new file mode 100644 index 000000000..82ac78176 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 9b0cbe842d363e545a41d9ac600430a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Selector.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs new file mode 100644 index 000000000..6e305ef8d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs @@ -0,0 +1,276 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + using System; + + /// + /// A node representation of the sequence task. + /// + [NodeIcon("8981cc246f900b24da46ae10eb49b68b", "4a7b39d8e0d056a4a9d8eb390b4bc9b8")] + [NodeDescription("The sequence task is similar to an \"and\" operation. It will return failure as soon as one of its child tasks return failure. " + + "If a child task returns success then it will sequentially run the next task. If all child tasks return success then it will return success.")] + public struct Sequence : ILogicNode, IParentNode, ITaskComponentData, IComposite, IConditionalAbortParent, IInterruptResponder, ISavableTask, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("Specifies how the child conditional tasks should be reevaluated.")] + [SerializeField] ConditionalAbortType m_AbortType; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set { m_ParentIndex = value; } } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public ConditionalAbortType AbortType { get => m_AbortType; set => m_AbortType = value; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(SequenceTag); } + public Type SystemType { get => typeof(SequenceTaskSystem); } + public Type InterruptSystemType { get => typeof(SequenceInterruptSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new SequenceComponent() { + Index = RuntimeIndex, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var sequenceComponents = world.EntityManager.GetBuffer(entity); + var sequenceComponent = sequenceComponents[m_ComponentIndex]; + + // Save the active child. + return sequenceComponent.ActiveChildIndex; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var sequenceComponents = world.EntityManager.GetBuffer(entity); + var sequenceComponent = sequenceComponents[m_ComponentIndex]; + + // saveData is the active child. + sequenceComponent.ActiveChildIndex = (ushort)saveData; + sequenceComponents[m_ComponentIndex] = sequenceComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.AbortType = AbortType; + return clone; + } + } + + /// + /// The DOTS data structure for the Sequence class. + /// + public struct SequenceComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The index of the child that is currently active.")] + public ushort ActiveChildIndex; + } + + /// + /// A DOTS tag indicating when a Sequence node is active. + /// + public struct SequenceTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Sequence logic. + /// + [DisableAutoCreation] + public partial struct SequenceTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new SequenceJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct SequenceJob : IJobEntity + { + /// + /// Executes the sequence logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of SequenceComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer sequenceComponents) + { + for (int i = 0; i < sequenceComponents.Length; ++i) { + var sequenceComponent = sequenceComponents[i]; + var taskComponent = taskComponents[sequenceComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + sequenceComponent.ActiveChildIndex = (ushort)(taskComponent.Index + 1); + sequenceComponents[i] = sequenceComponent; + + branchComponent.NextIndex = sequenceComponent.ActiveChildIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + + // Start the child. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponents[branchComponent.NextIndex] = nextChildTaskComponent; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The sequence task is currently active. Check the first child. + var childTaskComponent = taskComponents[sequenceComponent.ActiveChildIndex]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + if (childTaskComponent.SiblingIndex == ushort.MaxValue || childTaskComponent.Status == TaskStatus.Failure) { + // There are no more children or the child failed. The sequence task should end. A task status of inactive indicates the last task was disabled. Return success. + taskComponent.Status = childTaskComponent.Status != TaskStatus.Inactive ? childTaskComponent.Status : TaskStatus.Success; + sequenceComponent.ActiveChildIndex = (ushort)(sequenceComponent.Index + 1); + taskComponents[sequenceComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } else { + // The previous task is no longer running. + var siblingTaskComponent = taskComponents[childTaskComponent.SiblingIndex]; + + siblingTaskComponent.Status = TaskStatus.Queued; + taskComponents[childTaskComponent.SiblingIndex] = siblingTaskComponent; + // The current index is now the sibling index. + sequenceComponent.ActiveChildIndex = childTaskComponent.SiblingIndex; + + branchComponent.NextIndex = sequenceComponent.ActiveChildIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + sequenceComponents[i] = sequenceComponent; + } + } + } + } + + /// + /// An interrupt has occurred. Ensure the task state is correct after the interruption. + /// + [DisableAutoCreation] + public partial struct SequenceInterruptSystem : ISystem + { + /// + /// Runs the logic after an interruption. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (taskComponents, sequenceComponents) in + SystemAPI.Query, DynamicBuffer>().WithAll()) { + for (int i = 0; i < sequenceComponents.Length; ++i) { + var sequenceComponent = sequenceComponents[i]; + if (taskComponents[sequenceComponent.ActiveChildIndex].Status != TaskStatus.Running) { + var childIndex = (ushort)(sequenceComponent.Index + 1); + // Find the currently active task. + while (childIndex != ushort.MaxValue && taskComponents[childIndex].Status != TaskStatus.Running) { + childIndex = taskComponents[childIndex].SiblingIndex; + } + if (childIndex != ushort.MaxValue) { + sequenceComponent.ActiveChildIndex = childIndex; + } + var sequenceBuffer = sequenceComponents; + sequenceBuffer[i] = sequenceComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs.meta new file mode 100644 index 000000000..6e9219351 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 519b18064a01b25499eb333d144065c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/Sequence.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs new file mode 100644 index 000000000..f0991f596 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs @@ -0,0 +1,387 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using Unity.Collections; + using Unity.Entities; + using Unity.Burst; + using UnityEngine; + using System; + + /// + /// A node representation of the utility selector task. + /// + [NodeIcon("9d36cd363c3e08246a6e9eaf5ad99d69", "db3d0b77c7f9e0b4f9157aa03178836a")] + [NodeDescription("The utility selector task evaluates the child tasks using Utility Theory AI. The child task can return the utility value " + + "at that particular time. The task with the highest utility value will be selected and the existing running task will be aborted. The utility selector " + + "task reevaluates its children every tick.")] + public struct UtilitySelector : ILogicNode, IParentNode, ITaskComponentData, IComposite, ISavableTask, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return int.MaxValue; } } + + public ComponentType Tag { get => typeof(UtilitySelectorTag); } + public System.Type SystemType { get => typeof(UtilitySelectorTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + + buffer.Add(new UtilitySelectorComponent() { + Index = RuntimeIndex, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + + var entityManager = world.EntityManager; + ComponentUtility.AddInterruptComponents(entityManager, entity); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var utilitySelectorComponents = world.EntityManager.GetBuffer(entity); + var utilitySelectorComponent = utilitySelectorComponents[m_ComponentIndex]; + + // Save the active child. + return utilitySelectorComponent.ActiveChildIndex; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var utilitySelectorComponents = world.EntityManager.GetBuffer(entity); + var utilitySelectorComponent = utilitySelectorComponents[m_ComponentIndex]; + + // saveData is the active child index. + utilitySelectorComponent.ActiveChildIndex = (ushort)saveData; + utilitySelectorComponents[m_ComponentIndex] = utilitySelectorComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + return clone; + } + } + + /// + /// The DOTS data structure for the UtilitySelector class. + /// + public struct UtilitySelectorComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The index of the child that is currently active.")] + public ushort ActiveChildIndex; + [Tooltip("The index of the UtilityValueComponent that corresponds to each child.")] + public NativeArray UtilityItems; + + /// + /// A mapping between the UnityValueComponent and the task. + /// + public struct UtilityItem + { + [Tooltip("The index of the task.")] + public ushort TaskIndex; + [Tooltip("The index of the UtilityValueComponent.")] + public ushort UtilityValueIndex; + [Tooltip("Can the task continue to exectute?")] + public bool CanExecute; + } + } + + /// + /// DOTS structure that contains the most recently utility of the task. + /// + public struct UtilityValueComponent : IBufferElementData + { + [Tooltip("The index of the task.")] + public ushort Index; + [Tooltip("The current utility value. The higher the value the more likely it will be selected.")] + public float Value; + } + + /// + /// A DOTS tag indicating when a UtilitySelector node is active. + /// + public struct UtilitySelectorTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the UtilitySelector logic. + /// + [DisableAutoCreation] + public partial struct UtilitySelectorTaskSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var hasUtilityValueComponent = false; + foreach (var (utilitySelectorComponents, utilityValueComponents, taskComponents, branchComponents, entity) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer, DynamicBuffer>().WithAll().WithEntityAccess()) { + + hasUtilityValueComponent = true; + for (int i = 0; i < utilitySelectorComponents.Length; ++i) { + var utilitySelectorComponent = utilitySelectorComponents[i]; + var taskComponent = taskComponents[utilitySelectorComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + + // Do not continue if there will be an interrupt. + if (branchComponent.InterruptType != InterruptType.None) { + continue; + } + + var utilitySelectorComponentsBuffer = utilitySelectorComponents; + var utilityValueComponentBuffer = utilityValueComponents; + var taskComponentsBuffer = taskComponents; + var branchComponentBuffer = branchComponents; + if (taskComponent.Status == TaskStatus.Queued) { + // Initialize the UtilityItem array. + if (utilitySelectorComponent.UtilityItems.Length == 0) { + var childCount = TraversalUtility.GetImmediateChildCount(ref taskComponent, ref taskComponentsBuffer); + var utilityItems = new NativeArray(childCount, Allocator.Persistent); + // Match the UtilitySelectorComponent with the child index. + var childIndex = (ushort)(taskComponent.Index + 1); + for (ushort j = 0; j < childCount; ++j) { + utilityItems[j] = new UtilitySelectorComponent.UtilityItem() { TaskIndex = childIndex, UtilityValueIndex = ushort.MaxValue, CanExecute = !taskComponents[childIndex].Disabled }; + + for (ushort k = 0; k < utilityValueComponents.Length; ++k) { + var utilityValueComponent = utilityValueComponents[k]; + if (utilityValueComponent.Index == childIndex) { + var utilityItem = utilityItems[j]; + utilityItem.UtilityValueIndex = k; + utilityItems[j] = utilityItem; + break; + } + } + childIndex = taskComponents[childIndex].SiblingIndex; + } + + utilitySelectorComponent.UtilityItems = utilityItems; + } else { + // Reset the execution status. + var childIndex = (ushort)(taskComponent.Index + 1); + for (int j = 0; j < utilitySelectorComponent.UtilityItems.Length; ++j) { + var utilityItem = utilitySelectorComponent.UtilityItems[j]; + utilityItem.CanExecute = !taskComponents[childIndex].Disabled; + utilitySelectorComponent.UtilityItems[j] = utilityItem; + + childIndex = taskComponents[childIndex].SiblingIndex; + } + } + + utilitySelectorComponent.ActiveChildIndex = GetHighestUtility(utilitySelectorComponent.UtilityItems, ref utilityValueComponentBuffer); + utilitySelectorComponentsBuffer[i] = utilitySelectorComponent; + + if (utilitySelectorComponent.ActiveChildIndex == ushort.MaxValue) { + taskComponent.Status = TaskStatus.Failure; + branchComponent.NextIndex = taskComponent.ParentIndex; + } else { + taskComponent.Status = TaskStatus.Running; + branchComponent.NextIndex = utilitySelectorComponent.UtilityItems[utilitySelectorComponent.ActiveChildIndex].TaskIndex; + + // Start the child. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[branchComponent.NextIndex] = nextChildTaskComponent; + } + taskComponentsBuffer[taskComponent.Index] = taskComponent; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + var childTaskComponent = taskComponents[utilitySelectorComponent.UtilityItems[utilitySelectorComponent.ActiveChildIndex].TaskIndex]; + if (childTaskComponent.Status == TaskStatus.Success) { + // The child has returned success. Stop the selector. + taskComponent.Status = childTaskComponent.Status; + taskComponentsBuffer[utilitySelectorComponent.Index] = taskComponent; + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + continue; + } else if (childTaskComponent.Status == TaskStatus.Failure) { + var utilityItem = utilitySelectorComponent.UtilityItems[utilitySelectorComponent.ActiveChildIndex]; + utilityItem.CanExecute = false; + utilitySelectorComponent.UtilityItems[utilitySelectorComponent.ActiveChildIndex] = utilityItem; + + utilitySelectorComponentsBuffer[i] = utilitySelectorComponent; + } + + // The active task returned failure or is currently running. Determine if the active task needs to change. + var highestIndex = GetHighestUtility(utilitySelectorComponent.UtilityItems, ref utilityValueComponentBuffer); + if (highestIndex == utilitySelectorComponent.ActiveChildIndex) { + // No changes are necessary. + continue; + } + + var activeTaskIndex = utilitySelectorComponent.UtilityItems[utilitySelectorComponent.ActiveChildIndex].TaskIndex; + utilitySelectorComponent.ActiveChildIndex = highestIndex; + utilitySelectorComponentsBuffer[i] = utilitySelectorComponent; + + // A new branch has been selected. Trigger an interrupt on the currently active branch. + if (taskComponents[activeTaskIndex].Status == TaskStatus.Running){ + branchComponent.InterruptType = InterruptType.Branch; + branchComponent.InterruptIndex = utilitySelectorComponent.UtilityItems[highestIndex].TaskIndex; + state.EntityManager.SetComponentEnabled(entity, true); + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + continue; + } + + // No more tasks may need to run. + if (highestIndex == ushort.MaxValue) { + taskComponent.Status = TaskStatus.Failure; + taskComponentsBuffer[utilitySelectorComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + } else { + // Run the task with the next highest utility value. + var nextTaskIndex = utilitySelectorComponent.UtilityItems[utilitySelectorComponent.ActiveChildIndex].TaskIndex; + var nextTaskComponent = taskComponents[nextTaskIndex]; + nextTaskComponent.Status = TaskStatus.Queued; + taskComponentsBuffer[nextTaskIndex] = nextTaskComponent; + + branchComponent.NextIndex = nextTaskIndex; + } + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + } + + // Special case where the UtilitySelectorComponent has no UtilityValueComponent children. + if (!hasUtilityValueComponent) { + foreach (var (utilitySelectorComponents, taskComponents, branchComponents) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll()) { + + for (int i = 0; i < utilitySelectorComponents.Length; ++i) { + var utilitySelectorComponent = utilitySelectorComponents[i]; + var taskComponent = taskComponents[utilitySelectorComponent.Index]; + + // If there are no values then the selector should return failure. + if (taskComponent.Status == TaskStatus.Queued && utilitySelectorComponent.UtilityItems.Length == 0) { + taskComponent.Status = TaskStatus.Failure; + var taskComponentsBuffer = taskComponents; + taskComponentsBuffer[utilitySelectorComponent.Index] = taskComponent; + + var branchComponent = branchComponents[taskComponent.BranchIndex]; + branchComponent.NextIndex = taskComponent.ParentIndex; + var branchComponentBuffer = branchComponents; + branchComponentBuffer[taskComponent.BranchIndex] = branchComponent; + } + } + } + } + } + + /// + /// Retruns the task index with the highest utility value. + /// + /// The components with utility values. + /// The utility values of the tasks. + /// The task with the highest utility value. + [BurstCompile] + private ushort GetHighestUtility(NativeArray utilityItems, ref DynamicBuffer utilityValueComponents) + { + var utilityIndex = ushort.MaxValue; + var highestUtility = float.MinValue; + for (ushort i = 0; i < utilityItems.Length; ++i) { + if (utilityItems[i].UtilityValueIndex == ushort.MaxValue || !utilityItems[i].CanExecute) { + continue; + } + + var utilityValue = utilityValueComponents[utilityItems[i].UtilityValueIndex].Value; + if (utilityValue > highestUtility) { + highestUtility = utilityValue; + utilityIndex = i; + } + } + + return utilityIndex; + } + + /// + /// The task has been destroyed. + /// + /// The current state of the system. + private void OnDestroy(ref SystemState state) + { + foreach (var utilitySelectorComponents in SystemAPI.Query>()) { + for (int i = 0; i < utilitySelectorComponents.Length; ++i) { + utilitySelectorComponents[i].UtilityItems.Dispose(); + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs.meta new file mode 100644 index 000000000..72c92d05a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: c68beac686ca75c42879aee6c864fc5e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Composites/UtilitySelector.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs new file mode 100644 index 000000000..84e4f21a5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs @@ -0,0 +1,28 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + /// + /// Specifies that the task can interrupt using conditional aborts. + /// + public interface IConditionalAbortParent + { + ConditionalAbortType AbortType { get; } + } + + /// + /// The type of conditional abort. + /// + public enum ConditionalAbortType : byte + { + None, // No abort specified. + LowerPriority, // Any task to the right of the current branch can be aborted. + Self, // Any task within the current branch can be aborted. + Both // A combination of LowerPriority and Self. + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs.meta new file mode 100644 index 000000000..9d28229bf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: c8d72bd503b98814ca0c5cbc857cd014 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/ConditionalAbortType.cs + uploadId: 775358 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Conditionals.meta rename to Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals.meta index 6c056f2a5..0f2fa6c4d 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals.meta +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dd959be462adfbc4a8878260547827cb +guid: 0a0792e3d1b870e4dad5e75b17c12724 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs new file mode 100644 index 000000000..2da304620 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs @@ -0,0 +1,39 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + + /// + /// A TaskObject implementation of the Conditional task. + /// + [NodeIcon("dea5c23eac9d12c4cbd380cc879816ea", "2963cf3eb0c036449829254b2074c4c3")] + public abstract class Conditional : Task, IConditional, IConditionalReevaluation + { + /// + /// Reevaluates the task logic. Returns a TaskStatus indicating how the behavior tree flow should proceed. + /// + /// The status of the task during the reevaluation phase. + public virtual TaskStatus OnReevaluateUpdate() { return OnUpdate(); } + + /// + /// Is the task being reevaluated? + /// + /// True if the task is being reevaluated. + protected bool IsReevaluating() + { + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity, true); + if (m_RuntimeIndex >= taskComponents.Length) { + return false; + } + + return taskComponents[m_RuntimeIndex].Reevaluate; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs.meta new file mode 100644 index 000000000..6c5f115e0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3a2db972855f8ce48b67b75699c1745a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Conditional.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs new file mode 100644 index 000000000..8c5f4f274 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs @@ -0,0 +1,37 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime; + using UnityEngine; + + /// + /// A TaskObject implementation of the Conditional task. This class can be used when the task should not be grouped by the StackedConditional task. + /// + [NodeIcon("dea5c23eac9d12c4cbd380cc879816ea", "2963cf3eb0c036449829254b2074c4c3")] + public abstract class ConditionalNode : Task, ILogicNode, IConditional, IConditionalReevaluation + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + /// + /// Reevaluates the task logic. Returns a TaskStatus indicating how the behavior tree flow should proceed. + /// + /// The status of the task during the reevaluation phase. + public virtual TaskStatus OnReevaluateUpdate() { return OnUpdate(); } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs.meta new file mode 100644 index 000000000..e9b247963 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5a27f55166c97394ba777a25ede3e192 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/ConditionalNode.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs new file mode 100644 index 000000000..55d041179 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs @@ -0,0 +1,257 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Events; + using UnityEngine; + + /// + /// A TaskObject implementation of the Conditional task. This class can be used when the task should not be grouped by the StackedConditional task. + /// + [NodeIcon("e6fc90c130121da4f9067b5e15b02975", "69959064b54a0cb4cb077dbb6967a3e1")] + [NodeDescription("Returns success as soon as the event specified by eventName has been received.")] + public class HasReceivedEvent : TargetBehaviorTreeConditional + { + [Tooltip("The name of the event that should be registered.")] + [SerializeField] protected SharedVariable m_EventName; + [Tooltip("Is the event a global event?")] + [SerializeField] protected SharedVariable m_GlobalEvent; + [Tooltip("Optionally store the first sent argument.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoredValue1; + [Tooltip("Optionally store the second sent argument.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoredValue2; + [Tooltip("Optionally store the third sent argument.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoredValue3; + + private string m_RegisteredEventName; + private bool m_EventRegistered; + private bool m_EventReceived; + + /// + /// The behavior tree has started. + /// + public override void OnBehaviorTreeStarted() + { + base.OnBehaviorTreeStarted(); + + RegisterEvents(); + } + + /// + /// Initializes the target behavior tree. + /// + protected override void InitializeTarget() + { + if (m_ResolvedBehaviorTree != null) { + UnregisterEvents(); + } + + base.InitializeTarget(); + + RegisterEvents(); + } + + /// + /// Registers for the events. + /// + private void RegisterEvents() + { + if (m_EventRegistered) { + return; + } + + if (string.IsNullOrEmpty(m_EventName.Value)) { + Debug.LogError("Error: Unable to receive event. The event name is empty."); + return; + } + + if (m_StoredValue1 == null || !m_StoredValue1.IsShared) { + if (m_GlobalEvent.Value) { + EventHandler.RegisterEvent(m_EventName.Value, ReceivedEvent); + } else { + EventHandler.RegisterEvent(m_ResolvedBehaviorTree, m_EventName.Value, ReceivedEvent); + } + } else { + if (m_StoredValue2 == null || !m_StoredValue2.IsShared) { + if (m_GlobalEvent.Value) { + EventHandler.RegisterEvent(m_EventName.Value, ReceivedEvent); + } else { + EventHandler.RegisterEvent(m_ResolvedBehaviorTree, m_EventName.Value, ReceivedEvent); + } + } else { + if (m_StoredValue3 == null || !m_StoredValue3.IsShared) { + if (m_GlobalEvent.Value) { + EventHandler.RegisterEvent(m_EventName.Value, ReceivedEvent); + } else { + EventHandler.RegisterEvent(m_ResolvedBehaviorTree, m_EventName.Value, ReceivedEvent); + } + } else { + if (m_GlobalEvent.Value) { + EventHandler.RegisterEvent(m_EventName.Value, ReceivedEvent); + } else { + EventHandler.RegisterEvent(m_ResolvedBehaviorTree, m_EventName.Value, ReceivedEvent); + } + } + } + } + + m_EventName.OnValueChange += UpdateEvents; + if (m_StoredValue1 != null) { m_StoredValue1.OnValueChange += UpdateEvents; } + if (m_StoredValue2 != null) { m_StoredValue2.OnValueChange += UpdateEvents; } + if (m_StoredValue3 != null) { m_StoredValue3.OnValueChange += UpdateEvents; } + + m_EventRegistered = true; + m_RegisteredEventName = m_EventName.Value; + } + + /// + /// The event name or parameter count has changed. Update the events. + /// + private void UpdateEvents() + { + UnregisterEvents(); + RegisterEvents(); + } + + /// + /// A parameterless event has been recevied. + /// + private void ReceivedEvent() + { + // The task has to be reevaluated in order for the event to be received. + if (!IsReevaluating()) { + return; + } + + m_EventReceived = true; + } + + /// + /// A single parameter event has been received. + /// + /// The first parameter. + private void ReceivedEvent(object arg1) + { + // The task has to be reevaluated in order for the event to be received. + if (!IsReevaluating()) { + return; + } + + m_EventReceived = true; + + if (m_StoredValue1 != null && m_StoredValue1.IsShared) { m_StoredValue1.SetValue(arg1); } + } + + /// + /// A two parameter event has been received. + /// + /// The first parameter. + /// The second parameter. + private void ReceivedEvent(object arg1, object arg2) + { + // The task has to be reevaluated in order for the event to be received. + if (!IsReevaluating()) { + return; + } + + m_EventReceived = true; + + if (m_StoredValue1 != null && m_StoredValue1.IsShared) { m_StoredValue1.SetValue(arg1); } + if (m_StoredValue2 != null && m_StoredValue2.IsShared) { m_StoredValue2.SetValue(arg2); } + } + + /// + /// A three parameter event has been received. + /// + /// The first parameter. + /// The second parameter. + /// The third parameter. + private void ReceivedEvent(object arg1, object arg2, object arg3) + { + // The task has to be reevaluated in order for the event to be received. + if (!IsReevaluating()) { + return; + } + + m_EventReceived = true; + + if (m_StoredValue1 != null && m_StoredValue1.IsShared) { m_StoredValue1.SetValue(arg1); } + if (m_StoredValue2 != null && m_StoredValue2.IsShared) { m_StoredValue2.SetValue(arg2); } + if (m_StoredValue3 != null && m_StoredValue3.IsShared) { m_StoredValue3.SetValue(arg3); } + } + + /// + /// The task has been updated. + /// + /// True if an event has been received. + public override TaskStatus OnUpdate() + { + if (string.IsNullOrEmpty(m_EventName.Value)) { + return TaskStatus.Failure; + } + + return m_EventReceived ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The task has ended. + /// + public override void OnEnd() + { + base.OnEnd(); + + m_EventReceived = false; + } + + /// + /// The behavior tree has been stopped. + /// + /// Is the behavior tree paused? + public override void OnBehaviorTreeStopped(bool paused) + { + base.OnBehaviorTreeStopped(paused); + + UnregisterEvents(); + m_EventReceived = false; + } + + /// + /// Unregisters for the events that were registered. + /// + private void UnregisterEvents() + { + // The events must be registered first in order to be unregistered. + if (string.IsNullOrEmpty(m_RegisteredEventName)) { + return; + } + + // Unregister from all parameters. This will ensure no events are subscribed if the parameters change. + if (m_GlobalEvent.Value) { + EventHandler.UnregisterEvent(m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_RegisteredEventName, ReceivedEvent); + } else { + EventHandler.UnregisterEvent(m_ResolvedBehaviorTree, m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_ResolvedBehaviorTree, m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_ResolvedBehaviorTree, m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_ResolvedBehaviorTree, m_RegisteredEventName, ReceivedEvent); + } + + m_EventName.OnValueChange -= UpdateEvents; + if (m_StoredValue1 != null) { m_StoredValue1.OnValueChange -= UpdateEvents; } + if (m_StoredValue2 != null) { m_StoredValue2.OnValueChange -= UpdateEvents; } + if (m_StoredValue3 != null) { m_StoredValue3.OnValueChange -= UpdateEvents; } + + m_EventRegistered = false; + m_RegisteredEventName = string.Empty; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs.meta new file mode 100644 index 000000000..bcbcaf8a0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3c2c0606584fdc345a81cf527b283e30 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasReceivedEvent.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs new file mode 100644 index 000000000..348475777 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs @@ -0,0 +1,38 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using System.Collections; + using UnityEngine; + + [NodeDescription("Returns true if the specified variable has a value.")] + public class HasValue : Conditional + { + [Tooltip("The variable to compare.")] + [SerializeField] protected SharedVariable m_Variable; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + object variableValue = null; + if (m_Variable == null || (variableValue = m_Variable.GetValue()) == null || variableValue.Equals(null)) { + return TaskStatus.Failure; + } + + if (variableValue is IList listValue) { + return listValue.Count > 0 ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs.meta new file mode 100644 index 000000000..4ecd734c9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: e1e162d80f7bf49419493fe43c33c0a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/HasValue.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs new file mode 100644 index 000000000..d5a28dd23 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs @@ -0,0 +1,29 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime; + + [NodeIcon("e0a8f1df788b6274a9a24003859dfa7e")] + [NodeDescription("Returns true if the specified behavior tree is active.")] + public class IsBehaviorTreeActive : TargetBehaviorTreeConditional + { + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + if (m_ResolvedBehaviorTree == null) { + return TaskStatus.Failure; + } + + return m_ResolvedBehaviorTree.IsActive() ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs.meta new file mode 100644 index 000000000..ea1bcbdcf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 2d23ca37ee86b15428911307549ab429 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/IsBehaviorTreeActive.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math.meta new file mode 100644 index 000000000..0891ce0b3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a1963b538eafb4144b6fdd080af86056 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs new file mode 100644 index 000000000..54715a88a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs @@ -0,0 +1,32 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Compares two boolean values.")] + [Shared.Utility.Category("Math")] + public class BoolComparison : Conditional + { + [Tooltip("The first boolean.")] + [SerializeField] protected SharedVariable m_Bool1; + [Tooltip("The second boolean.")] + [SerializeField] protected SharedVariable m_Bool2; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + return m_Bool1.Value == m_Bool2.Value ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs.meta new file mode 100644 index 000000000..a04945322 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 20df1d25d6eab8b429d6c8fe6af5a87a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/BoolComparison.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs new file mode 100644 index 000000000..e9aa5bdcc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs @@ -0,0 +1,61 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Compares two float values.")] + [Shared.Utility.Category("Math")] + public class FloatComparison : Conditional + { + /// + /// Specifies the type of comparison that should be performed. + /// + protected enum Operation + { + LessThan, + LessThanOrEqualTo, + EqualTo, + NotEqualTo, + GreaterThanOrEqualTo, + GreaterThan + } + + [Tooltip("The operation that should be performed.")] + [SerializeField] protected SharedVariable m_Operation; + [Tooltip("The first float.")] + [SerializeField] protected SharedVariable m_Float1; + [Tooltip("The second float.")] + [SerializeField] protected SharedVariable m_Float2; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + switch (m_Operation.Value) { + case Operation.LessThan: + return m_Float1.Value < m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.LessThanOrEqualTo: + return m_Float1.Value <= m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.EqualTo: + return m_Float1.Value == m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.NotEqualTo: + return m_Float1.Value != m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.GreaterThanOrEqualTo: + return m_Float1.Value >= m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.GreaterThan: + return m_Float1.Value > m_Float2.Value ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs.meta new file mode 100644 index 000000000..31151858a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a440ba0c2e06f5c4aaeaf7921c721c69 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/FloatComparison.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs new file mode 100644 index 000000000..5f31440ec --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs @@ -0,0 +1,32 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Compares two GameObject values.")] + [Shared.Utility.Category("Math")] + public class GameObjectComparison : Conditional + { + [Tooltip("The first GameObject.")] + [SerializeField] protected SharedVariable m_GameObject1; + [Tooltip("The second GameObject.")] + [SerializeField] protected SharedVariable m_GameObject2; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + return m_GameObject1.Value == m_GameObject2.Value ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs.meta new file mode 100644 index 000000000..0e5b39795 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3462716a0f02f06448a43ed06afe8ea8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/GameObjectComparison.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs new file mode 100644 index 000000000..676a61a92 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs @@ -0,0 +1,61 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Compares two integer values.")] + [Shared.Utility.Category("Math")] + public class IntComparison : Conditional + { + /// + /// Specifies the type of comparison that should be performed. + /// + protected enum Operation + { + LessThan, + LessThanOrEqualTo, + EqualTo, + NotEqualTo, + GreaterThanOrEqualTo, + GreaterThan + } + + [Tooltip("The operation that should be performed.")] + [SerializeField] protected SharedVariable m_Operation; + [Tooltip("The first integer.")] + [SerializeField] protected SharedVariable m_Integer1; + [Tooltip("The second integer.")] + [SerializeField] protected SharedVariable m_Integer2; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + switch (m_Operation.Value) { + case Operation.LessThan: + return m_Integer1.Value < m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.LessThanOrEqualTo: + return m_Integer1.Value <= m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.EqualTo: + return m_Integer1.Value == m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.NotEqualTo: + return m_Integer1.Value != m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.GreaterThanOrEqualTo: + return m_Integer1.Value >= m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.GreaterThan: + return m_Integer1.Value > m_Integer2.Value ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs.meta new file mode 100644 index 000000000..bc8733aa3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a375a939d653fe147a5a14a0c2bef1ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/IntComparison.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs new file mode 100644 index 000000000..2fc868939 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs @@ -0,0 +1,32 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Compares two Vector2 values.")] + [Shared.Utility.Category("Math")] + public class Vector2Comparison : Conditional + { + [Tooltip("The first Vector2.")] + [SerializeField] protected SharedVariable m_Vector1; + [Tooltip("The second Vector2.")] + [SerializeField] protected SharedVariable m_Vector2; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + return m_Vector1.Value == m_Vector2.Value ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs.meta new file mode 100644 index 000000000..66239de65 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 7c2b3d80126bb1f4d861fd3179310f4e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector2Comparison.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs new file mode 100644 index 000000000..5d50a8ec8 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs @@ -0,0 +1,32 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Compares two Vector3 values.")] + [Shared.Utility.Category("Math")] + public class Vector3Comparison : Conditional + { + [Tooltip("The first Vector3.")] + [SerializeField] protected SharedVariable m_Vector1; + [Tooltip("The second Vector3.")] + [SerializeField] protected SharedVariable m_Vector2; + + /// + /// Executes the task. + /// + /// The execution status of the task. + public override TaskStatus OnUpdate() + { + return m_Vector1.Value == m_Vector2.Value ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs.meta new file mode 100644 index 000000000..57c12b8e2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 56a06b56642c23e41be3a6ed24331bc4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Math/Vector3Comparison.cs + uploadId: 775358 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics.meta rename to Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics.meta index 03fc8c3fe..8015fc835 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Conditionals/Physics.meta +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d5b2388776cf10a438e7a4357267c555 +guid: 61662c8f56bf6ff448ec2a4c8761613a folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs new file mode 100644 index 000000000..a20c7b8df --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when a collision starts. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasEnteredCollision : Conditional + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + protected override bool ReceiveCollisionEnterCallback => true; + + private bool m_EnteredCollision; + + /// + /// Returns true when the agent has caused a collision. + /// + /// True when the agent has caused a collision. + public override TaskStatus OnUpdate() + { + return m_EnteredCollision ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has caused a collision. + /// + /// The collision that caused the event. + protected override void OnCollisionEnter(Collision collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_EnteredCollision = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs.meta new file mode 100644 index 000000000..9ef2ae238 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 9ce4017c15025f648a4a737683b98b18 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs new file mode 100644 index 000000000..c09088dca --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when a 2D collision starts. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasEnteredCollision2D : Conditional + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + protected override bool ReceiveCollisionEnterCallback => true; + + private bool m_EnteredCollision; + + /// + /// Returns true when the agent has caused a collision. + /// + /// True when the agent has caused a collision. + public override TaskStatus OnUpdate() + { + return m_EnteredCollision ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has caused a collision. + /// + /// The collision that caused the event. + protected override void OnCollisionEnter2D(Collision2D collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_EnteredCollision = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs.meta new file mode 100644 index 000000000..207c3890f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 37fa749cbcf6f7c459159eba18e9ca31 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredCollision2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs new file mode 100644 index 000000000..ddaa061e5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when an object enters the trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasEnteredTrigger : Conditional + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The entered trigger.")] + [SerializeField] protected SharedVariable m_StoredOtherCollider; + + protected override bool ReceiveTriggerEnterCallback => true; + + private bool m_EnteredTrigger; + + /// + /// Returns true when the agent has entered a trigger. + /// + /// True when the agent has entered a trigger. + public override TaskStatus OnUpdate() + { + return m_EnteredTrigger ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has entered a trigger. + /// + /// The trigger that the agent entered. + protected override void OnTriggerEnter(Collider other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherCollider != null && m_StoredOtherCollider.IsShared) { m_StoredOtherCollider.Value = other; } + + m_EnteredTrigger = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs.meta new file mode 100644 index 000000000..11715f44d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fe018fbcfb4b7404f865318125440626 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs new file mode 100644 index 000000000..a2cdc01b0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when an object enters the 2D trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasEnteredTrigger2D : Conditional + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The entered trigger.")] + [SerializeField] protected SharedVariable m_StoredOtherCollider; + + protected override bool ReceiveTriggerEnter2DCallback => true; + + private bool m_EnteredTrigger; + + /// + /// Returns true when the agent has entered a trigger. + /// + /// True when the agent has entered a trigger. + public override TaskStatus OnUpdate() + { + return m_EnteredTrigger ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has entered a trigger. + /// + /// The trigger that the agent entered. + protected override void OnTriggerEnter2D(Collider2D other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherCollider != null && m_StoredOtherCollider.IsShared) { m_StoredOtherCollider.Value = other; } + + m_EnteredTrigger = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs.meta new file mode 100644 index 000000000..7122c4e8c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 83caefa20e976f047b96f600eecffaed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasEnteredTrigger2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs new file mode 100644 index 000000000..8f19a577e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when a collision ends. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasExitedCollision : Conditional + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + protected override bool ReceiveCollisionExitCallback => true; + + private bool m_ExitedCollision; + + /// + /// Returns true when the agent has left a collision. + /// + /// True when the agent has left a collision. + public override TaskStatus OnUpdate() + { + return m_ExitedCollision ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has left a collision. + /// + /// The collision that caused the event. + protected override void OnCollisionExit(Collision collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_ExitedCollision = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs.meta new file mode 100644 index 000000000..d147afb79 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: c3ac7ec5199af7049b246d4eabfb0d51 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs new file mode 100644 index 000000000..d503965fa --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when a 2D collision ends. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasExitedCollision2D : Conditional + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + protected override bool ReceiveCollisionExit2DCallback => true; + + private bool m_ExitedCollision; + + /// + /// Returns true when the agent has left a collision. + /// + /// True when the agent has left a collision. + public override TaskStatus OnUpdate() + { + return m_ExitedCollision ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has left a collision. + /// + /// The collision that caused the event. + protected override void OnCollisionExit2D(Collision2D collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_ExitedCollision = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs.meta new file mode 100644 index 000000000..633e29299 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5fdb5f736525568428350e746b5b6d59 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedCollision2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs new file mode 100644 index 000000000..c877efccd --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when an object exits the trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasExitedTrigger : Conditional + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The exited trigger.")] + [SerializeField] protected SharedVariable m_StoredOtherCollider; + + protected override bool ReceiveTriggerExitCallback => true; + + private bool m_ExitedTrigger; + + /// + /// Returns true when the agent has exited a trigger. + /// + /// True when the agent has exited a trigger. + public override TaskStatus OnUpdate() + { + return m_ExitedTrigger ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has exited a trigger. + /// + /// The trigger that the agent exited. + protected override void OnTriggerExit(Collider other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherCollider != null && m_StoredOtherCollider.IsShared) { m_StoredOtherCollider.Value = other; } + + m_ExitedTrigger = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs.meta new file mode 100644 index 000000000..e581ac876 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 9bde13c58ab44304da9e904934375552 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs new file mode 100644 index 000000000..a34a89aca --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs @@ -0,0 +1,51 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Physics +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + [NodeDescription("Returns success when an object exits the 2D trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).")] + [Shared.Utility.Category("Physics")] + public class HasExitedTrigger2D : Conditional + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The exited trigger.")] + [SerializeField] protected SharedVariable m_StoredOtherCollider; + + protected override bool ReceiveTriggerExit2DCallback => true; + + private bool m_ExitedTrigger; + + /// + /// Returns true when the agent has exited a trigger. + /// + /// True when the agent has exited a trigger. + public override TaskStatus OnUpdate() + { + return m_ExitedTrigger ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// The agent has exited a trigger. + /// + /// The trigger that the agent exited. + protected override void OnTriggerExit2D(Collider2D other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherCollider != null && m_StoredOtherCollider.IsShared) { m_StoredOtherCollider.Value = other; } + + m_ExitedTrigger = true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs.meta new file mode 100644 index 000000000..42eec1094 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 74c369fe788ddbb4ab2b9265bdf4e9c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/Physics/HasExitedTrigger2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs new file mode 100644 index 000000000..fde1f9f8b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs @@ -0,0 +1,264 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + using System; + + /// + /// A node representation of the random probability task. + /// + [NodeIcon("69bf50f8923f54c4c8bb8e258883a411", "6c5770241610a4c4aae4ac3af0ac8bf8")] + [NodeDescription("The random probability task will return success when the random probability is below the succeed probability. It will otherwise return failure.")] + public class RandomProbability : ILogicNode, ITaskComponentData, IConditional, IReevaluateResponder, ICloneable + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("The probability of the task returning success.")] + [SerializeField] [Range(0, 1)] float m_SuccessProbability; + [Tooltip("The seed of the random number generator. Set to 0 to use the entity index as the seed.")] + [SerializeField] uint m_Seed; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public float SuccessProbability { get => m_SuccessProbability; set => m_SuccessProbability = value; } + public uint Seed { get => m_Seed; set => m_Seed = value; } + + public ComponentType Tag { get => typeof(RandomProbabilityTag); } + public System.Type SystemType { get => typeof(RandomProbabilityTaskSystem); } + public ComponentType ReevaluateTag { get => typeof(RandomProbabilityReevaluateTag); } + public System.Type ReevaluateSystemType { get => typeof(RandomProbabilityReevaluateTaskSystem); } + + /// + /// Resets the task to its default values. + /// + public void Reset() + { + m_SuccessProbability = 1; + } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + + buffer.Add(new RandomProbabilityComponent() + { + Index = RuntimeIndex, + SuccessProbability = m_SuccessProbability, + Seed = m_Seed, + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.SuccessProbability = SuccessProbability; + return clone; + } + } + + /// + /// The DOTS data structure for the RandomProbability class. + /// + public struct RandomProbabilityComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The probability of the task returning success.")] + public float SuccessProbability; + [Tooltip("The seed of the random number generator.")] + public uint Seed; + [Tooltip("The random number generator for the task.")] + public Unity.Mathematics.Random RandomNumberGenerator; + } + + /// + /// A DOTS tag indicating when a RandomProbability node is active. + /// + public struct RandomProbabilityTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the RandomProbability logic. + /// + [DisableAutoCreation] + public partial struct RandomProbabilityTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new RandomProbabilityJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct RandomProbabilityJob : IJobEntity + { + /// + /// Executes the random probability logic. + /// + /// The entity that is running the logic. + /// An array of TaskComponents. + /// An array of RandomProbabilityComponents. + [BurstCompile] + public void Execute(Entity entity, ref DynamicBuffer taskComponents, ref DynamicBuffer randomProbabilityComponents) + { + for (int i = 0; i < randomProbabilityComponents.Length; ++i) { + var randomProbabilityComponent = randomProbabilityComponents[i]; + var taskComponent = taskComponents[randomProbabilityComponent.Index]; + if (taskComponent.Status == TaskStatus.Queued) { + // Generate a new random number seed for each entity. + if (randomProbabilityComponent.RandomNumberGenerator.state == 0) { + randomProbabilityComponent.RandomNumberGenerator = Unity.Mathematics.Random.CreateFromIndex(randomProbabilityComponent.Seed != 0 ? randomProbabilityComponent.Seed : (uint)entity.Index); + } + // NextFloat updates the RandomNumberGenerator so the component must be replaced. + var probability = randomProbabilityComponent.RandomNumberGenerator.NextFloat(); + var randomProbabilityBuffer = randomProbabilityComponents; + randomProbabilityBuffer[i] = randomProbabilityComponent; + + // The task will always change status. + taskComponent.Status = probability < randomProbabilityComponent.SuccessProbability ? TaskStatus.Success : TaskStatus.Failure; + taskComponents[randomProbabilityComponent.Index] = taskComponent; + } else if (taskComponent.Status == TaskStatus.Running) { + // A status of running means the task is being resumed from a conditional abort. Return success. + taskComponent.Status = TaskStatus.Success; + taskComponents[randomProbabilityComponent.Index] = taskComponent; + } + } + } + } + } + + + /// + /// A DOTS tag indicating when an RandomProbability node needs to be reevaluated. + /// + public struct RandomProbabilityReevaluateTag : IComponentData, IEnableableComponent + { + } + + /// + /// Runs the RandomProbability reevaluation logic. + /// + [DisableAutoCreation] + public partial struct RandomProbabilityReevaluateTaskSystem : ISystem + { + /// + /// Updates the reevaluation logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (taskComponents, randomProbabilityComponents, entity) in + SystemAPI.Query, DynamicBuffer>().WithAll().WithEntityAccess()) { + for (int i = 0; i < randomProbabilityComponents.Length; ++i) { + var randomProbabilityComponent = randomProbabilityComponents[i]; + var taskComponent = taskComponents[randomProbabilityComponent.Index]; + if (!taskComponent.Reevaluate) { + continue; + } + + // NextFloat updates the RandomNumberGenerator so the component must be replaced. + var probability = randomProbabilityComponent.RandomNumberGenerator.NextFloat(); + var randomProbabilityBuffer = randomProbabilityComponents; + randomProbabilityBuffer[i] = randomProbabilityComponent; + + var status = probability < randomProbabilityComponent.SuccessProbability ? TaskStatus.Success : TaskStatus.Failure; + if (status != taskComponent.Status) { + taskComponent.Status = status; + var buffer = taskComponents; + buffer[taskComponent.Index] = taskComponent; + } + } + } + } + } + + [NodeIcon("69bf50f8923f54c4c8bb8e258883a411", "6c5770241610a4c4aae4ac3af0ac8bf8")] + [NodeDescription("The random probability task will return success when the random probability is below the succeed probability. It will otherwise return failure.")] + public class SharedRandomProbability : Conditional + { + [Tooltip("The probability of the task returning success.")] + [SerializeField] SharedVariable m_SuccessProbability; + [Tooltip("The seed of the random number generator. Set to 0 to disable.")] + [SerializeField] int m_Seed; + + public SharedVariable SuccessProbability { get => m_SuccessProbability; set => m_SuccessProbability = value; } + public int Seed { get => m_Seed; set => m_Seed = value; } + + /// + /// Callback when the task is initialized. + /// + public override void OnAwake() + { + if (m_Seed != 0) { + UnityEngine.Random.InitState(m_Seed); + } + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + return UnityEngine.Random.value < m_SuccessProbability.Value ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs.meta new file mode 100644 index 000000000..d32d0db05 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: b6240825104968e44a250a717de2f39a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/RandomProbability.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs new file mode 100644 index 000000000..ae5717218 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs @@ -0,0 +1,49 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime; + + /// + /// The StackedConditional task allows for multiple conditionals to be added to the same node. + /// + [NodeIcon("b2368834b8b80144a8b1ab97b609e966", "86fbf527a2c761e45bc4a47cf4894902")] + [NodeDescription("Allows multiple conditional tasks to be added to a single node.")] + public class StackedConditional : StackedTask, IConditional, IConditionalReevaluation + { + /// + /// Reevaluates the task logic. Returns a TaskStatus indicating how the behavior tree flow should proceed. + /// + /// The status of the task during the reevaluation phase. + public TaskStatus OnReevaluateUpdate() + { + if (m_Tasks == null) { + return TaskStatus.Failure; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + + TaskStatus executionStatus; + if (m_Tasks[i] is IConditionalReevaluation reevaluateTask) { + executionStatus = reevaluateTask.OnReevaluateUpdate(); + } else { // Use the regular update method if the task isn't designed for conditional aborts. + executionStatus = m_Tasks[i].OnUpdate(); + } + if (m_ComparisonType == ComparisonType.Sequence && executionStatus == TaskStatus.Failure) { + return TaskStatus.Failure; + } else if (m_ComparisonType == ComparisonType.Selector && executionStatus == TaskStatus.Success) { + return TaskStatus.Success; + } + } + return m_ComparisonType == ComparisonType.Sequence ? TaskStatus.Success : TaskStatus.Failure; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs.meta new file mode 100644 index 000000000..bf2624e22 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 73c25e0bc2411614e950faaf32f8cfa1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/StackedConditional.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs new file mode 100644 index 000000000..3f45e65b0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs @@ -0,0 +1,71 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// A TaskObject Conditional task which implements the shared TargetGameObject/TreeUserID objects. + /// + public abstract class TargetBehaviorTreeConditional : Conditional + { + [Tooltip("The GameObject of the target behavior tree. If the value is null the current GameObject will be used.")] + [SerializeField] protected SharedVariable m_TargetGameObject; + [Tooltip("The index of the tree if there are multiple behavior trees on the same GameObject.")] + [SerializeField] protected SharedVariable m_TreeIndex; + + protected BehaviorTree m_ResolvedBehaviorTree; + + /// + /// Initializes the task. + /// + public override void OnAwake() + { + m_TargetGameObject.OnValueChange += InitializeTarget; + m_TreeIndex.OnValueChange += InitializeTarget; + + InitializeTarget(); + } + + /// + /// Initializes the target behavior tree. + /// + protected virtual void InitializeTarget() + { + if (m_TargetGameObject.Value == null) { + m_ResolvedBehaviorTree = m_BehaviorTree; + } else { + var behaviorTrees = m_TargetGameObject.Value.GetComponents(); + if (behaviorTrees.Length == 1) { + m_ResolvedBehaviorTree = behaviorTrees[0]; + } else if (behaviorTrees.Length > 1) { + for (int i = 0; i < behaviorTrees.Length; ++i) { + if (behaviorTrees[i].Index == m_TreeIndex.Value) { + m_ResolvedBehaviorTree = behaviorTrees[i]; + break; + } + } + // If the UserID can't be found then use the first behavior tree. + if (m_ResolvedBehaviorTree == null) { + m_ResolvedBehaviorTree = behaviorTrees[0]; + } + } + } + } + + /// + /// The behavior tree has been destroyed. + /// + public override void OnDestroy() + { + m_TargetGameObject.OnValueChange -= InitializeTarget; + m_TreeIndex.OnValueChange -= InitializeTarget; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs.meta new file mode 100644 index 000000000..bd10c8d82 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8829f667141e1c04d95d5f9f2f68c7e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetBehaviorTreeConditional.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs new file mode 100644 index 000000000..087bdb94c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs @@ -0,0 +1,53 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals +{ + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// A TaskObject Conditional task which returns the current GameObject if the target is null. + /// + public abstract class TargetGameObjectConditional : Conditional + { + [Tooltip("The GameObject of the target behavior tree. If the value is null the current GameObject will be used.")] + [SerializeField] protected SharedVariable m_TargetGameObject; + protected override GameObject gameObject => m_ResolvedGameObject; + protected override Transform transform => m_ResolvedTransform; + + protected GameObject m_ResolvedGameObject; + protected Transform m_ResolvedTransform; + + /// + /// Initializes the task. + /// + public override void OnAwake() + { + m_TargetGameObject.OnValueChange += InitializeTarget; + + InitializeTarget(); + } + + /// + /// Initializes the target GameObject. + /// + protected virtual void InitializeTarget() + { + m_ResolvedGameObject = (m_TargetGameObject.Value == null || m_TargetGameObject.Value.Equals(null)) ? m_GameObject : m_TargetGameObject.Value; + m_ResolvedTransform = m_ResolvedGameObject.transform; + } + + /// + /// The behavior tree has been destroyed. + /// + public override void OnDestroy() + { + m_TargetGameObject.OnValueChange -= InitializeTarget; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs.meta new file mode 100644 index 000000000..3bba7f323 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: e53a3005031301c4c9f7c723c82763ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Conditionals/TargetGameObjectConditional.cs + uploadId: 775358 diff --git a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators.meta similarity index 77% rename from Assets/External/Behavior Designer/Runtime/Tasks/Decorators.meta rename to Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators.meta index 9961e5b39..4278c3b43 100644 --- a/Assets/External/Behavior Designer/Runtime/Tasks/Decorators.meta +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c3a63466abc2809449aec6088f9153e6 +guid: 1ae3ab6e20912c24eb56a8bc711e7688 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs new file mode 100644 index 000000000..2db116c58 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs @@ -0,0 +1,176 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals; + using Opsive.BehaviorDesigner.Runtime.Utility; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Utility; + using Opsive.Shared.Utility; + using Unity.Entities; + using UnityEngine; + + /// + /// The Conditional Evaluator is a decorator that will evaluate the specified conditional task. This conditional task can be reevaluated while the current task is active. + /// + [NodeIcon("63d6a403c13816a49b58d1de830ca51e", "3d3c18273075b3f40b6c921943f33964")] + [NodeDescription("Evaluates the specified conditional task. If the conditional task returns success then the child task is run and the child status is returned. If the conditional task does not " + + "return success then the child task is not run and a failure status is immediately returned.")] + public class ConditionalEvaluator : DecoratorNode + { + [Tooltip("The target conditional task that should be evaluated.")] + [SerializeField] [InspectNode] protected Conditional m_Task; + + /// + /// Resets the task values back to their default. + /// + public override void Reset() + { + m_Task = null; + } + + /// + /// Initializes the base task parameters. + /// + /// A reference to the owning BehaviorTree. + /// The runtime index of the node. + internal override void Initialize(BehaviorTree behaviorTree, ushort runtimeIndex) + { + base.Initialize(behaviorTree, runtimeIndex); + + if (m_Task != null) { + m_Task.Initialize(behaviorTree, runtimeIndex); + + if (behaviorTree.World != null) { + ComponentUtility.AddInterruptComponents(behaviorTree.World.EntityManager, behaviorTree.Entity); + } + } + } + + /// + /// The behavior tree has been initialized. + /// + public override void OnAwake() + { + if (m_Task == null) { + Debug.LogError("Error: The task is null within the conditional evaluator."); + return; + } + + m_Task.OnAwake(); + } + + /// + /// The tree has been started. + /// + public override void OnBehaviorTreeStarted() + { + m_Task?.OnBehaviorTreeStarted(); + } + + /// + /// Starts evaluating the specified task. + /// + public override void OnStart() + { + m_Task?.OnStart(); + } + + /// + /// Updates the task. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + if (m_Task == null) { + return TaskStatus.Failure; + } + var status = m_Task.OnUpdate(); + if (status == TaskStatus.Failure) { + return TaskStatus.Failure; + } + + // If the child task returns success or failure then that status should be returned. Otherwise return running. + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + var childStatus = taskComponents[RuntimeIndex + 1].Status; // RuntimeIndex + 1 will always be the task's only child. + if (childStatus == TaskStatus.Success || childStatus == TaskStatus.Failure) { + return childStatus; + } + return TaskStatus.Running; + } + + /// + /// The task has stopped execution. + /// + public override void OnEnd() + { + m_Task?.OnEnd(); + } + + /// + /// The tree has been stopped. + /// + /// Is the behavior tree paused? + public override void OnBehaviorTreeStopped(bool paused) + { + m_Task?.OnBehaviorTreeStopped(paused); + } + + /// + /// The tree has been destroyed. + /// + public override void OnDestroy() + { + m_Task?.OnDestroy(); + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public override MemberVisibility GetSaveReflectionType(int index) + { + if (m_Task == null) { + return MemberVisibility.None; + } + + return m_Task.GetSaveReflectionType(index); + } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public override object Save(World world, Entity entity) + { + if (m_Task == null) { + return null; + } + + return m_Task.Save(world, entity); + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public override void Load(object saveData, World world, Entity entity) + { + if (m_Task == null) { + return; + } + + m_Task.Load(saveData, world, entity); + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs.meta new file mode 100644 index 000000000..929c9178e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8421ea18ed1f62349ac95e1b448b2a7f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ConditionalEvaluator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs new file mode 100644 index 000000000..166a93ae9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs @@ -0,0 +1,244 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using System; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the cooldown task. + /// + [NodeIcon("b5459f67bc5033e49ad7a763cdb885bb", "480c79a18119d2a488b5d984211463f1")] + [NodeDescription("Waits the specified duration after the child has completed before returning the child's status of success or failure.")] + public struct Cooldown : ILogicNode, IParentNode, ITaskComponentData, IDecorator + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("The duration of the cooldown.")] + [SerializeField] float m_Duration; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public float Duration { get => m_Duration; set => m_Duration = value; } + + private ushort m_ComponentIndex; + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(CooldownTag); } + public System.Type SystemType { get => typeof(CooldownTaskSystem); } + + /// + /// Resets the task to its default values. + /// + public void Reset() { m_Duration = 1; } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new CooldownComponent() { + Index = RuntimeIndex, + Duration = m_Duration, + StartTime = -1, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var cooldownComponents = world.EntityManager.GetBuffer(entity); + var cooldownComponent = cooldownComponents[m_ComponentIndex]; + + // Save the elapsed time. + return Time.time - cooldownComponent.StartTime; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var cooldownComponents = world.EntityManager.GetBuffer(entity); + var cooldownComponent = cooldownComponents[m_ComponentIndex]; + + // saveData is the elapsed amount of time. + var data = (object[])saveData; + cooldownComponent.StartTime = Time.time - (double)saveData; + cooldownComponents[m_ComponentIndex] = cooldownComponent; + } + + /// + /// Creates a deep clone of the component. + /// + /// A deep clone of the component. + public object Clone() + { + var clone = Activator.CreateInstance(); + clone.Index = Index; + clone.ParentIndex = ParentIndex; + clone.SiblingIndex = SiblingIndex; + clone.Duration = Duration; + return clone; + } + } + + /// + /// The DOTS data structure for the Cooldown class. + /// + public struct CooldownComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The duration of the cooldown.")] + public float Duration; + [Tooltip("The time the cooldown started.")] + public double StartTime; + } + + /// + /// A DOTS tag indicating when an Cooldown node is active. + /// + public struct CooldownTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Cooldown logic. + /// + [DisableAutoCreation] + public partial struct CooldownTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new CooldownJob() + { + Time = SystemAPI.Time.ElapsedTime + }.ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct CooldownJob : IJobEntity + { + [Tooltip("The elapsed time.")] + public double Time; + + /// + /// Executes the cooldown logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of CooldownComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer cooldownComponents) + { + for (int i = 0; i < cooldownComponents.Length; ++i) { + var cooldownComponent = cooldownComponents[i]; + var taskComponent = taskComponents[cooldownComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + TaskComponent childTaskComponent; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childTaskComponent = taskComponents[taskComponent.Index + 1]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The cooldown task is currently active. Check the first child. + childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + // The child has completed. Start the timer if it hasn't already started. If it has started then complete when the duration has elapsed. + if (cooldownComponent.StartTime == -1) { + cooldownComponent.StartTime = Time; + cooldownComponents[i] = cooldownComponent; + } else if (cooldownComponent.StartTime + cooldownComponent.Duration <= Time) { + taskComponent.Status = childTaskComponent.Status; + taskComponents[taskComponent.Index] = taskComponent; + + cooldownComponent.StartTime = -1; + var cooldownComponentsBuffer = cooldownComponents; + cooldownComponentsBuffer[i] = cooldownComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs.meta new file mode 100644 index 000000000..2fb4c6a2b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: c27e1444ff9ead74a89c45ce81873aca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Cooldown.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs new file mode 100644 index 000000000..db1aa8224 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs @@ -0,0 +1,35 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.GraphDesigner.Runtime; + using UnityEngine; + + /// + /// A TaskObject implementation of the Decorator task. + /// + [NodeIcon("9abc6c99a8db43b49b2b0d48cca90105", "1ee7d6a0873e3d942b556d3093d8173f")] + public abstract class DecoratorNode : Task, ILogicNode, IParentNode, IDecorator, ITaskObjectParentNode + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get => 1; } + public ushort NextChildIndex { get => (ushort)(RuntimeIndex + 1); } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs.meta new file mode 100644 index 000000000..c1bd5d22b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8fe6a83d84731a045a4c789e05b85214 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/DecoratorNode.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs new file mode 100644 index 000000000..9ea3702c9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs @@ -0,0 +1,158 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the inverter task. + /// + [NodeIcon("53fe4de81c20e924095bdb5f3447acdc", "8d991ea2b725c214c85580d5647c578c")] + [NodeDescription("The inverter task will invert the return value of the child task after it has finished executing. " + + "If the child returns success, the inverter task will return failure. If the child returns failure, the inverter task will return success.")] + public struct Inverter : ILogicNode, IParentNode, ITaskComponentData, IDecorator + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(InverterTag); } + public System.Type SystemType { get => typeof(InverterTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new InverterComponent() { + Index = RuntimeIndex, + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the Inverter class. + /// + public struct InverterComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when an Inverter node is active. + /// + public struct InverterTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Inverter logic. + /// + [DisableAutoCreation] + public partial struct InverterTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new InverterJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct InverterJob : IJobEntity + { + /// + /// Executes the inverter logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of InverterComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer inverterComponents) + { + for (int i = 0; i < inverterComponents.Length; ++i) { + var inverterComponent = inverterComponents[i]; + var taskComponent = taskComponents[inverterComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + TaskComponent childTaskComponent; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childTaskComponent = taskComponents[taskComponent.Index + 1]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The inverter task is currently active. Check the first child. + childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + // The child has completed. Invert the status. + taskComponent.Status = childTaskComponent.Status == TaskStatus.Success ? TaskStatus.Failure : TaskStatus.Success; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs.meta new file mode 100644 index 000000000..02164e4d1 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5ee17779b73c2264485dda14bde477cd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Inverter.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs new file mode 100644 index 000000000..ab277cde3 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs @@ -0,0 +1,109 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using System.Collections; + using Unity.Entities; + using UnityEngine; + + [NodeIcon("3c1366e1dc8fe0b46b4a6c8724194cdd", "5b924a7ff18f0544aaa585af94ac536c")] + [NodeDescription("Iterates through each element of the list. For each execution the Iterator task will set the next Element within the specified List.")] + public class Iterator : DecoratorNode + { + [Tooltip("The list that should be iterated upon.")] + [SerializeField] protected SharedVariable m_List; + [Tooltip("The current element within the list.")] + [SerializeField] [RequireShared] protected SharedVariable m_Element; + [Tooltip("Should the interator end on a failure?")] + [SerializeField] protected SharedVariable m_EndOnFailure; + + private int m_Index; + + /// + /// Resets the task values back to their default. + /// + public override void Reset() + { + m_List = null; + m_Element = null; + m_EndOnFailure = false; + } + + /// + /// Callback when the task is started. + /// + public override void OnStart() + { + base.OnStart(); + m_Index = 0; + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + if (m_List == null) { + return TaskStatus.Failure; + } + var list = m_List.GetValue() as IList; + if (list == null || list.Count == 0) { + return TaskStatus.Failure; + } + + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + if (taskComponents[Index + 1].Status == TaskStatus.Queued || taskComponents[Index + 1].Status == TaskStatus.Running) { + return TaskStatus.Running; + } + + if (taskComponents[Index + 1].Status == TaskStatus.Failure && m_EndOnFailure.Value) { + return TaskStatus.Failure; + } + + // End when there are no more list elements. + if (m_Index >= list.Count) { + return taskComponents[Index + 1].Status; // Index + 1 will always be the task's only child. + } + + m_Element.SetValue(list[m_Index]); + m_Index++; + + return TaskStatus.Running; + } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public override object Save(World world, Entity entity) + { + return m_Index; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public override void Load(object saveData, World world, Entity entity) + { + m_Index = (int)saveData; + var list = m_List.GetValue() as IList; + if (list != null && m_Index < list.Count) { + m_Element.SetValue(list[m_Index]); + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs.meta new file mode 100644 index 000000000..3db1af63e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5af8e0ebe3541fb4ba56854fa8a6bd62 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Iterator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs new file mode 100644 index 000000000..9601b1a91 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs @@ -0,0 +1,112 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.BehaviorDesigner.Runtime.Tasks.Composites; + using Unity.Entities; + + /// + /// Provides a PriorityValueComponent implementation that returns a priority value. + /// + public abstract class PriorityEvaluator : DecoratorNode + { + /// + /// Returns the priority of the decorator. The higher the priority the more likely the task will run next. + /// + /// The priority of the decorator. + public abstract float GetPriorityValue(); + + /// + /// Adds the task to the behavior tree buffer. + /// + /// The world that the task runs in. + /// The entity that the task is connected to. + /// The ID of the behavior tree running the task. + /// The index of the task. + public override void AddBufferElement(World world, Entity entity, int behaviorTreeID, ushort index) + { + base.AddBufferElement(world, entity, behaviorTreeID, index); + + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new PriorityValueComponent() + { + Index = index, + }); + var traversalTaskSystems = world.GetOrCreateSystemManaged(); + traversalTaskSystems.AddSystemToUpdateList(world.GetOrCreateSystem(typeof(PriorityEvaluatorSystem))); + } + + /// + /// Clears all component buffers from the behavior tree buffer. + /// + /// The world that the task runs in. + /// The entity that the task is connected to. + public override void ClearBufferElement(World world, Entity entity) + { + base.ClearBufferElement(world, entity); + + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + var childStatus = taskComponents[RuntimeIndex + 1].Status; // Index + 1 will always be the task's only child. + if (childStatus == TaskStatus.Success || childStatus == TaskStatus.Failure) { + return childStatus; + } + return TaskStatus.Running; + } + } + + /// + /// Sets the PriorityValueComponent value. + /// + [DisableAutoCreation] + [UpdateBefore(typeof(PrioritySelectorTaskSystem))] + public partial struct PriorityEvaluatorSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + private void OnUpdate(ref SystemState state) + { + foreach (var (priorityValueComponents, taskComponents, entity) in + SystemAPI.Query, DynamicBuffer>().WithAll().WithEntityAccess()) { + + for (int i = 0; i < priorityValueComponents.Length; ++i) { + var priorityValueComponent = priorityValueComponents[i]; + var priorityEvaluator = BehaviorTree.GetBehaviorTree(entity).GetTask(priorityValueComponent.Index) as PriorityEvaluator; + if (priorityEvaluator == null) { + continue; + } + + priorityValueComponent.Value = priorityEvaluator.GetPriorityValue(); + var priorityValueComponentBuffer = priorityValueComponents; + priorityValueComponentBuffer[i] = priorityValueComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs.meta new file mode 100644 index 000000000..e534750a2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fa0f2261dad25fe4695811e9513527c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityEvaluator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs new file mode 100644 index 000000000..7892a3322 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs @@ -0,0 +1,29 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// Implements the PriorityEvaluator returning a SharedVariable value. + /// + [NodeDescription("Sets the priority value to the specified SharedVariable float value.")] + public class PriorityVariableEvaluator : PriorityEvaluator + { + [Tooltip("The priority of the decorator.")] + [SerializeField] SharedVariable m_Priority; + + /// + /// Returns the priority of the decorator. The higher the priority the more likely the task will run next. + /// + /// The priority of the decorator. + public override float GetPriorityValue() { return m_Priority.Value; } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs.meta new file mode 100644 index 000000000..5ed81ccb6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5620437f8c0efed48a49fd477ba18a91 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/PriorityVariableEvaluator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs new file mode 100644 index 000000000..f5fff6b6f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs @@ -0,0 +1,325 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the repeater task. + /// + [NodeIcon("ceb6f3e7f67cde640b28b2a15ec13ffe", "bb415ca6de87c3d49ab9a94fe8a6fca8")] + [NodeDescription(@"The repeater task will repeat execution of its child task until the child task has been run a specified number of times. " + + "It has the option of continuing to execute the child task even if the child task returns a failure.")] + public struct Repeater : ILogicNode, IParentNode, ITaskComponentData, IDecorator, ISavableTask + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + [Tooltip("Should the task be repeated forever?")] + [SerializeField] bool m_RepeatForever; + [Tooltip("The number of times the task should repeat.")] + [SerializeField] ushort m_RepeatCount; + [Tooltip("Should the repeater end if the child task fails?")] + [SerializeField] bool m_EndOnFailure; + + private ushort m_ComponentIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + public bool RepeatForever { get => m_RepeatForever; set => m_RepeatForever = value; } + public ushort RepeatCount { get => m_RepeatCount; set => m_RepeatCount = value; } + public bool EndOnFailure { get => m_EndOnFailure; set => m_EndOnFailure = value; } + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(RepeaterTag); } + public System.Type SystemType { get => typeof(RepeaterTaskSystem); } + + /// + /// Resets the task to its default values. + /// + public void Reset() { m_RepeatForever = true; } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new RepeaterComponent() { + Index = RuntimeIndex, + RepeatCount = m_RepeatForever ? -1 : m_RepeatCount, + EndOnFailure = m_EndOnFailure, + }); + m_ComponentIndex = (ushort)(buffer.Length - 1); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) + { + var repeaterComponents = world.EntityManager.GetBuffer(entity); + var repeaterComponent = repeaterComponents[m_ComponentIndex]; + + // Save the current count. + return repeaterComponent.CurrentCount; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) + { + var repeaterComponents = world.EntityManager.GetBuffer(entity); + var repeaterComponent = repeaterComponents[m_ComponentIndex]; + + // saveData is the current count. + repeaterComponent.CurrentCount = (uint)saveData; + repeaterComponents[m_ComponentIndex] = repeaterComponent; + } + } + + /// + /// The DOTS data structure for the Repeater class. + /// + public struct RepeaterComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + [Tooltip("The number of times the child task can repeat.")] + public int RepeatCount; + [Tooltip("The number of times the child task has been repeated.")] + public uint CurrentCount; + [Tooltip("Should the task end when the child returns failure?")] + public bool EndOnFailure; + } + + /// + /// A DOTS tag indicating when a Repeater node is active. + /// + public struct RepeaterTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the Repeater logic. + /// + [DisableAutoCreation] + public partial struct RepeaterTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new RepeaterJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct RepeaterJob : IJobEntity + { + /// + /// Executes the repeater logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of RepeaterComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer repeaterComponents) + { + for (int i = 0; i < repeaterComponents.Length; ++i) { + var repeaterComponent = repeaterComponents[i]; + var taskComponent = taskComponents[repeaterComponent.Index]; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + repeaterComponent.CurrentCount = 1; + var repeaterBuffer = repeaterComponents; + repeaterBuffer[i] = repeaterComponent; + + var branchComponent = branchComponents[taskComponent.BranchIndex]; + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + + // Start the child. + var nextChildTaskComponent = taskComponents[branchComponent.NextIndex]; + nextChildTaskComponent.Status = TaskStatus.Queued; + taskComponents[branchComponent.NextIndex] = nextChildTaskComponent; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The repeater task is currently active. Check the first child. + var childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + if ((repeaterComponent.RepeatCount == -1 || repeaterComponent.CurrentCount <= repeaterComponent.RepeatCount) && + (childTaskComponent.Status == TaskStatus.Success || (!repeaterComponent.EndOnFailure && childTaskComponent.Status == TaskStatus.Failure))) { + // Restart the child if the branch should repeat again. + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[childTaskComponent.Index] = childTaskComponent; + + repeaterComponent.CurrentCount++; + var repeaterBuffer = repeaterComponents; + repeaterBuffer[i] = repeaterComponent; + + var branchComponent = branchComponents[childTaskComponent.BranchIndex]; + branchComponent.NextIndex = childTaskComponent.Index; + branchComponents[childTaskComponent.BranchIndex] = branchComponent; + } else { + // End with the child status if there should not be any more repeats. An inactive status will be returned if the child is disabled. + taskComponent.Status = childTaskComponent.Status == TaskStatus.Inactive ? TaskStatus.Success : childTaskComponent.Status; + taskComponents[taskComponent.Index] = taskComponent; + + var branchComponent = branchComponents[childTaskComponent.BranchIndex]; + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[childTaskComponent.BranchIndex] = branchComponent; + } + } + } + } + } + /// + /// A node representation of the repeater task. + /// + [NodeIcon("ceb6f3e7f67cde640b28b2a15ec13ffe", "bb415ca6de87c3d49ab9a94fe8a6fca8")] + [NodeDescription(@"The repeater task will repeat execution of its child task until the child task has been run a specified number of times. " + + "It has the option of continuing to execute the child task even if the child task returns a failure. Uses the GameObject workflow.")] + public class SharedRepeater : DecoratorNode + { + [Tooltip("Should the task be repeated forever?")] + [SerializeField] SharedVariable m_RepeatForever = true; + [Tooltip("The number of times the task should repeat.")] + [SerializeField] SharedVariable m_RepeatCount; + [Tooltip("Should the repeater end if the child task fails?")] + [SerializeField] SharedVariable m_EndOnFailure; + + public SharedVariable RepeatForever { get => m_RepeatForever; set => m_RepeatForever = value; } + public SharedVariable RepeatCount { get => m_RepeatCount; set => m_RepeatCount = value; } + public SharedVariable EndOnFailure { get => m_EndOnFailure; set => m_EndOnFailure = value; } + + private uint m_CurrentCount; + + /// + /// Callback when the task is started. + /// + public override void OnStart() + { + base.OnStart(); + m_CurrentCount = 0; + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + if (taskComponents[Index + 1].Status == TaskStatus.Running || taskComponents[Index + 1].Status == TaskStatus.Queued) { + return TaskStatus.Running; + } + + if (taskComponents[Index + 1].Status == TaskStatus.Failure && m_EndOnFailure.Value) { + return TaskStatus.Failure; + } + + // The child isn't running. Repeat + if (!m_RepeatForever.Value && m_CurrentCount == m_RepeatCount.Value) { + return taskComponents[Index + 1].Status; + } + + m_CurrentCount++; + + return TaskStatus.Running; + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public override MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.None; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public override object Save(World world, Entity entity) + { + // Save the current count. + return m_CurrentCount; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public override void Load(object saveData, World world, Entity entity) + { + m_CurrentCount = (uint)saveData; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs.meta new file mode 100644 index 000000000..53480c20f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 19b46aa4b55e8994bae2c60e08040863 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/Repeater.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs new file mode 100644 index 000000000..2d5f162b2 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs @@ -0,0 +1,157 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the return failure task. + /// + [NodeIcon("667a475ceee05824188a36b24ec8d392", "7d32c9b05505df24a94069606f3b823d")] + [NodeDescription("The return failure task will always return failure except when the child task is running.")] + public struct ReturnFailure : ILogicNode, IParentNode, ITaskComponentData, IDecorator + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(ReturnFailureTag); } + public System.Type SystemType { get => typeof(ReturnFailureTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new ReturnFailureComponent() { + Index = RuntimeIndex, + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the ReturnFailure class. + /// + public struct ReturnFailureComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when an ReturnFailure node is active. + /// + public struct ReturnFailureTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the ReturnFailure logic. + /// + [DisableAutoCreation] + public partial struct ReturnFailureTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new ReturnFailureJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct ReturnFailureJob : IJobEntity + { + /// + /// Executes the return failure logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of ReturnFailureComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer returnFailureComponents) + { + for (int i = 0; i < returnFailureComponents.Length; ++i) { + var returnFailureComponent = returnFailureComponents[i]; + var taskComponent = taskComponents[returnFailureComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + TaskComponent childTaskComponent; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childTaskComponent = taskComponents[taskComponent.Index + 1]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The return failure task is currently active. Check the first child. + childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + // The child has completed. Return failure. + taskComponent.Status = TaskStatus.Failure; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs.meta new file mode 100644 index 000000000..2bc6025da --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 52ce11b290bb0b240a985296c757fcd5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnFailure.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs new file mode 100644 index 000000000..ed499052f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs @@ -0,0 +1,157 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the return success task. + /// + [NodeIcon("66f47acff1d46f848bc8c22b221ee1d0", "3eb990b93a7fd6e479d6b032c7e6973f")] + [NodeDescription("The return success task will always return success except when the child task is running.")] + public struct ReturnSuccess : ILogicNode, IParentNode, ITaskComponentData, IDecorator + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(ReturnSuccessTag); } + public System.Type SystemType { get => typeof(ReturnSuccessTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new ReturnSuccessComponent() { + Index = RuntimeIndex, + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the ReturnSuccess class. + /// + public struct ReturnSuccessComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when an ReturnSuccess node is active. + /// + public struct ReturnSuccessTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the ReturnSuccess logic. + /// + [DisableAutoCreation] + public partial struct ReturnSuccessTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new ReturnSuccessJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct ReturnSuccessJob : IJobEntity + { + /// + /// Executes the return success logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of ReturnSuccessComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer returnSuccessComponents) + { + for (int i = 0; i < returnSuccessComponents.Length; ++i) { + var returnSuccessComponent = returnSuccessComponents[i]; + var taskComponent = taskComponents[returnSuccessComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + TaskComponent childTaskComponent; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childTaskComponent = taskComponents[taskComponent.Index + 1]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The return success task is currently active. Check the first child. + childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + // The child has completed. Return success. + taskComponent.Status = TaskStatus.Success; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs.meta new file mode 100644 index 000000000..9ab795927 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ffe15b86a15ee5e4c9c4693ab315d6c6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/ReturnSuccess.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs new file mode 100644 index 000000000..f7354b768 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs @@ -0,0 +1,167 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the until failure task. + /// + [NodeIcon("60da350fd1f5b48428e466b79cb85cb2", "3d29cc3223984f44291c0e423a0aa6c6")] + [NodeDescription("The until failure task will keep executing its child task until the child task returns failure.")] + public struct UntilFailure : ILogicNode, IParentNode, ITaskComponentData, IDecorator + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(UntilFailureTag); } + public System.Type SystemType { get => typeof(UntilFailureTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new UntilFailureComponent() { + Index = RuntimeIndex, + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the UntilFailure class. + /// + public struct UntilFailureComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when an UntilFailure node is active. + /// + public struct UntilFailureTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the UntilFailure logic. + /// + [DisableAutoCreation] + public partial struct UntilFailureTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new UntilFailureJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct UntilFailureJob : IJobEntity + { + /// + /// Executes the until failure logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of UntilFailureComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer untilFailureComponents) + { + for (int i = 0; i < untilFailureComponents.Length; ++i) { + var untilFailureComponent = untilFailureComponents[i]; + var taskComponent = taskComponents[untilFailureComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + TaskComponent childTaskComponent; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childTaskComponent = taskComponents[taskComponent.Index + 1]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The until failure task is currently active. Check the first child. + childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running) { + // The child should keep running. + continue; + } + + // If the child returns success then it should be queued again. + if (childTaskComponent.Status == TaskStatus.Success) { + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } + + // The child has returned failure. + taskComponent.Status = TaskStatus.Failure; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs.meta new file mode 100644 index 000000000..09cce8c28 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8b8878b781010e04b87748609a6ac6d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilFailure.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs new file mode 100644 index 000000000..b4d5ae657 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs @@ -0,0 +1,167 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + /// + /// A node representation of the until success task. + /// + [NodeIcon("f2e750025a5812640919385b75319d6f", "4e9ac4f2dd8bfe741a5f889efb1ade67")] + [NodeDescription("The until success task will keep executing its child task until the child task returns success.")] + public struct UntilSuccess : ILogicNode, IParentNode, ITaskComponentData, IDecorator + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + public int MaxChildCount { get { return 1; } } + + public ComponentType Tag { get => typeof(UntilSuccessTag); } + public System.Type SystemType { get => typeof(UntilSuccessTaskSystem); } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new UntilSuccessComponent() { + Index = RuntimeIndex, + }); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the UntilSuccess class. + /// + public struct UntilSuccessComponent : IBufferElementData + { + [Tooltip("The index of the node.")] + public ushort Index; + } + + /// + /// A DOTS tag indicating when an UntilSuccess node is active. + /// + public struct UntilSuccessTag : IComponentData, IEnableableComponent { } + + /// + /// Runs the UntilSuccess logic. + /// + [DisableAutoCreation] + public partial struct UntilSuccessTaskSystem : ISystem + { + /// + /// Creates the job. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + var query = SystemAPI.QueryBuilder().WithAllRW().WithAllRW().WithAllRW().WithAll().Build(); + state.Dependency = new UntilSuccessJob().ScheduleParallel(query, state.Dependency); + } + + /// + /// Job which executes the task logic. + /// + [BurstCompile] + private partial struct UntilSuccessJob : IJobEntity + { + /// + /// Executes the until success logic. + /// + /// An array of BranchComponents. + /// An array of TaskComponents. + /// An array of UntilSuccessComponents. + [BurstCompile] + public void Execute(ref DynamicBuffer branchComponents, ref DynamicBuffer taskComponents, ref DynamicBuffer untilSuccessComponents) + { + for (int i = 0; i < untilSuccessComponents.Length; ++i) { + var untilSuccessComponent = untilSuccessComponents[i]; + var taskComponent = taskComponents[untilSuccessComponent.Index]; + var branchComponent = branchComponents[taskComponent.BranchIndex]; + TaskComponent childTaskComponent; + + if (taskComponent.Status == TaskStatus.Queued) { + taskComponent.Status = TaskStatus.Running; + taskComponents[taskComponent.Index] = taskComponent; + + childTaskComponent = taskComponents[taskComponent.Index + 1]; + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } else if (taskComponent.Status != TaskStatus.Running) { + continue; + } + + // The until success task is currently active. Check the first child. + childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.Status == TaskStatus.Queued || childTaskComponent.Status == TaskStatus.Running ) { + // The child should keep running. + continue; + } + + // If the child returns failure then it should be queued again. + if (childTaskComponent.Status == TaskStatus.Failure) { + childTaskComponent.Status = TaskStatus.Queued; + taskComponents[taskComponent.Index + 1] = childTaskComponent; + + branchComponent.NextIndex = taskComponent.Index + 1; + branchComponents[taskComponent.BranchIndex] = branchComponent; + continue; + } + + // The child has returned success. The task can end. + taskComponent.Status = TaskStatus.Success; + taskComponents[taskComponent.Index] = taskComponent; + + branchComponent.NextIndex = taskComponent.ParentIndex; + branchComponents[taskComponent.BranchIndex] = branchComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs.meta new file mode 100644 index 000000000..7afe6533e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: b11a4f9197ec0964cb1f620368654a53 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UntilSuccess.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs new file mode 100644 index 000000000..142bbbf57 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs @@ -0,0 +1,65 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + using UnityEngine.Serialization; + + /// + /// Implements the UtilityEvaluator returning a SharedVariable value. + /// + [NodeDescription("Sets the utility value to the evaluated curve value.")] + public class UtilityCurveEvaluator : UtilityEvaluator + { + [Tooltip("The curve that should be evaluated for the utility value.")] + [FormerlySerializedAs("m_Utility")] + [SerializeField] SharedVariable m_UtilityValue; + [Tooltip("The time to evaluate the curve at. Set it to -1 to use Time.time.")] + [SerializeField] SharedVariable m_Time; + [Tooltip("Should the time be reset after the task stops running?")] + [SerializeField] SharedVariable m_ResetTimeOnEnd; + + private float m_ResetTime = -1; + + /// + /// Resets the task values back to their default. + /// + public override void Reset() + { + base.Reset(); + + m_UtilityValue = AnimationCurve.Linear(0, 0, 1, 1); + m_Time = -1; + m_ResetTimeOnEnd = false; + } + + /// + /// Returns the utility of the decorator. The higher the utility the more likely the task will run next. + /// + /// The utility of the decorator. + public override float GetUtilityValue() + { + var evaluateTime = m_Time.Value == -1 ? Time.time : m_Time.Value; + if (m_ResetTimeOnEnd.Value && m_ResetTime != -1) { + evaluateTime = Time.time - m_ResetTime; + } + + return m_UtilityValue.Value.Evaluate(evaluateTime); + } + + /// + /// The task has ended. + /// + public override void OnEnd() + { + m_ResetTime = Time.time; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs.meta new file mode 100644 index 000000000..89c312daf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 6052dd7dfb15b574eaba0db3729bbee4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityCurveEvaluator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs new file mode 100644 index 000000000..7d1ff10f7 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs @@ -0,0 +1,131 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.BehaviorDesigner.Runtime.Tasks.Composites; + using Unity.Entities; + using UnityEngine; + + /// + /// Provides a UtilityValueComponent implementation that returns a utility value. + /// + public abstract class UtilityEvaluator : DecoratorNode + { + [Tooltip("Should an infinite utility value be returned while the child is running?")] + [SerializeField] protected bool m_BlockDuringExecution = true; + + public bool BlockDuringExecution { get => m_BlockDuringExecution; set => m_BlockDuringExecution = value; } + + /// + /// Returns the utility of the decorator. The higher the utility the more likely the task will run next. + /// + /// The utility of the decorator. + public abstract float GetUtilityValue(); + + /// + /// Adds the task to the behavior tree buffer. + /// + /// The world that the task runs in. + /// The entity that the task is connected to. + /// The ID of the behavior tree running the task. + /// The index of the task. + public override void AddBufferElement(World world, Entity entity, int behaviorTreeID, ushort index) + { + base.AddBufferElement(world, entity, behaviorTreeID, index); + + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + + buffer.Add(new UtilityValueComponent() + { + Index = index, + }); + var traversalTaskSystems = world.GetOrCreateSystemManaged(); + traversalTaskSystems.AddSystemToUpdateList(world.GetOrCreateSystem(typeof(UtilityEvaluatorSystem))); + } + + /// + /// Clears all component buffers from the behavior tree buffer. + /// + /// The world that the task runs in. + /// The entity that the task is connected to. + public override void ClearBufferElement(World world, Entity entity) + { + base.ClearBufferElement(world, entity); + + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Executes the task logic. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + var taskComponents = m_BehaviorTree.World.EntityManager.GetBuffer(m_BehaviorTree.Entity); + var childStatus = taskComponents[RuntimeIndex + 1].Status; // Index + 1 will always be the task's only child. + if (childStatus == TaskStatus.Success || childStatus == TaskStatus.Failure) { + return childStatus; + } + return TaskStatus.Running; + } + } + + /// + /// Sets the UtilityValueComponent value. + /// + [DisableAutoCreation] + [UpdateBefore(typeof(UtilitySelectorTaskSystem))] + public partial struct UtilityEvaluatorSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + private void OnUpdate(ref SystemState state) + { + foreach (var (utilityValueComponents, taskComponents, entity) in + SystemAPI.Query, DynamicBuffer>().WithAll().WithEntityAccess()) { + + for (int i = 0; i < utilityValueComponents.Length; ++i) { + var utilityValueComponent = utilityValueComponents[i]; + var utilityEvaluator = BehaviorTree.GetBehaviorTree(entity).GetTask(utilityValueComponent.Index) as UtilityEvaluator; + if (utilityEvaluator == null) { + continue; + } + + // If the branch is currently active then it should return an infinite utility value until the branch has completed. This will allow the entire + // branch to execute. + if (utilityEvaluator.BlockDuringExecution) { + var taskComponent = taskComponents[utilityValueComponent.Index + 1]; + if (taskComponent.Status == TaskStatus.Running) { + utilityValueComponent.Value = float.PositiveInfinity; + } else { + utilityValueComponent.Value = utilityEvaluator.GetUtilityValue(); + } + } else { + utilityValueComponent.Value = utilityEvaluator.GetUtilityValue(); + } + var utilityValueComponentBuffer = utilityValueComponents; + utilityValueComponentBuffer[i] = utilityValueComponent; + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs.meta new file mode 100644 index 000000000..4d3ee715d --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 74c275bf295659342be09f83dcacd5cd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityEvaluator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs new file mode 100644 index 000000000..4ab35617a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs @@ -0,0 +1,29 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Decorators +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// Implements the UtilityEvaluator returning a SharedVariable value. + /// + [NodeDescription("Sets the utility value to the specified SharedVariable float value.")] + public class UtilityVariableEvaluator : UtilityEvaluator + { + [Tooltip("The utility of the decorator.")] + [SerializeField] SharedVariable m_Utility; + + /// + /// Returns the utility of the decorator. The higher the utility the more likely the task will run next. + /// + /// The utility of the decorator. + public override float GetUtilityValue() { return m_Utility.Value; } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs.meta new file mode 100644 index 000000000..d59d347c4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fa1905f557f151b45b17a10ffb0a44f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Decorators/UtilityVariableEvaluator.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events.meta new file mode 100644 index 000000000..f01189c9b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 77a6adc251fa2434892e5e0d483f1fb0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs new file mode 100644 index 000000000..5534818b5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs @@ -0,0 +1,35 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using UnityEngine; + + /// + /// A base IEventNode implementation. + /// + [NodeIcon("9041375773f69454792084ab67820b7e", "b1382ad24c668174c9a6e0bd00f229e3")] + public abstract class EventNode : IEventNode, IEventNodeGameObjectReceiver + { + [Tooltip("The index of the ILogicNode that the IEventNode is connected to. ushort.MaxValue indicates no connection.")] + [SerializeField] protected ushort m_ConnectedIndex; + + public ushort ConnectedIndex { get => m_ConnectedIndex; set => m_ConnectedIndex = value; } + + protected BehaviorTree m_BehaviorTree; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public virtual void Initialize(IGraph graph) + { + m_BehaviorTree = graph as BehaviorTree; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs.meta new file mode 100644 index 000000000..df4010a73 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ae332159f8bb5f14c8a6d12075be9bab +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/EventNode.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs new file mode 100644 index 000000000..4f4332caf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent causes a collision. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnCollisionEnter : EventNode + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionEnter += EnteredCollision; + } + + /// + /// The agent has caused a collision. + /// + /// The collision that caused the event. + private void EnteredCollision(Collision collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionEnter -= EnteredCollision; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs.meta new file mode 100644 index 000000000..aa3d581b5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8e38ab2e4d966814f8b760b1f9d64416 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs new file mode 100644 index 000000000..6734b61ba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent causes a 2D collision. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnCollisionEnter2D : EventNode + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionEnter2D += EnteredCollision2D; + } + + /// + /// The agent has caused a 2D collision. + /// + /// The collision that caused the event. + private void EnteredCollision2D(Collision2D collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionEnter2D -= EnteredCollision2D; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs.meta new file mode 100644 index 000000000..71fd90982 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 2280b16f94f390e43a89c0550eac22cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionEnter2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs new file mode 100644 index 000000000..8f309f5c5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent leaves a collision. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnCollisionExit : EventNode + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionExit += ExitedCollision; + } + + /// + /// The agent has left a collision. + /// + /// The collision that caused the event. + private void ExitedCollision(Collision collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionExit -= ExitedCollision; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs.meta new file mode 100644 index 000000000..a28bf7b50 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fee2099d2a111594eadaee56c4998a20 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs new file mode 100644 index 000000000..8b5cfd9b9 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent leaves a 2D collision. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnCollisionExit2D : EventNode + { + [Tooltip("The tag of the GameObject that the collision should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The collided GameObject.")] + [SerializeField] protected SharedVariable m_StoredCollisionGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionExit2D += ExitedCollision2D; + } + + /// + /// The agent has left a 2D collision. + /// + /// The collision that caused the event. + private void ExitedCollision2D(Collision2D collision) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !collision.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredCollisionGameObject != null && m_StoredCollisionGameObject.IsShared) { m_StoredCollisionGameObject.Value = collision.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeCollisionExit2D -= ExitedCollision2D; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs.meta new file mode 100644 index 000000000..ef03c8234 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 2bcef3a2041a6144fb9692d1244330af +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnCollisionExit2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs new file mode 100644 index 000000000..cab8a6396 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs @@ -0,0 +1,128 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Groups; + using Opsive.GraphDesigner.Runtime; + using Unity.Burst; + using Unity.Entities; + using UnityEngine; + + [AllowMultipleTypes] + [NodeIcon("10ed9753a0870c84889dc42a7de397a8", "98f584ca47ddad64d9878314395ce160")] + [NodeDescription("EventNode that is invoked when an interrupt occurs.")] + public class OnInterrupt : IEventNode, IEventNodeEntityReceiver + { + [Tooltip("The index of the ILogicNode that the IEventNode is connected to. ushort.MaxValue indicates no connection.")] + [SerializeField] protected ushort m_ConnectedIndex; + [Tooltip("The node that caused the interruption.")] + [SerializeField] ILogicNode m_InterruptionSource; + public ushort ConnectedIndex { get => m_ConnectedIndex; set => m_ConnectedIndex = value; } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity) + { + if (m_InterruptionSource == null || m_InterruptionSource.Index < 0) { + Debug.LogError("Error: An Interruption Source task must be specified within the OnInterrupt node."); + return; + } + + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new OnInterruptEventComponent() { + ConnectedIndex = m_ConnectedIndex, + InterruptionSourceIndex = m_InterruptionSource.Index, + }); + + var interruptSystemGroup = world.GetOrCreateSystemManaged(); + interruptSystemGroup.AddSystemToUpdateList(world.GetOrCreateSystem()); + } + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + } + + /// + /// The DOTS data structure for the OnInterrupt class. + /// + public struct OnInterruptEventComponent : IBufferElementData + { + [Tooltip("The index of the ILogicNode that the IEventNode is connected to.")] + public ushort ConnectedIndex; + [Tooltip("The index of the node that can invoke the interrupt.")] + public ushort InterruptionSourceIndex; + } + + /// + /// Processes any interrupts. + /// + [DisableAutoCreation] + public partial struct OnInterruptSystem : ISystem + { + /// + /// Updates the logic. + /// + /// The current state of the system. + [BurstCompile] + private void OnUpdate(ref SystemState state) + { + foreach (var (branchComponents, taskComponents, onInterruptEvents, entity) in + SystemAPI.Query, DynamicBuffer, DynamicBuffer>().WithAll().WithEntityAccess()) { + for (int i = 0; i < branchComponents.Length; ++i) { + var branchComponent = branchComponents[i]; + if (branchComponent.InterruptType != InterruptType.None) { + // The branch is going to cause an interrupt. + for (int j = 0; j < onInterruptEvents.Length; ++j) { + var onInterruptEvent = onInterruptEvents[j]; + if (branchComponent.ActiveIndex >= onInterruptEvent.InterruptionSourceIndex && + branchComponent.ActiveIndex < taskComponents[onInterruptEvent.InterruptionSourceIndex].SiblingIndex) { + // Trigger the callback. + var startTask = taskComponents[onInterruptEvent.ConnectedIndex]; + if (startTask.Status != TaskStatus.Queued && startTask.Status != TaskStatus.Running) { + startTask.Status = TaskStatus.Queued; + var taskComponentsBuffer = taskComponents; + taskComponentsBuffer[onInterruptEvent.ConnectedIndex] = startTask; + + var activeTag = taskComponents[onInterruptEvent.ConnectedIndex].TagComponentType; + state.EntityManager.SetComponentEnabled(entity, activeTag, true); + + var connectedBranchIndex = taskComponents[onInterruptEvent.ConnectedIndex].BranchIndex; + branchComponent = branchComponents[connectedBranchIndex]; + branchComponent.ActiveIndex = branchComponent.NextIndex = onInterruptEvent.ConnectedIndex; + branchComponent.ActiveTagComponentType = activeTag; + var branchComponentsBuffer = branchComponents; + branchComponentsBuffer[connectedBranchIndex] = branchComponent; + } + } + } + } + } + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs.meta new file mode 100644 index 000000000..3379f4229 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 29da32620f380b34aa56ef14a1088104 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnInterrupt.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs new file mode 100644 index 000000000..4e01ed854 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs @@ -0,0 +1,170 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Events; + using UnityEngine; + + /// + /// The EventNode that is invoked when the specified event is received. + /// + [AllowMultipleTypes] + [NodeDescription("EventNode that is invoked when the specified event is received")] + public class OnReceivedEvent : EventNode + { + [Tooltip("The name of the event that starts the branch.")] + [SerializeField] protected SharedVariable m_EventName; + [Tooltip("Optionally store the first sent argument.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoredValue1; + [Tooltip("Optionally store the second sent argument.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoredValue2; + [Tooltip("Optionally store the third sent argument.")] + [RequireShared] [SerializeField] protected SharedVariable m_StoredValue3; + + private string m_RegisteredEventName; + private bool m_Initialized; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + if (m_Initialized) { + return; + } + m_Initialized = true; + + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + + m_EventName.OnValueChange += UpdateEvents; + if (m_StoredValue1 != null) { m_StoredValue1.OnValueChange += UpdateEvents; } + if (m_StoredValue2 != null) { m_StoredValue2.OnValueChange += UpdateEvents; } + if (m_StoredValue3 != null) { m_StoredValue3.OnValueChange += UpdateEvents; } + + RegisterEvents(); + } + + /// + /// Registers for the events. + /// + private void RegisterEvents() + { + if (m_StoredValue1 == null || !m_StoredValue1.IsShared) { + EventHandler.RegisterEvent(m_BehaviorTree, m_EventName.Value, ReceivedEvent); + } else { + if (m_StoredValue2 == null || !m_StoredValue2.IsShared) { + EventHandler.RegisterEvent(m_BehaviorTree, m_EventName.Value, ReceivedEvent); + } else { + if (m_StoredValue3 == null || !m_StoredValue3.IsShared) { + EventHandler.RegisterEvent(m_BehaviorTree, m_EventName.Value, ReceivedEvent); + } else { + EventHandler.RegisterEvent(m_BehaviorTree, m_EventName.Value, ReceivedEvent); + } + } + } + + m_RegisteredEventName = m_EventName.Value; + } + + /// + /// Unregisters for the events that were registered. + /// + private void UnregisterEvents() + { + // The events must be registered first in order to be unregistered. + if (string.IsNullOrEmpty(m_RegisteredEventName)) { + return; + } + + // Unregister from all parameters. This will ensure no events are subscribed if the parameters change. + EventHandler.UnregisterEvent(m_BehaviorTree, m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_BehaviorTree, m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_BehaviorTree, m_RegisteredEventName, ReceivedEvent); + EventHandler.UnregisterEvent(m_BehaviorTree, m_RegisteredEventName, ReceivedEvent); + + m_RegisteredEventName = string.Empty; + } + + /// + /// The event name or parameter count has changed. Update the events. + /// + private void UpdateEvents() + { + UnregisterEvents(); + RegisterEvents(); + } + + /// + /// The event has been received. + /// + private void ReceivedEvent() + { + m_BehaviorTree.StartBranch(this); + } + + /// + /// A single parameter event has been received. + /// + /// The first parameter. + private void ReceivedEvent(object arg1) + { + if (m_StoredValue1 != null && m_StoredValue1.IsShared) { m_StoredValue1.SetValue(arg1); } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// A two parameter event has been received. + /// + /// The first parameter. + /// The second parameter. + private void ReceivedEvent(object arg1, object arg2) + { + if (m_StoredValue1 != null && m_StoredValue1.IsShared) { m_StoredValue1.SetValue(arg1); } + if (m_StoredValue2 != null && m_StoredValue2.IsShared) { m_StoredValue2.SetValue(arg2); } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// A three parameter event has been received. + /// + /// The first parameter. + /// The second parameter. + /// The third parameter. + private void ReceivedEvent(object arg1, object arg2, object arg3) + { + if (m_StoredValue1 != null && m_StoredValue1.IsShared) { m_StoredValue1.SetValue(arg1); } + if (m_StoredValue2 != null && m_StoredValue2.IsShared) { m_StoredValue2.SetValue(arg2); } + if (m_StoredValue3 != null && m_StoredValue3.IsShared) { m_StoredValue3.SetValue(arg3); } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + + m_EventName.OnValueChange -= UpdateEvents; + if (m_StoredValue1 != null) { m_StoredValue1.OnValueChange -= UpdateEvents; } + if (m_StoredValue2 != null) { m_StoredValue2.OnValueChange -= UpdateEvents; } + if (m_StoredValue3 != null) { m_StoredValue3.OnValueChange -= UpdateEvents; } + + UnregisterEvents(); + m_Initialized = false; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs.meta new file mode 100644 index 000000000..a519281ba --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 08f3abf304431564faa9a446da5525be +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnReceivedEvent.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs new file mode 100644 index 000000000..a6a5be825 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent enters a trigger. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnTriggerEnter : EventNode + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The entered trigger GameObject.")] + [SerializeField] protected SharedVariable m_StoredOtherColliderGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerEnter += EnteredTrigger; + } + + /// + /// The agent has entered a trigger. + /// + /// The trigger that the agent entered. + private void EnteredTrigger(Collider other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherColliderGameObject != null && m_StoredOtherColliderGameObject.IsShared) { m_StoredOtherColliderGameObject.Value = other.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerEnter -= EnteredTrigger; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs.meta new file mode 100644 index 000000000..cfa2c0bcd --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: fedf6996bd7cfba4395c582ba40e2b47 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs new file mode 100644 index 000000000..7bf048b1a --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent enters a 2D trigger. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnTriggerEnter2D : EventNode + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The entered trigger GameObject.")] + [SerializeField] protected SharedVariable m_StoredOtherColliderGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerEnter2D += EnteredTrigger2D; + } + + /// + /// The agent has entered a 2D trigger. + /// + /// The trigger that the agent entered. + private void EnteredTrigger2D(Collider2D other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherColliderGameObject != null && m_StoredOtherColliderGameObject.IsShared) { m_StoredOtherColliderGameObject.Value = other.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerEnter2D -= EnteredTrigger2D; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs.meta new file mode 100644 index 000000000..39ca97e56 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 1d33b9315f8977947bcb04bd9eced13e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerEnter2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs new file mode 100644 index 000000000..8382d11ef --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent exits a trigger. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnTriggerExit : EventNode + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The exited trigger GameObject.")] + [SerializeField] protected SharedVariable m_StoredOtherColliderGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerExit += ExitedTrigger; + } + + /// + /// The agent has exited a trigger. + /// + /// The trigger that the agent exited. + private void ExitedTrigger(Collider other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherColliderGameObject != null && m_StoredOtherColliderGameObject.IsShared) { m_StoredOtherColliderGameObject.Value = other.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerExit -= ExitedTrigger; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs.meta new file mode 100644 index 000000000..7f0277699 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ee0ed271175ff684c8999ca1427a3f43 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs new file mode 100644 index 000000000..c66c28678 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs @@ -0,0 +1,62 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using UnityEngine; + + /// + /// The EventNode that is invoked when the agent exits a 2D trigger. + /// + [AllowMultipleTypes] + [NodeIcon("06864c37115f11445b04701c616d0e14", "8b8a2793322238240b4f25171d772003")] + public class OnTriggerExit2D : EventNode + { + [Tooltip("The tag of the GameObject that the trigger should be checked against.")] + [SerializeField] protected SharedVariable m_Tag; + [Tooltip("The exited trigger GameObject.")] + [SerializeField] protected SharedVariable m_StoredOtherColliderGameObject; + + /// + /// Initializes the node to the specified graph. + /// + /// The graph that is initializing the task. + public override void Initialize(IGraph graph) + { + base.Initialize(graph); + + m_BehaviorTree.OnBehaviorTreeDestroyed += Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerExit2D += ExitedTrigger2D; + } + + /// + /// The agent has exited a 2D trigger. + /// + /// The trigger that the agent exited. + private void ExitedTrigger2D(Collider2D other) + { + if (!string.IsNullOrEmpty(m_Tag.Value) && !other.gameObject.CompareTag(m_Tag.Value)) { + return; + } + + if (m_StoredOtherColliderGameObject != null && m_StoredOtherColliderGameObject.IsShared) { m_StoredOtherColliderGameObject.Value = other.gameObject; } + + m_BehaviorTree.StartBranch(this); + } + + /// + /// The behavior tree has been destroyed. + /// + private void Destroy() + { + m_BehaviorTree.OnBehaviorTreeDestroyed -= Destroy; + m_BehaviorTree.OnBehaviorTreeTriggerExit2D -= ExitedTrigger2D; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs.meta new file mode 100644 index 000000000..089cc6a6e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: da04e1db385cc9d4ba72bccc9450531c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/OnTriggerExit2D.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs new file mode 100644 index 000000000..55c2aa1e5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs @@ -0,0 +1,24 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events +{ + using Opsive.GraphDesigner.Runtime; + using UnityEngine; + + /// + /// The EventNode that is invoked when the behavior tree starts. + /// + [NodeIcon("8c35407905159694e8b83df15d3b039b", "df820d6e71423194188c7dcb1c1ae2e2")] + public class Start : IEventNode + { + [Tooltip("The index of the ILogicNode that the IEventNode is connected to. ushort.MaxValue indicates no connection.")] + [SerializeField] protected ushort m_ConnectedIndex; + + public ushort ConnectedIndex { get => m_ConnectedIndex; set => m_ConnectedIndex = value; } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs.meta new file mode 100644 index 000000000..aa4c98333 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a59ed1fcf4540d54fbc57ff4e2a3fe04 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs new file mode 100644 index 000000000..1cf90f3c5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs @@ -0,0 +1,34 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + + /// + /// Interface for tasks that can load subtrees. + /// + public interface ISubtreeReference + { + /// + /// A list of mapped SharedVariables. These variables can override the subtree. + /// + SharedVariableOverride[] SharedVariableOverrides { get; set; } + + /// + /// Performs any runtime operations to evaluate the array of subtrees that should be returned. + /// + /// The component that the node is attached to. + void EvaluateSubtrees(IGraphComponent graphComponent); + + /// + /// The Subtrees that should be used at runtime. + /// + Subtree[] Subtrees { get; } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs.meta new file mode 100644 index 000000000..fff4511b4 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 831e8b55811df1749b0416880fc74492 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/ISubtreeReference.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs new file mode 100644 index 000000000..56ae31fdc --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs @@ -0,0 +1,411 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + using Opsive.BehaviorDesigner.Runtime; + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using System; + using System.Collections.Generic; + using Unity.Entities; + using UnityEngine; + using static Opsive.BehaviorDesigner.Runtime.BehaviorTreeData; + + /// + /// The StackedTask task allows for multiple tasks to be added to a single node. + /// + [HideInFilterWindow] + [NodeIcon("e0a8f1df788b6274a9a24003859dfa7e")] + public abstract class StackedTask : Task, ILogicNode, IStackedNode + { + [Tooltip("The index of the node.")] + [SerializeField] ushort m_Index; + [Tooltip("The parent index of the node. ushort.MaxValue indicates no parent.")] + [SerializeField] ushort m_ParentIndex; + [Tooltip("The sibling index of the node. ushort.MaxValue indicates no sibling.")] + [SerializeField] ushort m_SiblingIndex; + + public ushort Index { get => m_Index; set => m_Index = value; } + public ushort ParentIndex { get => m_ParentIndex; set => m_ParentIndex = value; } + public ushort SiblingIndex { get => m_SiblingIndex; set => m_SiblingIndex = value; } + public ushort RuntimeIndex { get; set; } + + /// + /// Specifies how the tasks should be compared. + /// + public enum ComparisonType + { + Sequence, // AND. + Selector // OR. + } + + [Tooltip("The tasks that should run.")] + [SerializeField] protected Task[] m_Tasks; + [Tooltip("Specifies if the tasks should be traversed with an AND (Sequence) or an OR (Selector).")] + [SerializeField] protected ComparisonType m_ComparisonType; + + private ushort m_ActiveIndex; + private bool[] m_TaskStarted; + private bool[] m_TaskEnded; + + public ushort ActiveIndex { get => m_ActiveIndex; } + public object[] Nodes { get => m_Tasks; } + public Task[] Tasks { get => m_Tasks; set => m_Tasks = value; } + + /// + /// Adds the object to the action array. + /// + /// The object that should be added. + public void Add(object obj) + { + Task task; + if (obj is System.Reflection.MethodInfo) { + // A delegate action needs to be created. + var methodInfo = obj as System.Reflection.MethodInfo; + var parameters = methodInfo.GetParameters(); + var types = new Type[(parameters != null ? parameters.Length : 0) + ((methodInfo.ReturnType != typeof(void)) ? 1 : 0)]; + if (parameters != null) { + for (int i = 0; i < parameters.Length; ++i) { + types[i] = parameters[i].ParameterType; + } + } + + Type baseType; + if (methodInfo.ReturnType == typeof(void)) { + if (parameters != null && parameters.Length > 0) { + if (parameters.Length == 1) { baseType = typeof(TaskDelegate<>); } + else if (parameters.Length == 2) { baseType = typeof(TaskDelegate<,>); } + else if (parameters.Length == 3) { baseType = typeof(TaskDelegate<,,>); } + else if (parameters.Length == 4) { baseType = typeof(TaskDelegate<,,,>); } + else if (parameters.Length == 5) { baseType = typeof(TaskDelegate<,,,,>); } + else if (parameters.Length == 6) { baseType = typeof(TaskDelegate<,,,,,>); } + else if (parameters.Length == 7) { baseType = typeof(TaskDelegate<,,,,,,>); } + else if (parameters.Length == 8) { baseType = typeof(TaskDelegate<,,,,,,,>); } + else if (parameters.Length == 9) { baseType = typeof(TaskDelegate<,,,,,,,,>); } + else if (parameters.Length == 10) { baseType = typeof(TaskDelegate<,,,,,,,,,>); } + else { Debug.LogError($"Error: Unable to create TaskDelegate with {parameters.Length}. Please send this error to support@opsive.com."); return; } + } else { + baseType = typeof(TaskDelegate); + } + } else { + // The method has a returned parameter. + types[types.Length - 1] = methodInfo.ReturnType; + if (parameters != null && parameters.Length > 0) { + if (parameters.Length == 1) { baseType = typeof(TaskValueDelegate<,>); } + else if (parameters.Length == 2) { baseType = typeof(TaskValueDelegate<,,>); } + else if (parameters.Length == 3) { baseType = typeof(TaskValueDelegate<,,,>); } + else if (parameters.Length == 4) { baseType = typeof(TaskValueDelegate<,,,,>); } + else if (parameters.Length == 5) { baseType = typeof(TaskValueDelegate<,,,,,>); } + else if (parameters.Length == 6) { baseType = typeof(TaskValueDelegate<,,,,,,>); } + else if (parameters.Length == 7) { baseType = typeof(TaskValueDelegate<,,,,,,,>); } + else if (parameters.Length == 8) { baseType = typeof(TaskValueDelegate<,,,,,,,,>); } + else if (parameters.Length == 9) { baseType = typeof(TaskValueDelegate<,,,,,,,,,>); } + else if (parameters.Length == 10) { baseType = typeof(TaskValueDelegate<,,,,,,,,,>); } + else { Debug.LogError($"Error: Unable to create TaskValueDelegate with {parameters.Length}. Please send this error to support@opsive.com."); return; } + } else { + baseType = typeof(TaskValueDelegate<>); + } + } + + Type actionDelegateType; + if (types.Length > 0) { + actionDelegateType = baseType.MakeGenericType(types); + } else { + actionDelegateType = baseType; + } + + // The Action Delegate needs to be initialized to the method. + var actionDelegate = Activator.CreateInstance(actionDelegateType) as TaskDelegateBase; + actionDelegate.Bind(methodInfo); + + task = actionDelegate; + } else if (obj is Type) { + task = Activator.CreateInstance((Type)obj) as Task; + } else { // Task. + task = obj as Task; + } + + task.Reset(); + + if (m_Tasks == null) { + m_Tasks = new Task[] { task }; + } else { + Array.Resize(ref m_Tasks, m_Tasks.Length + 1); + m_Tasks[m_Tasks.Length - 1] = task; + } + } + + /// + /// Removes the action at the specified index. + /// + /// The index of the action that should be removed. + public void Remove(int index) + { + if (index < 0 || index >= m_Tasks.Length) { + return; + } + + m_Tasks[index].OnDestroy(); + for (int i = index; i < m_Tasks.Length - 1; ++i) { + m_Tasks[i] = m_Tasks[i + 1]; + } + Array.Resize(ref m_Tasks, m_Tasks.Length - 1); + } + + /// + /// Resets the task values back to their default. + /// + public override void Reset() + { + if (m_Tasks == null) { + return; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + m_Tasks[i].Reset(); + } + } + + /// + /// Initializes the base task parameters. + /// + /// A reference to the owning BehaviorTree. + /// The runtime index of the node. + internal override void Initialize(BehaviorTree behaviorTree, ushort runtimeIndex) + { + if (m_Tasks != null) { + m_TaskStarted = new bool[m_Tasks.Length]; + m_TaskEnded = new bool[m_Tasks.Length]; + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + if (m_Tasks[i] is TaskDelegateBase taskDelegate) { + taskDelegate.Initialize(behaviorTree, runtimeIndex, this is IConditional); + } else { + m_Tasks[i].Initialize(behaviorTree, runtimeIndex); + } + } + } + + base.Initialize(behaviorTree, runtimeIndex); + } + + /// + /// Called when the task is started. + /// + public override void OnStart() + { + if (m_Tasks == null) { + return; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + + m_TaskStarted[i] = false; + m_TaskEnded[i] = false; + } + } + + /// + /// Updates all of the child tasks. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + if (m_Tasks == null || m_Tasks.Length == 0) { + return TaskStatus.Failure; + } + + while (m_ActiveIndex < m_Tasks.Length) { + if (m_Tasks[m_ActiveIndex] == null) { + continue; + } + + // Call start when the local task is started, not when the StackedTask starts. + if (!m_TaskStarted[m_ActiveIndex]) { + m_Tasks[m_ActiveIndex].OnStart(); + m_TaskStarted[m_ActiveIndex] = true; + } + + var executionStatus = m_Tasks[m_ActiveIndex].OnUpdate(); + if (executionStatus == TaskStatus.Running) { + return TaskStatus.Running; + } + + if (m_ComparisonType == ComparisonType.Sequence && executionStatus == TaskStatus.Failure) { + return TaskStatus.Failure; + } else if (m_ComparisonType == ComparisonType.Selector && executionStatus == TaskStatus.Success) { + return TaskStatus.Success; + } + + if (!m_TaskEnded[m_ActiveIndex]) { + m_Tasks[m_ActiveIndex].OnEnd(); + m_TaskEnded[m_ActiveIndex] = true; + } + m_ActiveIndex++; + } + + return m_ComparisonType == ComparisonType.Sequence ? TaskStatus.Success : TaskStatus.Failure; + } + + /// + /// Called when the task stops. + /// + public override void OnEnd() + { + if (m_TaskEnded == null) { + return; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + if (!m_TaskEnded[i]) { + m_Tasks[i].OnEnd(); + } + + m_TaskStarted[i] = false; + m_TaskEnded[i] = false; + } + m_ActiveIndex = 0; + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public override MemberVisibility GetSaveReflectionType(int index) { return index < 0 || index >= m_Tasks.Length ? MemberVisibility.None : m_Tasks[index].GetSaveReflectionType(index); } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public override object Save(World world, Entity entity) + { + if (m_Tasks == null) { + return null; + } + + var saveData = new object[m_Tasks.Length + 1]; + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + var reflectionType = m_Tasks[i].GetSaveReflectionType(i); + if (reflectionType != MemberVisibility.None) { + saveData[i] = Serialization.Serialize(m_Tasks[i], reflectionType, BehaviorTreeData.ValidateSerializedObject); + } else { + saveData[i] = m_Tasks[i].Save(world, entity); + } + } + saveData[m_Tasks.Length] = m_ActiveIndex; + + return saveData; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + /// A reference to the map between the VariableAssignment and SharedVariable. + /// A reference to the list of task references that need to be resolved later. + public override void Load(object saveData, World world, Entity entity, Dictionary variableByNameMap, + ref ResizableArray taskReferences) + { + if (m_Tasks == null || saveData == null) { + return; + } + + var taskData = (object[])saveData; + if (taskData.Length != m_Tasks.Length + 1) { + Debug.LogError("Error: The save data does not match the task data length."); + return; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (taskData[i] == null) { + continue; + } + + Load(m_Tasks[i], i, taskData[i], world, entity, variableByNameMap, ref taskReferences); + } + m_ActiveIndex = (ushort)taskData[m_Tasks.Length]; + } + + /// + /// Loads the previous task state. + /// + /// The task that the saveData belongs to. + /// The index of the task within the Tasks array. + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + /// A reference to the map between the VariableAssignment and SharedVariable. + /// A reference to the list of task references that need to be resolved later. + protected virtual void Load(Task task, int index, object saveData, World world, Entity entity, + Dictionary variableByNameMap, ref ResizableArray taskReferences) + { + var reflectionType = task.GetSaveReflectionType(index); + if (reflectionType != MemberVisibility.None) { + var localTaskReferences = taskReferences; + (saveData as Serialization).DeserializeFields(task, reflectionType, BehaviorTreeData.ValidateDeserializedTypeObject, + (object fieldInfoObj, object task, object value) => + { + return BehaviorTreeData.ValidateDeserializedObject(fieldInfoObj, task, value, ref variableByNameMap, ref localTaskReferences); + }); + taskReferences = localTaskReferences; + } else { + task.Load(saveData, world, entity, variableByNameMap, ref taskReferences); + } + } + + /// + /// Callback when OnDrawGizmos is triggered. + /// + protected override void OnDrawGizmos() + { + if (m_Tasks == null) { + return; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + m_Tasks[i].OnDrawGizmos(m_BehaviorTree); + } + } + + /// + /// Callback when OnDrawGizmosSelected is triggered. + /// + protected override void OnDrawGizmosSelected() + { + if (m_Tasks == null) { + return; + } + + for (int i = 0; i < m_Tasks.Length; ++i) { + if (m_Tasks[i] == null) { + continue; + } + m_Tasks[i].OnDrawGizmosSelected(m_BehaviorTree); + } + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs.meta new file mode 100644 index 000000000..e4dcbd50e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f7e3a1fa96850394ab09c7ebf309b0ed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/StackedTask.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs new file mode 100644 index 000000000..68bce358f --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs @@ -0,0 +1,380 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + using Opsive.BehaviorDesigner.Runtime.Systems; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using System.Collections.Generic; + using Unity.Entities; + using UnityEngine; + using static Opsive.BehaviorDesigner.Runtime.BehaviorTreeData; + + /// + /// The base class for a Mono task. + /// + public abstract class Task : ISavableTask + { + protected GameObject m_GameObject; + protected Transform m_Transform; + protected BehaviorTree m_BehaviorTree; + protected ushort m_RuntimeIndex; + + protected virtual GameObject gameObject { get => m_GameObject; } + protected virtual Transform transform { get => m_Transform; } + + private TaskStatus m_Status; + internal TaskStatus Status { get => m_Status; set => m_Status = value; } + + /// + /// Adds the task to the behavior tree buffer. + /// + /// The world that the task runs in. + /// The entity that the task is connected to. + /// The ID of the behavior tree running the task. + /// The index of the task. + public virtual void AddBufferElement(World world, Entity entity, int behaviorTreeID, ushort index) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + } else { + buffer = world.EntityManager.AddBuffer(entity); + } + buffer.Add(new TaskObjectComponent() + { + Index = index, + }); + } + + /// + /// Clears all component buffers from the behavior tree buffer. + /// + /// The world that the task runs in. + /// The entity that the task is connected to. + public virtual void ClearBufferElement(World world, Entity entity) + { + DynamicBuffer buffer; + if (world.EntityManager.HasBuffer(entity)) { + buffer = world.EntityManager.GetBuffer(entity); + buffer.Clear(); + } + } + + /// + /// Resets the task values back to their default. + /// + public virtual void Reset() { } + + /// + /// Initializes the base task parameters. + /// + /// A reference to the owning BehaviorTree. + /// The runtime index of the node. + internal virtual void Initialize(BehaviorTree behaviorTree, ushort runtimeIndex) + { + if (!Application.isPlaying) { + return; + } + + m_BehaviorTree = behaviorTree; + m_GameObject = m_BehaviorTree.gameObject; + m_Transform = m_BehaviorTree.transform; + m_RuntimeIndex = runtimeIndex; + + m_BehaviorTree.OnBehaviorTreeStarted += OnBehaviorTreeStarted; + m_BehaviorTree.OnBehaviorTreeStopped += OnBehaviorTreeStopped; + m_BehaviorTree.OnBehaviorTreeDestroyed += OnDestroy; + if (ReceiveCollisionEnterCallback) { m_BehaviorTree.OnBehaviorTreeCollisionEnter += OnCollisionEnter; } + if (ReceiveCollisionExitCallback) { m_BehaviorTree.OnBehaviorTreeCollisionExit += OnCollisionExit; } + if (ReceiveCollisionEnter2DCallback) { m_BehaviorTree.OnBehaviorTreeCollisionEnter2D += OnCollisionEnter2D; } + if (ReceiveCollisionExit2DCallback) { m_BehaviorTree.OnBehaviorTreeCollisionExit2D += OnCollisionExit2D; } + if (ReceiveTriggerEnterCallback) { m_BehaviorTree.OnBehaviorTreeTriggerEnter += OnTriggerEnter; } + if (ReceiveTriggerExitCallback) { m_BehaviorTree.OnBehaviorTreeTriggerExit += OnTriggerExit; } + if (ReceiveTriggerEnter2DCallback) { m_BehaviorTree.OnBehaviorTreeTriggerEnter2D += OnTriggerEnter2D; } + if (ReceiveTriggerExit2DCallback) { m_BehaviorTree.OnBehaviorTreeTriggerExit2D += OnTriggerExit2D; } + if (ReceiveControllerColliderHitCallback) { m_BehaviorTree.OnBehaviorTreeControllerColliderHit += OnControllerColliderHit; } + + OnAwake(); + } + + /// + /// Callback when the behavior tree is initialized. + /// + public virtual void OnAwake() { } + + /// + /// Callback when the behavior tree is started. + /// + public virtual void OnBehaviorTreeStarted() { } + + /// + /// Callback when the behavior tree is started. + /// + [System.Obsolete("Task.OnStarted has been deprecated. Use Task.OnBehaviorTreeStarted instead.")] + public virtual void OnStarted() { } + + /// + /// Callback when the task is started. + /// + public virtual void OnStart() { } + + /// + /// Executes the task logic. Returns a TaskStatus indicating how the behavior tree flow should proceed. + /// + /// The status of the task. + public virtual TaskStatus OnUpdate() { return TaskStatus.Success; } + + /// + /// Callback when the task stops. + /// + public virtual void OnEnd() { } + + /// + /// Calls Unity's GetComponent method. + /// + /// The retrieved component (can be null). + protected T GetComponent() + { + return gameObject.GetComponent(); + } + + /// + /// Calls Unity's GetComponent method. + /// + /// The component type that should be retrieved. + /// The retrieved component (can be null). + protected Component GetComponent(System.Type type) + { + return gameObject.GetComponent(type); + } + + /// + /// Calls Unity's TryGetComponent method. + /// + /// The type of component that should be retireved. + /// The retrieved component. + protected void TryGetComponent(out T component) where T : Component + { + gameObject.TryGetComponent(out component); + } + + /// + /// Calls Unity's TryGetComponent method. + /// + /// The type of component to get. + /// The retrieved component. + protected void TryGetComponent(System.Type type, out Component component) + { + gameObject.TryGetComponent(type, out component); + } + protected void StartCoroutine(string methodName) { m_BehaviorTree.StartTaskCoroutine(this, methodName); } + protected Coroutine StartCoroutine(System.Collections.IEnumerator routine) { return m_BehaviorTree.StartCoroutine(routine); } + protected Coroutine StartCoroutine(string methodName, object value) { return m_BehaviorTree.StartTaskCoroutine(this, methodName, value); } + protected void StopCoroutine(string methodName) { m_BehaviorTree.StopTaskCoroutine(methodName); } + protected void StopCoroutine(System.Collections.IEnumerator routine) { m_BehaviorTree.StopCoroutine(routine); } + protected void StopAllCoroutines() { m_BehaviorTree.StopAllTaskCoroutines(); } + + protected virtual bool ReceiveCollisionEnterCallback => false; + /// + /// Callback when OnCollisionEnter is triggered. This callback will only be received when ReceiveCollisionEnterCallback is true. + /// + /// The resulting collision. + protected virtual void OnCollisionEnter(Collision collision) { } + + protected virtual bool ReceiveCollisionExitCallback => false; + /// + /// Callback when OnCollisionExit is triggered. This callback will only be received when ReceiveCollisionExitCallback is true. + /// + /// The resulting collision. + protected virtual void OnCollisionExit(Collision collision) { } + + protected virtual bool ReceiveCollisionEnter2DCallback => false; + /// + /// Callback when OnCollisionEnter2D is triggered. This callback will only be received when ReceiveCollisionEnter2DCallback is true. + /// + /// The resulting collision. + protected virtual void OnCollisionEnter2D(Collision2D collision) { } + + protected virtual bool ReceiveCollisionExit2DCallback => false; + /// + /// Callback when OnCollisionExit2D is triggered. This callback will only be received when ReceiveCollisionExit2DCallback is true. + /// + /// The resulting collision. + protected virtual void OnCollisionExit2D(Collision2D collision) { } + + protected virtual bool ReceiveTriggerEnterCallback => false; + /// + /// Callback when OnTriggerEnter is triggered. This callback will only be received when ReceiveTriggerEnterCallback is true. + /// + /// The overlapping collider. + protected virtual void OnTriggerEnter(Collider other) { } + + protected virtual bool ReceiveTriggerExitCallback => false; + /// + /// Callback when OnTriggerExit is triggered. This callback will only be received when ReceiveTriggerExitCallback is true. + /// + /// The overlapping collider. + protected virtual void OnTriggerExit(Collider other) { } + + protected virtual bool ReceiveTriggerEnter2DCallback => false; + /// + /// Callback when OnTriggerEnter2D is triggered. This callback will only be received when ReceiveTriggerEnter2DCallback is true. + /// + /// The overlapping collider. + protected virtual void OnTriggerEnter2D(Collider2D other) { } + + protected virtual bool ReceiveTriggerExit2DCallback => false; + /// + /// Callback when OnTriggerExit2D is triggered. This callback will only be received when ReceiveTriggerExit2DCallback is true. + /// + /// The overlapping collider. + protected virtual void OnTriggerExit2D(Collider2D other) { } + + protected virtual bool ReceiveControllerColliderHitCallback => false; + /// + /// Callback when OnControllerColliderHit is triggered. This callback will only be received when ReceiveControllerColliderHitCallback is true. + /// + /// The hit result. + protected virtual void OnControllerColliderHit(ControllerColliderHit hit) { } + + /// + /// Editor method which will draw the gizmos. + /// + /// A reference to the behavior tree component. + internal void OnDrawGizmos(BehaviorTree behaviorTree) + { + if (m_BehaviorTree == null) { + m_BehaviorTree = behaviorTree; + m_Transform = behaviorTree.transform; + m_GameObject = behaviorTree.gameObject; + } + + OnDrawGizmos(); + } + + /// + /// Callback when OnDrawGizmos is triggered. + /// + + protected virtual void OnDrawGizmos() { } + + /// + /// Editor method which will draw the selected gizmos. + /// + /// A reference to the behavior tree component. + internal void OnDrawGizmosSelected(BehaviorTree behaviorTree) + { + if (m_BehaviorTree == null) { + m_BehaviorTree = behaviorTree; + m_Transform = behaviorTree.transform; + m_GameObject = behaviorTree.gameObject; + } + + OnDrawGizmosSelected(); + } + + /// + /// Callback when OnDrawGizmosSelected is triggered. + /// + protected virtual void OnDrawGizmosSelected() { } + + /// + /// Callback when the behavior tree is stopped. + /// + /// Is the behavior tree paused? + public virtual void OnBehaviorTreeStopped(bool paused) { } + + /// + /// Callback when the behavior tree is stopped. + /// + /// Is the behavior tree paused? + [System.Obsolete("Task.OnStopped has been deprecated. Use Task.OnBehaviorTreeStopped instead.")] + public virtual void OnStopped(bool paused) { } + + /// + /// Callback when the behavior tree is destroyed. + /// + public virtual void OnDestroy() + { + if (m_BehaviorTree == null) { + return; + } + + m_BehaviorTree.OnBehaviorTreeStarted -= OnBehaviorTreeStarted; + m_BehaviorTree.OnBehaviorTreeStopped -= OnBehaviorTreeStopped; + m_BehaviorTree.OnBehaviorTreeDestroyed -= OnDestroy; + if (ReceiveCollisionEnterCallback) { m_BehaviorTree.OnBehaviorTreeCollisionEnter -= OnCollisionEnter; } + if (ReceiveCollisionExitCallback) { m_BehaviorTree.OnBehaviorTreeCollisionExit -= OnCollisionExit; } + if (ReceiveCollisionEnter2DCallback) { m_BehaviorTree.OnBehaviorTreeCollisionEnter2D -= OnCollisionEnter2D; } + if (ReceiveCollisionExit2DCallback) { m_BehaviorTree.OnBehaviorTreeCollisionExit2D -= OnCollisionExit2D; } + if (ReceiveTriggerEnterCallback) { m_BehaviorTree.OnBehaviorTreeTriggerEnter -= OnTriggerEnter; } + if (ReceiveTriggerExitCallback) { m_BehaviorTree.OnBehaviorTreeTriggerExit -= OnTriggerExit; } + if (ReceiveTriggerEnter2DCallback) { m_BehaviorTree.OnBehaviorTreeTriggerEnter2D -= OnTriggerEnter2D; } + if (ReceiveTriggerExit2DCallback) { m_BehaviorTree.OnBehaviorTreeTriggerExit2D -= OnTriggerExit2D; } + if (ReceiveControllerColliderHitCallback) { m_BehaviorTree.OnBehaviorTreeControllerColliderHit -= OnControllerColliderHit; } + } + + /// + /// Overrides ToString providing a nicer string value of the task. + /// + /// The overloaded ToString value. + public override string ToString() + { + return GetType().Name; + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public virtual MemberVisibility GetSaveReflectionType(int index) { return MemberVisibility.Public; } + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public virtual object Save(World world, Entity entity) + { + return null; + } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public virtual void Load(object saveData, World world, Entity entity) { } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + /// A reference to the map between the VariableAssignment and SharedVariable. + /// A reference to the list of task references that need to be resolved later. + public virtual void Load(object saveData, World world, Entity entity, Dictionary variableByNameMap, + ref ResizableArray taskReferences) + { + Load(saveData, world, entity); + } + } + + /// + /// A blob asset that stores the indicies array. + /// + public struct IndiciesBlob + { + [Tooltip("The indicies of the tasks.")] + public BlobArray Indicies; + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs.meta new file mode 100644 index 000000000..1af775cb6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8ddfd58bb4de183448b245f6fb314fbe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/Task.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs new file mode 100644 index 000000000..f0b131e19 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs @@ -0,0 +1,63 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime +{ + using UnityEngine; + using System.Collections; + + /// + /// A wrapper for the coroutine object in order to add support for coroutines within Tasks. + /// + public class TaskCoroutine + { + private BehaviorTree m_BehaviorTree; + + private IEnumerator m_CoroutineEnumerator; + private Coroutine m_Coroutine; + private string m_Name; + private bool m_Stop; + + public Coroutine Coroutine { get => m_Coroutine; } + + /// + /// Initializes and starts a coroutine. + /// + /// The BehaviorTree that the coroutine has been added to. + /// A reference to the coroutine. + /// The name of the coroutine. + public TaskCoroutine(BehaviorTree behaviorTree, IEnumerator coroutine, string name) + { + m_BehaviorTree = behaviorTree; + m_CoroutineEnumerator = coroutine; + m_Name = name; + + m_Coroutine = m_BehaviorTree.StartCoroutine(RunCoroutine()); + } + + /// + /// Runs the coroutine until it is complete or has been stopped. + /// + /// The active coroutine. + public IEnumerator RunCoroutine() + { + while (!m_Stop) { + if (m_CoroutineEnumerator != null && m_CoroutineEnumerator.MoveNext()) { + yield return m_CoroutineEnumerator.Current; + } else { + break; + } + } + m_BehaviorTree.TaskCoroutineEnded(this, m_Name); + } + + /// + /// Stops the coroutine. + /// + public void Stop() { m_Stop = true; } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs.meta new file mode 100644 index 000000000..83fcab558 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 5fcbd45134954664fb7f14527343dfae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskCoroutine.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs new file mode 100644 index 000000000..bd04c027b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs @@ -0,0 +1,1258 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + using Opsive.GraphDesigner.Runtime; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using System; + using System.Reflection; + using UnityEngine; + + /// + /// The TaskDelegateBase task is an abstract class used for any action classes that use reflection to execute the action. + /// + [HideInFilterWindow] + public abstract class TaskDelegateBase : Task, IAction + { + [Tooltip("The object that the delegate belongs to. Can be null for static variables.")] + [SerializeField] [HideInInspector] protected SharedVariable m_Target; + [Tooltip("The type of delegate that should be created.")] + [SerializeField] [HideInInspector] protected string m_ReflectedType; + [Tooltip("The type of parameters that the delegate uses.")] + [SerializeField] [HideInInspector] protected string[] m_ParameterTypes; + [Tooltip("The name of the method that should be called by the delegate.")] + [SerializeField] [HideInInspector] protected string m_MethodName; + + public SharedVariable Target => m_Target; + public string ReflectedType => m_ReflectedType; + public string[] ParameterTypes => m_ParameterTypes; + public string MethodName => m_MethodName; + + protected bool m_ConditionalTask; + + /// + /// Binds the task to the specified method. + /// + /// The MethodInfo to bind the task to. + internal void Bind(MethodInfo methodInfo) + { + m_ReflectedType = methodInfo.ReflectedType.FullName; + var parameters = methodInfo.GetParameters(); + if (parameters != null && parameters.Length > 0) { + m_ParameterTypes = new string[parameters.Length]; + for (int i = 0; i < parameters.Length; ++i) { + m_ParameterTypes[i] = parameters[i].ParameterType.FullName; + } + } + m_MethodName = methodInfo.Name; + } + + /// + /// Initializes the task. + /// + /// A reference to the owning BehaviorTree. + /// Does the delegate belong to an IConditional task? + /// The runtime index of the node. + internal void Initialize(BehaviorTree behaviorTree, ushort runtimeIndex, bool conditionalTask) + { + m_ConditionalTask = conditionalTask; + + base.Initialize(behaviorTree, runtimeIndex); + } + + /// + /// Callback when the behavior tree is initialized. + /// + public override void OnAwake() + { + base.OnAwake(); + + CreateDelegate(); + if (m_Target != null) { + m_Target.OnValueChange += CreateDelegate; + } + } + + /// + /// Creates the task delegate. + /// + protected virtual void CreateDelegate() { } + + /// + /// Returns the target value. + /// + /// The target value. + protected object GetTargetValue() + { + // The target will be null if no SharedVariable value has been assigned. + var target = m_Target.GetValue(); + if (target == null) { + var targetType = m_ReflectedType.Replace("UnityEngine.", string.Empty); + if (string.Equals(targetType, "GameObject")) { + return m_GameObject; + } + var value = m_GameObject.GetComponent(targetType); + if (value == null) { + var splitType = m_ReflectedType.Split("."); + value = m_GameObject.GetComponent(splitType[splitType.Length - 1]); + if (value == null) { + Debug.LogError($"Error: Unable to find the component {m_ReflectedType} on the {m_GameObject.name} GameObject."); + } + } + return value; + } + return target; + } + + /// + /// Returns the method from the given type and name. + /// + /// The object type that the method belongs to. + /// The name of the method. + /// The types of parameters that the method uses. + /// The method from the given type and name. + protected static MethodInfo GetMethod(string reflectedType, string methodName, string[] parameterTypeNames) + { + var type = TypeUtility.GetType(reflectedType); + if (type == null) { + Debug.LogError($"Error: Unable to find the type {reflectedType}."); + return null; + } + + Type[] parameterTypes; + if (parameterTypeNames != null) { + parameterTypes = new Type[parameterTypeNames.Length]; + for (int i = 0; i < parameterTypeNames.Length; ++i) { + parameterTypes[i] = TypeUtility.GetType(parameterTypeNames[i]); + if (parameterTypes[i] == null) { + Debug.LogError($"Error: Unable to find the parameter type {parameterTypeNames[i]}."); + return null; + } + } + } else { + parameterTypes = new Type[0]; + } + + // Get the method based on the type and parameter types. + var method = type.GetMethod(methodName, BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static, null, parameterTypes, null); + if (method == null) { + Debug.LogError($"Error: Unable to find the method {methodName} on type {type}."); + return null; + } + + return method; + } + + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public override MemberVisibility GetSaveReflectionType(int index) + { + return MemberVisibility.Public; + } + + /// + /// Returns a friendly name for the task. + /// + /// A friendly name for the task. + public override string ToString() + { + return m_MethodName; + } + } + + /// + /// Task which executes a delegate with no parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(System.Action)) as System.Action; + } else { + m_Delegate = method.CreateDelegate(typeof(System.Action), GetTargetValue()) as System.Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with no parameters but a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with one parameter. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with one parameter and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with two parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with two parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with three parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with three parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with four parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with four parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with five parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with five parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with six parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with six parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with seven parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with seven parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with eight parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The eigth parameter.")] + [SerializeField] protected SharedVariable m_Parameter8; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value, m_Parameter8.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with eight parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The eigth parameter.")] + [SerializeField] protected SharedVariable m_Parameter8; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value, m_Parameter8.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with nine parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The eigth parameter.")] + [SerializeField] protected SharedVariable m_Parameter8; + [Tooltip("The ninth parameter.")] + [SerializeField] protected SharedVariable m_Parameter9; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value, m_Parameter8.Value, m_Parameter9.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with nine parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The eigth parameter.")] + [SerializeField] protected SharedVariable m_Parameter8; + [Tooltip("The ninth parameter.")] + [SerializeField] protected SharedVariable m_Parameter9; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value, m_Parameter8.Value, m_Parameter9.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with ten parameters. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The eigth parameter.")] + [SerializeField] protected SharedVariable m_Parameter8; + [Tooltip("The ninth parameter.")] + [SerializeField] protected SharedVariable m_Parameter9; + [Tooltip("The tenth parameter.")] + [SerializeField] protected SharedVariable m_Parameter10; + + private Action m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Action)) as Action; + } else { + m_Delegate = method.CreateDelegate(typeof(Action), GetTargetValue()) as Action; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value, m_Parameter8.Value, m_Parameter9.Value, m_Parameter10.Value); + return TaskStatus.Success; + } + } + + /// + /// Task which executes a delegate with ten parameters and a returned value. + /// + [NodeIcon("3bbdfa553da4d554e9d74f8d88915aac", "6437308e972f99f48953f20198fd4e94")] + public class TaskValueDelegate : TaskDelegateBase + { + [Tooltip("The first parameter.")] + [SerializeField] protected SharedVariable m_Parameter1; + [Tooltip("The second parameter.")] + [SerializeField] protected SharedVariable m_Parameter2; + [Tooltip("The third parameter.")] + [SerializeField] protected SharedVariable m_Parameter3; + [Tooltip("The fourth parameter.")] + [SerializeField] protected SharedVariable m_Parameter4; + [Tooltip("The fifth parameter.")] + [SerializeField] protected SharedVariable m_Parameter5; + [Tooltip("The sixth parameter.")] + [SerializeField] protected SharedVariable m_Parameter6; + [Tooltip("The seventh parameter.")] + [SerializeField] protected SharedVariable m_Parameter7; + [Tooltip("The eigth parameter.")] + [SerializeField] protected SharedVariable m_Parameter8; + [Tooltip("The ninth parameter.")] + [SerializeField] protected SharedVariable m_Parameter9; + [Tooltip("The tenth parameter.")] + [SerializeField] protected SharedVariable m_Parameter10; + [Tooltip("The returned result.")] + [SerializeField] [RequireShared] protected SharedVariable m_Result; + + private Func m_Delegate; + + /// + /// Creates the task delegate. + /// + protected override void CreateDelegate() + { + var method = GetMethod(m_ReflectedType, m_MethodName, m_ParameterTypes); + if (method == null) { + return; + } + + if (method.IsStatic) { + m_Delegate = method.CreateDelegate(typeof(Func)) as Func; + } else { + m_Delegate = method.CreateDelegate(typeof(Func), GetTargetValue()) as Func; + } + } + + /// + /// Invokes the delegate. + /// + /// The status of the task. + public override TaskStatus OnUpdate() + { + m_Result.Value = m_Delegate(m_Parameter1.Value, m_Parameter2.Value, m_Parameter3.Value, m_Parameter4.Value, m_Parameter5.Value, m_Parameter6.Value, m_Parameter7.Value, m_Parameter8.Value, m_Parameter9.Value, m_Parameter10.Value); + if (m_ConditionalTask) { + return Convert.ToBoolean(m_Result.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + return TaskStatus.Success; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs.meta new file mode 100644 index 000000000..c3fb383c6 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f432dc82c1de72e4dbb4662cbee75a4b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskDelegateBase.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs new file mode 100644 index 000000000..bca242d38 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs @@ -0,0 +1,169 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using System.Collections.Generic; + using Unity.Entities; + using static Opsive.BehaviorDesigner.Runtime.BehaviorTreeData; + + /// + /// Interface for action tasks. + /// + [ReflectedType] + [ObjectName("Actions")] + public interface IAction { } + + /// + /// Interface for composite tasks. + /// + [ObjectName("Composites")] + public interface IComposite { } + + /// + /// Interface for conditional tasks. + /// + [ReflectedType(typeof(bool))] + [ObjectName("Conditionals")] + public interface IConditional { } + + /// + /// Interface for reference-based conditional tasks that can be reevaluated. + /// + public interface IConditionalReevaluation + { + /// + /// Reevaluates the task logic. Returns a TaskStatus indicating how the behavior tree flow should proceed. + /// + /// The status of the task during the reevaluation phase. + public TaskStatus OnReevaluateUpdate(); + } + + /// + /// Interface for decorator tasks. + /// + [ObjectName("Decorators")] + public interface IDecorator { } + + /// + /// Interface which specifies the IComponentData is a task. + /// + public interface ITaskComponentData + { + /// + /// The type of tag that should be enabled when the task is running. + /// + public ComponentType Tag { get; } + + /// + /// The system type that the component uses. + /// + public System.Type SystemType { get; } + + /// + /// Adds the IBufferElementData to the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be assigned to. + public void AddBufferElement(World world, Entity entity); + + /// + /// Clears the IBufferElementData from the entity. + /// + /// The world that the entity exists. + /// The entity that the IBufferElementData should be cleared from. + public void ClearBufferElement(World world, Entity entity); + } + + /// + /// Interface describing tasks that can be reevaluated. + /// + public interface IReevaluateResponder + { + /// + /// The type of tag that should be enabled when the task is being reevaluated. + /// + public ComponentType ReevaluateTag { get; } + + /// + /// The system type that the reevaluation component uses. + /// + public System.Type ReevaluateSystemType { get; } + } + + /// + /// Interface describing tasks that can respond to interruptions. + /// + public interface IInterruptResponder + { + /// + /// The system type that the interrupt component uses. + /// + public System.Type InterruptSystemType { get; } + } + + /// + /// Represents a task that can be saved and restored later. + /// + public interface ISavableTask + { + /// + /// Specifies the type of reflection that should be used to save the task. + /// + /// The index of the sub-task. This is used for the task set allowing each contained task to have their own save type. + public MemberVisibility GetSaveReflectionType(int index); + + /// + /// Returns the current task state. + /// + /// The DOTS world. + /// The DOTS entity. + /// The current task state. + public object Save(World world, Entity entity) { return null; } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + public void Load(object saveData, World world, Entity entity) { } + + /// + /// Loads the previous task state. + /// + /// The previous task state. + /// The DOTS world. + /// The DOTS entity. + /// A reference to the map between the VariableAssignment and SharedVariable. + /// A reference to the list of task references that need to be resolved later. + public void Load(object saveData, World world, Entity entity, Dictionary variableByNameMap, + ref ResizableArray taskReferences) { Load(saveData, world, entity); } + } + + /// + /// Represents a task that can be paused and resumed later. + /// + public interface IPausableTask + { + /// + /// The task has been paused. + /// + /// The DOTS world. + /// The DOTS entity. + public void Pause(World world, Entity entity); + + /// + /// The task has been resumed. + /// + /// The DOTS world. + /// The DOTS entity. + public void Resume(World world, Entity entity); + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs.meta new file mode 100644 index 000000000..842a04418 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 8ec88a004de82ad4d9307c474fd1e828 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskInterfaces.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs new file mode 100644 index 000000000..896844d6b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs @@ -0,0 +1,20 @@ +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- + +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + /// + /// The execution status of the task. + /// + public enum TaskStatus : byte + { + Inactive, // The task is inactive and is not running. + Queued, // The task will run on the next update. + Running, // The task is currently running. + Success, // The task succeeded execution. + Failure, // The task failed execution. + } +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs.meta new file mode 100644 index 000000000..6c90f907e --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 3b2fb3205262cd24c95aac6d0665a689 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/TaskStatus.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs new file mode 100644 index 000000000..c404b5355 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs @@ -0,0 +1,107 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Tasks +{ + using Opsive.BehaviorDesigner.Runtime.Tasks.Actions; + using Opsive.BehaviorDesigner.Runtime.Tasks.Composites; + using Opsive.GraphDesigner.Runtime; + using Opsive.Shared.Utility; + using UnityEngine; + + /// + /// Represents a task node that can no longer be found. + /// + [HideInFilterWindow] + public class UnknownTaskNode : ActionNode + { + private string m_UnknownType; + + /// + /// Default constructor. + /// + public UnknownTaskNode() { } + + /// + /// UnknownTaskNode constructor. + /// + /// The type that cannot be found. + public UnknownTaskNode(string unknownType) + { + m_UnknownType = unknownType; + } + + /// + /// Called once when the behavior tree is initialized. + /// + public override void OnAwake() + { + base.OnAwake(); + + Debug.LogWarning($"Warning: Unable to find the task of type {m_UnknownType}. An unknown task has been replaced with it."); + } + } + + /// + /// Represents a task that can no longer be found. + /// + [HideInFilterWindow] + public class UnknownTask : Action + { + /// + /// Called once when the behavior tree is initialized. + /// + public override void OnAwake() + { + base.OnAwake(); + + Debug.LogWarning($"Warning: Unable to find the original task. An unknown task has been replaced with it."); + } + } + + /// + /// Represents a parent task node that can no longer be found. + /// + [HideInFilterWindow] + public class UnknownParentTaskNode : CompositeNode + { + private string m_UnknownType; + + /// + /// Default constructor. + /// + public UnknownParentTaskNode() { } + + /// + /// UnknownParentTaskNode constructor. + /// + /// The type that cannot be found. + public UnknownParentTaskNode(string unknownType) + { + m_UnknownType = unknownType; + } + + /// + /// Called once when the behavior tree is initialized. + /// + public override void OnAwake() + { + base.OnAwake(); + + Debug.LogWarning($"Warning: Unable to find the task of type {m_UnknownType}. An unknown task has been replaced with it."); + } + } + + /// + /// Represents an event node that can no longer be found. + /// + [HideInFilterWindow] + public class UnknownEventTask : IEventNode + { + public ushort ConnectedIndex { get => ushort.MaxValue; set { } } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs.meta new file mode 100644 index 000000000..727da4786 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 291d6f08a99331f48b9f7967ec344afd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Tasks/UnknownTasks.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility.meta b/Packages/com.opsive.behaviordesigner/Runtime/Utility.meta new file mode 100644 index 000000000..244736ec5 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 863e492baa6c6c84e9b200e8e99f575b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs b/Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs new file mode 100644 index 000000000..e00b118de --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs @@ -0,0 +1,31 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Utility +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Unity.Entities; + + /// + /// Utility functions that are used throughout the behavior tree execution. + /// + public static class ComponentUtility + { + /// + /// Adds the components necessary in order to trigger an interrupt. + /// + /// The EntityManager that the entity belongs to. + /// The entity that should have the components added. + public static void AddInterruptComponents(EntityManager entityManager, Entity entity) + { + entityManager.AddComponent(entity); + entityManager.SetComponentEnabled(entity, false); + entityManager.AddComponent(entity); + entityManager.SetComponentEnabled(entity, false); + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs.meta new file mode 100644 index 000000000..dfc9c0799 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 1bfee368f88aa6e4a81281d10c71072d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Utility/ComponentUtility.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs b/Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs new file mode 100644 index 000000000..a6dd294bf --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs @@ -0,0 +1,650 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Utility +{ + using Opsive.BehaviorDesigner.Runtime; + using Opsive.BehaviorDesigner.Runtime.Components; + using Opsive.BehaviorDesigner.Runtime.Tasks; + using Opsive.GraphDesigner.Runtime.Variables; + using Opsive.Shared.Utility; + using System; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using Unity.Entities; + using UnityEngine; + using static Opsive.BehaviorDesigner.Runtime.BehaviorTreeData; + + /// + /// Helper class which will save and load behavior tree tasks. + /// + public static class SaveManager + { + /// + /// Specifies which objects should be saved. + /// + public enum VariableSaveScope : byte + { + GameObjectVariables = 1, // Saves the GameObjectVariables. + SceneVariables = 2, // Saves the SceneVariables. + ProjectVariables = 4 // Saves the ProjectVariables. + } + + /// + /// The save data associated with the behavior tree and shared variables. + /// + [System.Serializable] + public struct SaveData + { + [Tooltip("The behavior tree save data.")] + public BehaviorTreeSaveData[] BehaviorTreeSaveData; + [Tooltip("The external shared variable save data.")] + public VariableSaveData[] VariableSaveData; + } + + /// + /// The save data associated with the behavior tree. + /// + [System.Serializable] + public struct BehaviorTreeSaveData + { + [Tooltip("The unique ID of the save data. This will change each time the data is serialized")] + public int UniqueID; + [Tooltip("The loaded task components.")] + public Serialization[] TaskComponents; + [Tooltip("The loaded branch components.")] + public Serialization[] BranchComponents; + [Tooltip("The loaded reevaluate task components.")] + public Serialization[] ReevaluateTaskComponents; + [Tooltip("The user task data.")] + public TaskSaveData[] TaskData; + [Tooltip("The values of the graph SharedVariables.")] + public VariableSaveData GraphSharedVariables; + } + + /// + /// The save data associated with the shared variables. + /// + [System.Serializable] + public struct VariableSaveData + { + [Tooltip("The unique ID of the variable data. This will change each time the data is serialized")] + public int UniqueID; + [Tooltip("The values of the SharedVariables.")] + public Serialization[] Values; + [Tooltip("The scope of the variables.")] + public SharedVariable.SharingScope Scope; + } + + /// + /// Container for the task save data. Allows for nested tasks. + /// + [System.Serializable] + public struct TaskSaveData + { + [Tooltip("The save data associated with each task.")] + public Serialization[] Value; + } + + /// + /// Gets the save data from the specified behavior trees. + /// + /// The behavior trees that should be saved. + /// Specifies which variables should be saved. Graph variables will automatically be saved. + /// The resulting save data. Can be null. + public static SaveData? Save(BehaviorTree[] behaviorTrees, VariableSaveScope variableSaveScope = 0) + { + if (!Application.isPlaying) { + Debug.LogWarning($"Warning: Behavior trees can only be saved at runtime."); + return null; + } + + if (behaviorTrees.Length == 0) { + return null; + } + + // Assume all behavior trees can be saved. + var saveData = new SaveData(); + saveData.BehaviorTreeSaveData = new BehaviorTreeSaveData[behaviorTrees.Length]; + var variableSaveDataList = new List(); + HashSet savedGameObjectVariables = null; + var behaviorTreeSaveCount = 0; + for (int i = 0; i < behaviorTrees.Length; ++i) { + if (behaviorTrees[i] == null) { + continue; + } + + // Add the save data to the array if the save is valid. + var behaviorTreeSaveData = Save(behaviorTrees[i]); + if (behaviorTreeSaveData.HasValue) { + saveData.BehaviorTreeSaveData[behaviorTreeSaveCount] = behaviorTreeSaveData.Value; + behaviorTreeSaveCount++; + + // The associated GameObject variables may also need to be saved. + if ((variableSaveScope & VariableSaveScope.GameObjectVariables) != 0) { + // Only save the GameObject variables once. + if (savedGameObjectVariables == null) { + savedGameObjectVariables = new HashSet(); + } + + if (savedGameObjectVariables.Contains(behaviorTrees[i].gameObject)) { + continue; + } + savedGameObjectVariables.Add(behaviorTrees[i].gameObject); + + // The GameObject variables can be saved. + var gameObjectSharedVariables = behaviorTrees[i].gameObject.GetComponent(); + if (gameObjectSharedVariables != null) { + var variableSaveData = Save(gameObjectSharedVariables); + if (variableSaveData.HasValue) { + variableSaveDataList.Add(variableSaveData.Value); + } + } + } + } + } + + // Not all behavior trees can be saved. + if (behaviorTrees.Length != behaviorTreeSaveCount) { + var behaviorTreesSaveData = saveData.BehaviorTreeSaveData; + System.Array.Resize(ref behaviorTreesSaveData, behaviorTreeSaveCount); + saveData.BehaviorTreeSaveData = behaviorTreesSaveData; + } + + // The scene variables can be saved. + if ((variableSaveScope & VariableSaveScope.SceneVariables) != 0) { + if (SceneSharedVariables.Instance != null) { + var variableSaveData = Save(SceneSharedVariables.Instance); + if (variableSaveData.HasValue) { + variableSaveDataList.Add(variableSaveData.Value); + } + } + } + + // The project variables can be saved. + if ((variableSaveScope & VariableSaveScope.ProjectVariables) != 0) { + if (ProjectSharedVariables.Instance != null) { + var variableSaveData = Save(ProjectSharedVariables.Instance); + if (variableSaveData.HasValue) { + variableSaveDataList.Add(variableSaveData.Value); + } + } + } + + // There has to be something to be saved. + if (behaviorTreeSaveCount == 0 && variableSaveDataList.Count == 0) { + return null; + } + + // Persist the variable save data. + if (variableSaveDataList != null && variableSaveDataList.Count > 0) { + saveData.VariableSaveData = variableSaveDataList.ToArray(); + } + + return saveData; + } + + /// + /// Saves the save data from the specified behavior trees to the specified file. + /// + /// The behavior trees that should be saved. + /// The save data path. + /// Specifies which variables should be saved. Graph variables will automatically be saved. + /// True if at least one behavior tree's save data was saved. + public static bool Save(BehaviorTree[] behaviorTrees, string filePath, VariableSaveScope variableSaveScope = 0) + { + var saveData = Save(behaviorTrees, variableSaveScope); + if (!saveData.HasValue) { + return false; + } + + // Save the save data. + if (File.Exists(filePath)) { + File.Delete(filePath); + } + try { + if (!Directory.Exists(Path.GetDirectoryName(filePath))) { + Directory.CreateDirectory(Path.GetDirectoryName(filePath)); + } + var fileStream = File.Create(filePath); + using (var streamWriter = new StreamWriter(fileStream)) { + streamWriter.Write(JsonUtility.ToJson(saveData)); + } + fileStream.Close(); + } catch (System.Exception e) { + Debug.LogException(e); + return false; + } + + return true; + } + + /// + /// Returns the save data associated with the behavior tree. + /// + /// The behavior tree that should be saved. + /// The save data associated with the behavior tree. + private static BehaviorTreeSaveData? Save(BehaviorTree behaviorTree) + { + if (behaviorTree.Entity.Index == 0) { + Debug.LogWarning($"Warning: The behavior tree {behaviorTree.name} must be active in order to be saved.", behaviorTree); + return null; + } + + if (behaviorTree.LogicNodes == null || behaviorTree.LogicNodes.Length == 0) { + Debug.LogWarning($"Warning: The behavior tree {behaviorTree.name} must have tasks in order to be saved.", behaviorTree); + return null; + } + + // The current task status must be serialized. + var taskComponents = behaviorTree.World.EntityManager.GetBuffer(behaviorTree.Entity); + var serializedTaskComponents = new Serialization[taskComponents.Length]; + for (int i = 0; i < taskComponents.Length; ++i) { + serializedTaskComponents[i] = Serialization.Serialize(taskComponents[i]); + } + + // The branch info must be serialized. + var branchComponents = behaviorTree.World.EntityManager.GetBuffer(behaviorTree.Entity); + var serializedBranchComponents = new Serialization[branchComponents.Length]; + for (int i = 0; i < branchComponents.Length; ++i) { + serializedBranchComponents[i] = Serialization.Serialize(branchComponents[i]); + } + + // The reevaluation status must be serialized. + Serialization[] serializedReevaluateTaskComponents = null; + if (behaviorTree.World.EntityManager.HasBuffer(behaviorTree.Entity)) { + var reevaluateTaskComponents = behaviorTree.World.EntityManager.GetBuffer(behaviorTree.Entity); + serializedReevaluateTaskComponents = new Serialization[reevaluateTaskComponents.Length]; + for (int i = 0; i < reevaluateTaskComponents.Length; ++i) { + serializedReevaluateTaskComponents[i] = Serialization.Serialize(reevaluateTaskComponents[i]); + } + } + + // Each task can serialize their own data. + var tasks = behaviorTree.LogicNodes; + var serializedTaskData = new List(); + for (int i = 0; i < tasks.Length; ++i) { + if (!(tasks[i] is ISavableTask)) { + continue; + } + + var saveableTask = tasks[i] as ISavableTask; + var reflectionType = saveableTask.GetSaveReflectionType(-1); + if (reflectionType != MemberVisibility.None) { + var serializedData = Serialization.Serialize(saveableTask, reflectionType, BehaviorTreeData.ValidateSerializedObject); + serializedTaskData.Add(new TaskSaveData() { Value = new Serialization[] { serializedData } }); + } else { + var taskData = saveableTask.Save(behaviorTree.World, behaviorTree.Entity); + if (taskData == null) { + continue; + } + + // Tasks can contain more tasks. Serialize each task element separately. + if (typeof(IList).IsAssignableFrom(taskData.GetType())) { + var taskDataList = taskData as IList; + var taskSaveData = new Serialization[taskDataList.Count]; + for (int j = 0; j < taskDataList.Count; ++j) { + if (taskDataList[j] is Serialization) { + taskSaveData[j] = taskDataList[j] as Serialization; + } else { + taskSaveData[j] = Serialization.Serialize(taskDataList[j]); + } + } + + serializedTaskData.Add(new TaskSaveData() { Value = taskSaveData }); + } else { + var serializedValue = new Serialization[] { (taskData is Serialization) ? (taskData as Serialization) : Serialization.Serialize(taskData) }; + serializedTaskData.Add(new TaskSaveData() { Value = serializedValue }); + } + } + } + + var behaviorTreeSaveData = new BehaviorTreeSaveData() { + UniqueID = behaviorTree.UniqueID, + TaskComponents = serializedTaskComponents, + BranchComponents = serializedBranchComponents, + ReevaluateTaskComponents = serializedReevaluateTaskComponents, + TaskData = serializedTaskData.ToArray(), + }; + var variableSaveData = Save(behaviorTree as ISharedVariableContainer); + if (variableSaveData.HasValue) { + behaviorTreeSaveData.GraphSharedVariables = variableSaveData.Value; + } + return behaviorTreeSaveData; + } + + /// + /// Returns the save data associated with the variable container. + /// + /// The variable container that should be saved. + /// The save data associated with the variable container. + private static VariableSaveData? Save(ISharedVariableContainer variableContainer) + { + if (variableContainer == null) { + return null; + } + + var sharedVariables = variableContainer.SharedVariables; + if (sharedVariables == null || sharedVariables.Length == 0) { + return null; + } + + Serialization[] serializedSharedVariablesData = null; + if (sharedVariables != null) { + serializedSharedVariablesData = new Serialization[sharedVariables.Length]; + for (int i = 0; i < sharedVariables.Length; ++i) { + serializedSharedVariablesData[i] = Serialization.Serialize(sharedVariables[i].GetValue(), BehaviorTreeData.ValidateSerializedObject); + } + } + + return new VariableSaveData() { + UniqueID = variableContainer.UniqueID, + Values = serializedSharedVariablesData, + Scope = variableContainer.VariableScope + }; + } + + /// + /// Loads the save data contained within the specified file. + /// + /// The behavior trees that should be loaded. + /// The save data path. + /// Optional callback after the graph variables have been restored. + /// True if at least one behavior tree's save data was loaded. + public static bool Load(BehaviorTree[] behaviorTrees, string filePath, Action afterVariablesRestored = null) + { + if (!Application.isPlaying) { + Debug.LogWarning($"Warning: Behavior trees can only be loaded at runtime."); + return false; + } + + if (!File.Exists(filePath)) { + Debug.LogWarning($"Warning: The file at path {filePath} does not exist."); + return false; + } + + var fileStream = File.Open(filePath, FileMode.Open); + var saveData = new SaveData(); + using (var streamReader = new StreamReader(fileStream)) { + var fileData = streamReader.ReadToEnd(); + saveData = JsonUtility.FromJson(fileData); + } + fileStream.Close(); + + return Load(behaviorTrees, saveData, afterVariablesRestored); + } + + /// + /// Loads the save data. + /// + /// The behavior trees that should be loaded. + /// The loaded save data. + /// Optional callback after the graph variables have been restored. + /// True if at least one behavior tree's save data was loaded. + public static bool Load(BehaviorTree[] behaviorTrees, SaveData saveData, Action afterVariablesRestored = null) + { + // Load the shared variables before the behavior trees so the trees can reference the variables. + var loadedSceneVariables = false; + var loadedProjectVariables = false; + var loadCount = 0; + Dictionary variableSaveDataByID = null; + if (saveData.VariableSaveData != null && saveData.VariableSaveData.Length > 0) { + // The save data is unique to the variable container specified by the unique ID. + for (int i = 0; i < saveData.VariableSaveData.Length; ++i) { + // Remember the scope to determine if the variable scope needs to be checked again when loading. + if (saveData.VariableSaveData[i].Scope == SharedVariable.SharingScope.GameObject) { + // The GameObject SharedVariables will be loaded with the behavior tree. + if (variableSaveDataByID == null) { + variableSaveDataByID = new Dictionary(); + } + variableSaveDataByID.Add(saveData.VariableSaveData[i].UniqueID, saveData.VariableSaveData[i]); + } else if (saveData.VariableSaveData[i].Scope == SharedVariable.SharingScope.Scene) { + // Restore the SceneSharedVariables if it hasn't already been loaded. + if (!loadedSceneVariables) { + if (SceneSharedVariables.Instance != null) { + if (Load(SceneSharedVariables.Instance, saveData.VariableSaveData[i])) { + loadCount++; + } + } + loadedSceneVariables = true; + } + } else if (saveData.VariableSaveData[i].Scope == SharedVariable.SharingScope.Project) { + // Restore the ProjectSharedVariables if it hasn't already been loaded. + if (!loadedProjectVariables) { + if (ProjectSharedVariables.Instance != null) { + if (Load(ProjectSharedVariables.Instance, saveData.VariableSaveData[i])) { + loadCount++; + } + } + } + } + } + } + + if (saveData.BehaviorTreeSaveData != null && saveData.BehaviorTreeSaveData.Length > 0) { + // The save data is unique to the behavior tree specified by the unique ID. + var behaviorTreeSaveDataByID = new Dictionary(); + for (int i = 0; i < saveData.BehaviorTreeSaveData.Length; ++i) { + behaviorTreeSaveDataByID.Add(saveData.BehaviorTreeSaveData[i].UniqueID, saveData.BehaviorTreeSaveData[i]); + } + + // Load the save data for each behavior tree. + for (int i = 0; i < behaviorTrees.Length; ++i) { + var behaviorTree = behaviorTrees[i]; + if (behaviorTreeSaveDataByID.TryGetValue(behaviorTree.UniqueID, out var behaviorTreeSaveData)) { + // Restore the GameObjectSharedVariables if they haven't already been restored. + if (variableSaveDataByID != null) { + var gameObjectSharedVariables = behaviorTree.GetComponent(); + if (gameObjectSharedVariables != null) { + if (variableSaveDataByID.TryGetValue(gameObjectSharedVariables.UniqueID, out var variableSaveData)) { + if (Load(gameObjectSharedVariables, variableSaveData)) { + loadCount++; + } + // Remove the ID after it has been loaded so the variables aren't loaded again. This can happen if multiple + // trees on the same GameObject reference the same GameObject variable. + variableSaveDataByID.Remove(gameObjectSharedVariables.UniqueID); + } + } + } + + // Restore the Graph SharedVariables. + if (Load(behaviorTree, behaviorTreeSaveData.GraphSharedVariables)) { + loadCount++; + } + + // Callback after the variables have been restored. + afterVariablesRestored?.Invoke(behaviorTree); + + // Populate the variables in an internal mapping for quick lookup. + var variableByNameMap = BehaviorTreeData.PopulateSharedVariablesMapping(behaviorTree, true); + + // Restore the tree after the variables have been restored. + if (Load(behaviorTree, behaviorTreeSaveData, afterVariablesRestored, variableByNameMap)) { + loadCount++; + } + } + } + } + + return loadCount > 0; + } + + /// + /// Loads the behavior tree from the specified save data. + /// + /// The behavior tree that should be restored. + /// The save data associated with the behavior tree. + /// Optional callback after the graph variables have been restored. + /// A mapping between the variable name and the variable reference. + /// True if the behavior tree was successfully loaded. + private static bool Load(BehaviorTree behaviorTree, BehaviorTreeSaveData saveData, Action afterVariablesRestored, Dictionary variableByNameMap) + { + // The ID must match. + if (behaviorTree.UniqueID != saveData.UniqueID) { + Debug.LogError($"Error: The behavior tree {behaviorTree.name} cannot be loaded due to being saved in a different version of the behavior tree."); + return false; + } + + // The behavior tree must be initialized in order to be loaded. + if (!behaviorTree.InitializeTree()) { + return false; + } + + // Stop the behavior tree so all tasks issue their end callback. + var enableEntity = behaviorTree.World.EntityManager.HasComponent(behaviorTree.Entity) && behaviorTree.World.EntityManager.IsComponentEnabled(behaviorTree.Entity); + var evaluateEntity = behaviorTree.World.EntityManager.HasComponent(behaviorTree.Entity) && behaviorTree.World.EntityManager.IsComponentEnabled(behaviorTree.Entity); + var active = behaviorTree.IsActive(); + if (active) { + behaviorTree.StopBehavior(); + } + + // Restore the task component status. + var taskComponents = behaviorTree.World.EntityManager.GetBuffer(behaviorTree.Entity); + for (int i = 0; i < saveData.TaskComponents.Length; ++i) { + taskComponents[i] = (TaskComponent)saveData.TaskComponents[i].DeserializeFields(MemberVisibility.Public); + } + + var branchComponents = behaviorTree.World.EntityManager.GetBuffer(behaviorTree.Entity); + // Restore the branch info components. + for (int i = 0; i < saveData.BranchComponents.Length; ++i) { + branchComponents[i] = (BranchComponent)saveData.BranchComponents[i].DeserializeFields(MemberVisibility.Public); + if (branchComponents[i].ActiveTagComponentType.TypeIndex == TypeIndex.Null) { + continue; + } + behaviorTree.World.EntityManager.SetComponentEnabled(behaviorTree.Entity, branchComponents[i].ActiveTagComponentType, true); + } + + if (behaviorTree.World.EntityManager.HasBuffer(behaviorTree.Entity)) { + var reevaluatedTaskComponents = behaviorTree.World.EntityManager.GetBuffer(behaviorTree.Entity); + // Restore the reevaluated components. + for (int i = 0; i < saveData.ReevaluateTaskComponents.Length; ++i) { + reevaluatedTaskComponents[i] = (ReevaluateTaskComponent)saveData.ReevaluateTaskComponents[i].DeserializeFields(MemberVisibility.Public); + if (reevaluatedTaskComponents[i].ReevaluateTagComponentType.TypeIndex == TypeIndex.Null) { + continue; + } + behaviorTree.World.EntityManager.SetComponentEnabled(behaviorTree.Entity, reevaluatedTaskComponents[i].ReevaluateTagComponentType, true); + } + } + + // Each task can serialize their own data. + var tasks = behaviorTree.LogicNodes; + var saveDataIndex = 0; + ResizableArray taskReferences = null; + for (int i = 0; i < tasks.Length; ++i) { + if (!(tasks[i] is ISavableTask)) { + if (tasks[i] is Task) { + (tasks[i] as Task).Initialize(behaviorTree, (ushort)i); + } + continue; + } + + var taskSaveData = saveData.TaskData[saveDataIndex]; + saveDataIndex++; + if (taskSaveData.Value == null || taskSaveData.Value.Length == 0) { + if (tasks[i] is Task) { + (tasks[i] as Task).Initialize(behaviorTree, (ushort)i); + } + continue; + } + + var saveableTask = tasks[i] as ISavableTask; + var reflectionType = saveableTask.GetSaveReflectionType(-1); + if (reflectionType != MemberVisibility.None) { + taskSaveData.Value[0].DeserializeFields(saveableTask, saveableTask.GetSaveReflectionType(0), BehaviorTreeData.ValidateDeserializedTypeObject, + (object fieldInfoObj, object task, object value) => + { + return BehaviorTreeData.ValidateDeserializedObject(fieldInfoObj, task, value, ref variableByNameMap, ref taskReferences); + }); + } else { + if (taskSaveData.Value.Length == 1) { + if (saveableTask.GetSaveReflectionType(0) != MemberVisibility.None) { + saveableTask.Load(taskSaveData.Value[0], behaviorTree.World, behaviorTree.Entity, variableByNameMap, ref taskReferences); + } else { + saveableTask.Load(taskSaveData.Value[0].DeserializeFields(MemberVisibility.Public, BehaviorTreeData.ValidateDeserializedTypeObject, + (object fieldInfoObj, object task, object value) => + { + return BehaviorTreeData.ValidateDeserializedObject(fieldInfoObj, task, value, ref variableByNameMap, ref taskReferences); + }), behaviorTree.World, behaviorTree.Entity, variableByNameMap, ref taskReferences); + } + } else { + var taskData = new object[taskSaveData.Value.Length]; + for (int j = 0; j < taskSaveData.Value.Length; ++j) { + if (taskSaveData.Value[j] == null) { + continue; + } + + if (saveableTask.GetSaveReflectionType(j) != MemberVisibility.None) { + // The task is responsible for deserializing the fields. + taskData[j] = taskSaveData.Value[j]; + } else { + taskData[j] = taskSaveData.Value[j].DeserializeFields(MemberVisibility.Public, BehaviorTreeData.ValidateDeserializedTypeObject, + (object fieldInfoObj, object task, object value) => + { + return BehaviorTreeData.ValidateDeserializedObject(fieldInfoObj, task, value, ref variableByNameMap, ref taskReferences); + }); + } + } + saveableTask.Load(taskData, behaviorTree.World, behaviorTree.Entity, variableByNameMap, ref taskReferences); + } + } + if (tasks[i] is Task) { + (tasks[i] as Task).Initialize(behaviorTree, (ushort)i); + } + } + + // After the tree has been loaded the task references need to be assigned. + BehaviorTreeData.AssignTaskReferences(behaviorTree.LogicNodes, taskReferences); + + if (active) { + behaviorTree.StartBehavior(); + } + if (enableEntity) { + behaviorTree.World.EntityManager.SetComponentEnabled(behaviorTree.Entity, true); + } + if (evaluateEntity) { + behaviorTree.World.EntityManager.SetComponentEnabled(behaviorTree.Entity, true); + } + + return true; + } + + /// + /// Loads the variable from the specified file path. + /// + /// The variable container that should be restored. + /// The save data associated with the variable container. + /// True if the variable container was successfully loaded. + private static bool Load(ISharedVariableContainer variableContainer, VariableSaveData saveData) + { + // There may not be any variables saved. + if (saveData.UniqueID == 0) { + return false; + } + + // The ID must match. + if (variableContainer.UniqueID != saveData.UniqueID) { + Debug.LogError($"Error: The variables {variableContainer} cannot be loaded due to being saved in a different version of the variable container."); + return false; + } + + var sharedVariables = variableContainer.SharedVariables; + if (sharedVariables != null) { + for (int i = 0; i < saveData.Values.Length; ++i) { + if (saveData.Values[i] == null) { + continue; + } + + var sharedVariableValue = saveData.Values[i].DeserializeFields(MemberVisibility.Public); + sharedVariables[i].SetValue(sharedVariableValue); + } + } + + return true; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs.meta new file mode 100644 index 000000000..4d16ae9ee --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 6c5777d50e5756a4b85d335f81c9d301 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Utility/SaveManager.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs b/Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs new file mode 100644 index 000000000..d8fd903f0 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs @@ -0,0 +1,104 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Utility +{ + using Opsive.BehaviorDesigner.Runtime.Components; + using Unity.Burst; + using Unity.Entities; + + /// + /// Utility functions that are used throughout the behavior tree execution. + /// + [BurstCompile] + public static class TraversalUtility + { + /// + /// Returns true if the specified index is a child of the parent index. + /// + /// The index to determine if it is a child. + /// The index of the parent. + /// The array of nodes. + /// True if the specified index is a child of the parent index. + [BurstCompile] + public static bool IsParent(ushort index, ushort parentIndex, ref DynamicBuffer taskComponents) + { + if (parentIndex == ushort.MaxValue || index == ushort.MaxValue) { + return false; + } + + // The child can be considered a parent of itself. + if (parentIndex == index) { + return true; + } + + // Return true as soon as there is a parent. + while (index != ushort.MaxValue) { + if (index == parentIndex) { + return true; + } + + index = taskComponents[index].ParentIndex; + } + + return false; + } + + /// + /// Returns the total number of children belonging to the specified node. + /// + /// The index of the task to retrieve the child count of. + /// The array of nodes. + /// The total number of children belonging to the specified node. + public static int GetChildCount(int index, ref DynamicBuffer taskComponents) + { + var taskComponent = taskComponents[index]; + if (taskComponent.SiblingIndex != ushort.MaxValue) { + return taskComponent.SiblingIndex - taskComponent.Index - 1; + } + + if (taskComponent.Index + 1 == taskComponents.Length) { + return 0; + } + + var childTaskComponent = taskComponents[taskComponent.Index + 1]; + if (childTaskComponent.ParentIndex != taskComponent.Index) { + return 0; + } + + // Determine the child count based off of the sibling index. + var lastChildTaskComponent = childTaskComponent; + while (childTaskComponent.ParentIndex == taskComponent.Index) { + lastChildTaskComponent = childTaskComponent; + if (childTaskComponent.SiblingIndex == ushort.MaxValue) { + break; + } + childTaskComponent = taskComponents[childTaskComponent.SiblingIndex]; + } + + return lastChildTaskComponent.Index - taskComponent.Index + GetChildCount(lastChildTaskComponent.Index, ref taskComponents); + } + + /// + /// Returns the immediate number of children belonging to the specified task. + /// + /// The task to retrieve the children of. + /// The list of tasks. + /// The number of immediate children belonging to the specified task. + [BurstCompile] + public static int GetImmediateChildCount(ref TaskComponent task, ref DynamicBuffer taskComponents) + { + var count = 0; + var siblingIndex = task.Index + 1; + while (siblingIndex < taskComponents.Length && taskComponents[siblingIndex].ParentIndex == task.Index) { + count++; + siblingIndex = taskComponents[siblingIndex].SiblingIndex; + } + return count; + } + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs.meta new file mode 100644 index 000000000..c2f581850 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: be274f359e2db764998eb36f2adeaed9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Utility/TraversalUtility.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs b/Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs new file mode 100644 index 000000000..d3906be66 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs @@ -0,0 +1,42 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Behavior Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.BehaviorDesigner.Runtime.Utility +{ + using UnityEngine; + using System; + + /// + /// Specifies a range between two floats. + /// + public struct RangeFloat + { + [Tooltip("The minimal float value (inclusive).")] + [SerializeField] public float Min; + [Tooltip("The maximum float value (inclusive).")] + [SerializeField] public float Max; + + public float RandomValue { get => UnityEngine.Random.Range(Min, Max); } + + /// + /// RangeFloat constructor. + /// + /// The minimal float value. + /// The maximal float value. + public RangeFloat(float min, float max) + { + Min = min; + Max = max; + } + } + + /// + /// Specifies that the task name should be hidden in the node view. + /// + [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] + public class HideNameInTaskControlAttribute : Attribute { } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs.meta b/Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs.meta new file mode 100644 index 000000000..999a6833b --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 9d76db679b119fe4c9359f9b9b0c2869 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/Runtime/Utility/Types.cs + uploadId: 775358 diff --git a/Packages/com.opsive.behaviordesigner/package.json b/Packages/com.opsive.behaviordesigner/package.json new file mode 100644 index 000000000..71f35ec38 --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/package.json @@ -0,0 +1,25 @@ +{ + "name": "com.opsive.behaviordesigner", + "version": "2.0.14", + "displayName": "Opsive Behavior Designer", + "description": "A behavior tree implementation based on DOTS.", + "documentationUrl": "https://opsive.com/support/documentation/behavior-designer-pro/", + "author": { + "name": "Opsive", + "email": "support@opsive.com", + "url": "https://opsive.com" + }, + "dependencies": { + "com.opsive.shared": "2.0.0", + "com.opsive.graphdesigner": "2.0.0", + "com.unity.burst": "1.8.17", + "com.unity.entities": "1.3.8" + }, + "samples": [ + { + "displayName": "Sample", + "description": "Sample scenes that show a variety of use cases.", + "path": "Samples~" + } + ] +} \ No newline at end of file diff --git a/Packages/com.opsive.behaviordesigner/package.json.meta b/Packages/com.opsive.behaviordesigner/package.json.meta new file mode 100644 index 000000000..b2b43423c --- /dev/null +++ b/Packages/com.opsive.behaviordesigner/package.json.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: af982e6bd82bf7b4893755d01662c156 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.behaviordesigner/package.json + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor.meta b/Packages/com.opsive.graphdesigner/Editor.meta new file mode 100644 index 000000000..3454001c2 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5f862ea8037f541498912dd8365bd3bf +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons.meta b/Packages/com.opsive.graphdesigner/Editor/Icons.meta new file mode 100644 index 000000000..3ef012fa3 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 930549fb15ba63d4bbf4c133a2f69935 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png new file mode 100644 index 000000000..567ea72d4 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91833f833e2480be3b2acdfd4436894b49f9b89c98e8f52a2a77ffc7318377e6 +size 193 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png.meta new file mode 100644 index 000000000..f326dc6e6 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: cdb98bbb15f100a4d8b40593bc019371 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/DropdownDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png new file mode 100644 index 000000000..806bfe082 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8076bb1eb7b11ebb8e4cf76dcedfdc566d5513e1e65ad0165e9a1ad296ea298 +size 206 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png.meta new file mode 100644 index 000000000..1d61f107e --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 6a83fed5a11b95442a2e3696aee90362 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/DropdownLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/Error.png b/Packages/com.opsive.graphdesigner/Editor/Icons/Error.png new file mode 100644 index 000000000..f1824d9c0 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/Error.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4220b847d1c63a4bd05adbffcda40fe1eec4792dd1f30ee10a2ba6c72d59a57 +size 290 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/Error.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/Error.png.meta new file mode 100644 index 000000000..102cf93ce --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/Error.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: ab49f94fad9f0de4993b7c6bf2ea6566 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/Error.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png new file mode 100644 index 000000000..616e536ee --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e0cf6830e7ac33ba076394577547d601d7317a5a7c8c5549f5ce284c24426f2 +size 285 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png.meta new file mode 100644 index 000000000..c644a2b48 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: a6830915f96702642a40e27fac81aa6f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/GearDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png new file mode 100644 index 000000000..a08cba7db --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2270e1f3a70aaac0a2be100b6bbc4ab69fa2927627ee79a94a9e07ffb3c244e0 +size 316 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png.meta new file mode 100644 index 000000000..4fb4b345b --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: d8f201654be27a241b5d6e2d557f9ef9 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/GearLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png new file mode 100644 index 000000000..181889f0f --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ece5cc891fb10c73a91d0ec769a7df8b8830237c79803364e79fa87ba862c5e +size 207 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png.meta new file mode 100644 index 000000000..31e2e7232 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: e3dd7165ff2ab494e9b11d88c64e2255 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png new file mode 100644 index 000000000..b50dbf369 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b42a18bf868eb59f34d19ec0ed34a92745271e3cd3aa8615bd21445d1e24c14 +size 207 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png.meta new file mode 100644 index 000000000..fa87f1782 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 9bd54e2c55410bc4b9a189d8cfee42d8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/IdentifyLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png new file mode 100644 index 000000000..7b1149b71 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e1a3240ff52597fa984d297c5a6f5a7ea675465557f46d9bde522f304fada22 +size 216 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png.meta new file mode 100644 index 000000000..4e0a56160 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 028a6f307f961ba418986f24288148bb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png new file mode 100644 index 000000000..5a0ee8b0c --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6c0e3c1e8232fc9729265ac3a51b1453c4deb79e89f8836e0e2a839bd8dcaa6 +size 216 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png.meta new file mode 100644 index 000000000..feb1d6435 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 40c4374a6a4a2ca418a6cae02820cc83 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/LeftRightTrianglesLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png new file mode 100644 index 000000000..e28a1b404 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:714049106b184e8f72787835ca86f1f13e6393b67173bbb7115e4c98ee1499ad +size 1155 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png.meta new file mode 100644 index 000000000..7b9a6a698 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 5f4076abd276a85469bdf0777b3dca59 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/LockIconDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png new file mode 100644 index 000000000..11c089275 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f2bbc01fc8126a89ad4369e33866454bf4d03614c2b82e8ffb16b1a03abe29e +size 1146 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png.meta new file mode 100644 index 000000000..2536eb0ba --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: aa5bbe92028ead14f8958fec6ed0160a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/LockIconLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png new file mode 100644 index 000000000..12b01bd54 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af28b6267cbd9bb148f23d8d8c16473448d6c040854cc48aa76ca7bc16435a7b +size 278 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png.meta new file mode 100644 index 000000000..5122e3295 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 56818a24504a79b4dbc92e2014bd6cb3 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png new file mode 100644 index 000000000..69e8634ea --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94ed123156cc0759fc1046dfb0190b40c85a60e68de7ddb39ad98b5d1142d720 +size 995 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png.meta new file mode 100644 index 000000000..a0bc7649b --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 8425025dea93a794ebdedd5e35a82980 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/NextGraphLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png new file mode 100644 index 000000000..18664b6d1 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f23f3b38c89be507f2c94ba9efc1ca7859f0ffd335274eb81d81d9bac2ce664e +size 1023 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png.meta new file mode 100644 index 000000000..73d0e3e98 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: d254f8eb4bf629c42a2458b27ec63ae4 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PauseDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png new file mode 100644 index 000000000..262bc6e38 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3e2350e8fa834bee2d0443221674f77a6da826a752634e1d2e69b7d53008e36 +size 1023 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png.meta new file mode 100644 index 000000000..70064b065 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 11a7234d91f4d8f42b93dd00c022cca4 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PauseLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png new file mode 100644 index 000000000..f2ed3a741 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b3eaf88d9695d2f4f6457210f55d19dba928e1ed2354cff47f9524cb378ff1d +size 386 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png.meta new file mode 100644 index 000000000..b7a5a61d4 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 84227f8e79a886441853838a41082ba0 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 1 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PencilIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png new file mode 100644 index 000000000..26e31295b --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c002af69b570f0fba2670096174ef5bcc94b1334870f9365f2fffa6afc8b56e +size 1376 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png.meta new file mode 100644 index 000000000..08f323407 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 3d7e5db506665a04e80009e543ae5bab +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PlayDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png new file mode 100644 index 000000000..1d5871ffd --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:677019fed2159a55bd7ad903645f9dbb120ae43811ed507526e88200be056104 +size 1388 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png.meta new file mode 100644 index 000000000..b0c3d6218 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 6540da9e2ae732c43b5ddd7eec9d7e2f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PlayLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png new file mode 100644 index 000000000..95709486d --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73dc355729c87e5cfe2b267c1993f05ed41808ed33cf1b68dd26bfb3b26b24b9 +size 275 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png.meta new file mode 100644 index 000000000..5b8f0c15c --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 533ce97136699fa409a2906bc0204800 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png new file mode 100644 index 000000000..e315aac70 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7dccb22c40a0dc993f4e177aa0f717ce722b28b5e8c2e8cdc807d2c09caff4a +size 1003 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png.meta new file mode 100644 index 000000000..a15cf15b0 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 87701d7b435f9a24ea6f393719ec45ee +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/PreviousGraphLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png new file mode 100644 index 000000000..0934bf21d --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34038820939b98d2bb99a0171daec074a4829e490f925042748a798b88c0762f +size 255 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png.meta new file mode 100644 index 000000000..301972635 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 936417eacfb2dee4f878b37c90ea8f94 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/RemoveDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png new file mode 100644 index 000000000..bae2905b5 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab2c14b59978bce1824980ef9531081f99cc4fe88bca53be83b9c527a72ec0c3 +size 255 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png.meta new file mode 100644 index 000000000..4061ed27a --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b725c10f732ca284abb8cb593a459ae8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/RemoveLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png new file mode 100644 index 000000000..4053fb023 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:617319f00ba2d10418a696327ad51f873dd543adaf907f73c3606c112cc07afe +size 184 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png.meta new file mode 100644 index 000000000..ab653c482 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 16248b07552846349b8e4ab44072e961 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png new file mode 100644 index 000000000..824d0e373 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f2db544885e6bffd21197134c031cd97ebc747cca66f61f9d47898856b525c3 +size 184 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png.meta new file mode 100644 index 000000000..831a303f7 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 639d1ae8726368a43971303f8e6254ea +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/RightTriangleLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png new file mode 100644 index 000000000..fea4fea56 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcd9bb399d623f15b46b698e3f3214e6210ec18993a1a52616a87dc86dc322d4 +size 1152 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png.meta new file mode 100644 index 000000000..5fec14c85 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: e8f2e204fc31abf45a6672bb76870862 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/StepDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png new file mode 100644 index 000000000..3e3d1fd2e --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c26967b298028dfad7870b9b044fb6fe075486853203cab4d0810e36c2d3942 +size 1156 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png.meta new file mode 100644 index 000000000..09ad15353 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: ee7114315133e1b4eb826990014700ee +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/StepLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png new file mode 100644 index 000000000..185a8298f --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c7182616d39866d7750d092a290dd0c11cd24431bb32a7d3e675cb848771d4a +size 1202 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png.meta new file mode 100644 index 000000000..9a0127aa2 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: f47d0bff9e60cd04ca7d6e66120cdc9d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/StopDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png new file mode 100644 index 000000000..eb517dc49 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6f3fe42c42642c6b399661d3a24b2b1da89d09c4f6293fbe554bd931b63e0d6 +size 1219 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png.meta new file mode 100644 index 000000000..dbd8f9978 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 902d4bb0b29289e45b3a2b172d5c2758 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/StopLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png new file mode 100644 index 000000000..de92f1b53 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:558771c43cf6048d7cd97a073f0ce91c28415a19f7413838f248b037e3a69e5e +size 165 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png.meta new file mode 100644 index 000000000..080c1f333 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 27c053db1143b7741afbb8458b4bb383 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png new file mode 100644 index 000000000..a0de5d169 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7900cbed9ce794a2198fbf36e8b98ec4c11c00d6ba259b3192ec788c360e559f +size 165 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png.meta new file mode 100644 index 000000000..8dd12d9ab --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 23488e1f820b3084fa4b5e44f9808132 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/ToggleSharedLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png new file mode 100644 index 000000000..dc49354b3 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b576e3c165d404def02649eb25f7bc2e61142b2e885c487ee657337fd3c3d657 +size 1162 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png.meta new file mode 100644 index 000000000..a89a4157c --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 834058ea0154edc47b716fc26a2d1b2f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png new file mode 100644 index 000000000..365b37904 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72184ac5332495672ccaa28c14b6731e28d0e34b2dfef7a4fe6235c4400baf27 +size 1161 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png.meta new file mode 100644 index 000000000..739cec195 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 312e008da96f6e14da1e81af6a0792a1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/UnlockIconLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png new file mode 100644 index 000000000..38888563b --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f592ef4ee84a73f2560f68180b60c28200d27abd02b9803020d6c41d50f3ee87 +size 295 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png.meta new file mode 100644 index 000000000..dfdfae74a --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: 0cc46a4b3807bb24885a8296adeca4fa +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png new file mode 100644 index 000000000..fdceae10b --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d0431e0f87c4cd21c42f54bcbc30bf4d715cc6e7669853ba0e2aa7dbdf6c33e +size 319 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png.meta new file mode 100644 index 000000000..50e01fdc2 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png.meta @@ -0,0 +1,134 @@ +fileFormatVersion: 2 +guid: cc40f97fdd3300141b12a3bc201be3ee +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/UpDownTrianglesLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png new file mode 100644 index 000000000..2c685d7ee --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e173b9cb2fbc510b5d95e78379405ec1f7af18cd4d1b911528c826a78988f9a5 +size 182 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png.meta new file mode 100644 index 000000000..d37c14f16 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 26c0f31e3dac32b4e9b9ccb105528dee +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png new file mode 100644 index 000000000..9e27e89a4 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4a27f78f7761b02dc948f7b51fc7987c7fe357aaa1b9d5589bcad68308a1d02 +size 199 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png.meta new file mode 100644 index 000000000..88956ecb5 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 17d324276eb5c9241980ff623d7a1a8c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/UpTriangleLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png new file mode 100644 index 000000000..27ac53e01 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fc587959b5146d9bc962f461d8cf94397b48316c3fd5cd54a1db3d837f48024 +size 280 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png.meta new file mode 100644 index 000000000..a8f0aaca3 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: e09bedb3c2061bc4dad17f12d44fafe2 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png new file mode 100644 index 000000000..360911ea5 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d030432df158f2d3f739d68e8f879f08624842302cdc36d5d84ef93fc18a8a87 +size 302 diff --git a/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png.meta b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png.meta new file mode 100644 index 000000000..b6fb02985 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b980d653775576f4c91ea7ec6c20c532 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Icons/WatchVariableLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll b/Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll new file mode 100644 index 000000000..c25bdc048 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1f7c9f24d3eee2acd4fff9796ead48a27de54c0abefdc411fe9a81d6701ae5e +size 207360 diff --git a/Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll.meta b/Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll.meta new file mode 100644 index 000000000..c6db70b48 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll.meta @@ -0,0 +1,77 @@ +fileFormatVersion: 2 +guid: 4648d54cfacda1346a5a800d1816ece6 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: + - GRAPH_DESIGNER + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Editor: 0 + Exclude Linux64: 1 + Exclude OSXUniversal: 1 + Exclude Win: 1 + Exclude Win64: 1 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Opsive.GraphDesigner.Editor.dll + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles.meta b/Packages/com.opsive.graphdesigner/Editor/Styles.meta new file mode 100644 index 000000000..9975b96ea --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0b3d77a10c6c33945b5042087cb0446c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss b/Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss new file mode 100644 index 000000000..4faa745b7 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss @@ -0,0 +1,84 @@ +ResizableElement +{ + position:absolute; + top: 0; + bottom: 0; + right: 0; + left: 0; + flex-direction: row; + align-items: stretch; +} + +ResizableElement #right +{ + width: 4px; + flex-direction: column; + align-items: stretch; +} + +ResizableElement #left +{ + width: 8px; + flex-direction: column; + align-items: stretch; +} + +ResizableElement #middle +{ + flex:1 0 auto; + flex-direction: column; + align-items: stretch; +} + +ResizableElement #left #top-left-resize +{ + height: 12px; + cursor: resize-up-left; +} + +ResizableElement #left #left-resize +{ + flex:1 0 auto; + cursor: resize-horizontal; +} + +ResizableElement #left #bottom-left-resize +{ + height: 12px; + cursor: resize-up-right; +} + +ResizableElement #middle #top-resize +{ + height: 12px; + cursor: resize-vertical; +} + +ResizableElement #middle #middle-center +{ + flex:1 0 auto; +} + +ResizableElement #middle #bottom-resize +{ + height: 12px; + cursor: resize-vertical; +} + +ResizableElement #right #top-right-resize +{ + height: 12px; + cursor: resize-up-right; +} + +ResizableElement #right #right-resize +{ + flex:1 0 auto; + cursor: resize-horizontal; +} + +ResizableElement #right #bottom-right-resize +{ + height: 12px; + cursor: resize-up-left; +} diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss.meta b/Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss.meta new file mode 100644 index 000000000..2abd1c5f9 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: b89241537d9d3fb429f02a07292aace3 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Styles/ElementResizerStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss b/Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss new file mode 100644 index 000000000..8e24918ff --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss @@ -0,0 +1,155 @@ +#panel +{ + width: 250px; + min-width: 225px; + max-width: 400px; +} + +.background-light +{ + background-color: rgb(194, 194, 194); +} + +.background-dark +{ + background-color: rgb(56, 56, 56); +} + +.panel-inspector +{ + flex-grow: 1; + overflow: hidden; +} + +.horizontal-resize +{ + width: 5px; + flex-direction: column; + cursor: resize-horizontal; +} + +.vertical-resize +{ + cursor: resize-vertical; +} + +#status-label +{ + font-size: 22px; + margin-top: 5px; + margin-left: 6px; + -unity-font-style: bold; +} + +.status-label-light +{ + color: rgba(210, 210, 210, 0.90); +} + +#status-toolbar +{ + border-top-width: 1px; + border-top-color: rgba(1, 1, 1, 0.2); + height: 18px; +} + +.status-toolbar-light +{ + border-top-color: rgba(153, 153, 153, 255); +} + +.status-toolbar-dark +{ + border-top-color: rgba(35, 35, 35, 255); +} + +#find-overlay +{ + position: Absolute; + width: 300px; + margin-top: 2px; + border-width: 0px 1px 1px 1px; + border-radius: 0px 0px 4px 4px; +} + +.find-overlay-light +{ + border-color: rgba(153, 153, 153, 255); +} + +.find-overlay-dark +{ + border-color: rgba(35, 35, 35, 255); +} + +#toolbar-button +{ + border-width: 0px 1px 0px 1px; + background-color: rgba(0, 0, 0, 0); + border-radius: 0px; + margin-top: 0px; + margin-bottom: 0px; +} + +#toolbar-dropdown +{ + border-width: 0px 1px 0px 1px; + margin-left: 3px; + margin-right: 3px; + padding-left: 6px; + padding-right: 6px; +} + +.toolbar-dropdown-dark +{ + border-color: rgba(48, 48, 48, 1); +} + +.toolbar-dropdown-light +{ + border-color: rgba(173, 173, 173, 1); +} + +#node-description +{ + position: Absolute; + overflow: hidden; + left: 10px; + bottom: 10px; + width: 450px; + min-height: 25px; + max-height: 200px; + padding: 2px 2px 2px 2px; + border-width: 1px 1px 1px 1px; + border-radius: 6px 6px 6px 6px; + border-color: rgba(0, 0, 0, 0.5); +} + +.node-description-dark +{ + background-color: rgba(15, 15, 15, 0.75); +} + +.node-description-light +{ + background-color: rgba(230, 230, 230, 0.75); +} + +#node-description-label +{ + font-size: 14px; + white-space: normal; + -unity-text-align: upper-center; +} + +#lock-button +{ + position: Absolute; + right: 0; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(0, 0, 0, 0); + margin-top: 3px; + margin-bottom: 0px; + width: 14px; + height: 14px; +} \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss.meta b/Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss.meta new file mode 100644 index 000000000..2cb5961dc --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: 9c1d6fe000d116b47afa1cbd72114731 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Styles/GraphWindowStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss b/Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss new file mode 100644 index 000000000..f5cf99d62 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss @@ -0,0 +1,57 @@ + +NodeGroup { +} + +#group +{ + position: absolute; + background-color: rgba(76, 76, 76, 0.8); + border-color: rgba(25, 25, 25, 1); +} + +#title +{ + -unity-font-style: bold; + font-size: 15px; + min-height: 20px; +} + +.title-label-light +{ + color: rgba(218, 218, 218, 1) +} + +#description +{ + white-space: normal; + flex-grow: 1; +} + +#selection-container +{ + align-self: stretch; + flex-grow: 1; + border-width: 1px 1px 1px 1px; + border-radius: 3px 3px 3px 3px; +} + +.hover +{ + border-color: rgba(68, 192, 255, 0.5); +} + +.selected +{ + border-color: rgba(68, 192, 255, 0.9); +} + +#selection-border +{ + border-radius: 8px; + margin: -2px; + position:absolute; + top: 0; + bottom: 0; + right: 0; + left: 0; +} diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss.meta b/Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss.meta new file mode 100644 index 000000000..5f107cdaf --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: 47473adfa44c37444b59bc44b0e4ed3a +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Styles/GroupStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss b/Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss new file mode 100644 index 000000000..64ce8d77c --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss @@ -0,0 +1,125 @@ +LogicNode +{ + min-width: 110px; + max-width: 250px; +} + +EventNode +{ + min-width: 110px; + max-width: 250px; +} + +#selection-container +{ + align-self: stretch; + border-width: 1px 1px 1px 1px; + border-radius: 4px 4px 4px 4px; +} + +.hover +{ + border-color: rgba(68, 192, 255, 0.5); +} + +.selected +{ + border-color: rgba(68, 192, 255, 0.9); +} + +#node-container +{ + align-self: stretch; + border-width: 1px 1px 1px 1px; + border-radius: 3px 3px 3px 3px; + padding-top: 8px; + padding-bottom: 8px; +} + +#title-container +{ + flex-grow: 1; + justify-content: center; + align-items: center; +} + +#title-label +{ + font-size: 14px; + padding-left: 2px; + padding-right: 2px; + overflow: hidden; +} + +#node-contents +{ + padding: 3px 3px 1px 3px; +} + +#icon +{ + width: 42px; + height: 42px; +} + +#small-icon +{ + width: 30px; + height: 30px; +} + +#conditional-abort-icon +{ + top: 2px; + padding-left: 3px; + position: absolute; +} + +#event-execution-status +{ + bottom: 1px; + right: -1px; + align-self: flex-end; + position: absolute; + height: 20px; +} + +#execution-status +{ + top: 2px; + right: 2px; + align-self: flex-end; + position: absolute; + height: 24px; +} + +CommentElement +{ + padding: 4px 4px 4px 4px; + border-width: 1px 1px 1px 1px; + border-radius: 4px 4px 4px 4px; + border-color: rgba(0, 0, 0, 1); + max-width: 200px; + align-items: center; + overflow: hidden; + -unity-text-align: upper-center; +} + +.comment-element-dark +{ + background-color: rgba(30, 30, 30, 0.7); +} + +.comment-element-light +{ + background-color: rgba(196, 196, 196, 0.7); +} + +#node-error-indicator +{ + position: absolute; + top: -8px; + right: -8px; + background-color: rgba(0, 0, 0, 0); + border-color: rgba(0, 0, 0, 0); +} \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss.meta b/Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss.meta new file mode 100644 index 000000000..aa5adeee3 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: 79123a21d23d3484f99b8240f6b3f8c5 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Styles/NodeStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss b/Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss new file mode 100644 index 000000000..a4aa345e7 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss @@ -0,0 +1,64 @@ +Slot +{ + position: absolute; + width: 42px; + height: 14px; + align-items: center; + align-self: center; +} + +#output-slot +{ + position: absolute; + bottom: 2px; + margin-bottom:-3px; + padding-top:4px +} + +#input-slot +{ + padding-top: 2px; + margin-top: -1px; +} + +#slot-container +{ + width: 34px; + height: 8px; + align-items: center; +} + +.input-slot-container +{ + border-width: 0px 1px 1px 1px; + border-radius: 0px 0px 4px 4px; +} + +.output-slot-container +{ + border-width: 1px 1px 0px 1px; + border-radius: 4px 4px 0px 0px; +} + +.valid-slot +{ + border-color: rgba(25, 25, 25, 1); + background-color: rgba(108, 108, 108, 0.8); +} + +.invalid-slot +{ + border-color: rgba(25, 25, 25, 1); + background-color: rgba(108, 108, 108, 0.3); +} + +.slot-container-highlight +{ + background-color: rgba(138, 138, 138, 0.95); +} + +#collapsed-icon +{ + position: absolute; + top: 6px; +} \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss.meta b/Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss.meta new file mode 100644 index 000000000..a7ab82f85 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: cb51b84bf5a700b43a87507880638d70 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Editor/Styles/SlotStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Runtime.meta b/Packages/com.opsive.graphdesigner/Runtime.meta new file mode 100644 index 000000000..adf673d82 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4e5df7769b02e514e913a26d8b6fa296 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll b/Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll new file mode 100644 index 000000000..099edd695 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c90e908805fb0e3fc125875d9e727c0ef4e6999eca185e509c498e6adf14a6c +size 25600 diff --git a/Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll.meta b/Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll.meta new file mode 100644 index 000000000..c61f373b6 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll.meta @@ -0,0 +1,77 @@ +fileFormatVersion: 2 +guid: 4f899e1eda8fcfa48934476840ae43f2 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: + - GRAPH_DESIGNER + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Editor: 0 + Exclude Linux64: 0 + Exclude OSXUniversal: 0 + Exclude Win: 0 + Exclude Win64: 0 + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Standalone: Linux64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Runtime/Opsive.GraphDesigner.Runtime.dll + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers.meta b/Packages/com.opsive.graphdesigner/Runtime/Wrappers.meta new file mode 100644 index 000000000..4e9b0f868 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7036bd273b0de77498abe37a9540fd35 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs new file mode 100644 index 000000000..97d509478 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs @@ -0,0 +1,16 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Graph Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.GraphDesigner.Runtime.Wrappers +{ + /// + /// Wrapper for the GameObject Shared Variables component. + /// + public class GameObjectSharedVariables : Runtime.Variables.GameObjectSharedVariables + { + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs.meta b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs.meta new file mode 100644 index 000000000..a4c876ed2 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 0b02b4aaf7aa44843b836f6e31da7d39 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Runtime/Wrappers/GameObjectSharedVariables.cs + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef new file mode 100644 index 000000000..eea12c8b2 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef @@ -0,0 +1,18 @@ +{ + "name": "Opsive.GraphDesigner.Runtime.Wrappers", + "rootNamespace": "", + "references": [ + "GUID:e9319bc8ab9315745bdf80aeffa01d6d" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": true, + "precompiledReferences": [ + "Opsive.GraphDesigner.Runtime.dll" + ], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef.meta b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef.meta new file mode 100644 index 000000000..59db99253 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: bc40f46d7537e564caeff3c83ac95aa0 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Runtime/Wrappers/Opsive.GraphDesigner.Runtime.Wrappers.asmdef + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs new file mode 100644 index 000000000..d9ec5878b --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs @@ -0,0 +1,16 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Graph Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.GraphDesigner.Runtime.Wrappers +{ + /// + /// Wrapper for the Project Shared Variables component. + /// + public class ProjectSharedVariables : Runtime.Variables.ProjectSharedVariables + { + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs.meta b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs.meta new file mode 100644 index 000000000..31122cbe9 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 2269736932fa70c46ab166dfef0ec61a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: -100 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Runtime/Wrappers/ProjectSharedVariables.cs + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs new file mode 100644 index 000000000..d1a0cf45f --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs @@ -0,0 +1,16 @@ +#if GRAPH_DESIGNER +/// --------------------------------------------- +/// Graph Designer +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.GraphDesigner.Runtime.Wrappers +{ + /// + /// Wrapper for the Scene Shared Variables component. + /// + public class SceneSharedVariables : Runtime.Variables.SceneSharedVariables + { + } +} +#endif \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs.meta b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs.meta new file mode 100644 index 000000000..82f7177a7 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 520af892e455a314a96c74d00ce80cde +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: -100 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/Runtime/Wrappers/SceneSharedVariables.cs + uploadId: 775358 diff --git a/Packages/com.opsive.graphdesigner/package.json b/Packages/com.opsive.graphdesigner/package.json new file mode 100644 index 000000000..0a7ec1652 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/package.json @@ -0,0 +1,15 @@ +{ + "name": "com.opsive.graphdesigner", + "version": "2.0.12", + "displayName": "Opsive Graph Designer", + "description": "Underying graph system used by Opsive assets.", + "documentationUrl": "https://opsive.com/", + "author": { + "name": "Opsive", + "email": "support@opsive.com", + "url": "https://opsive.com" + }, + "dependencies": { + "com.opsive.shared": "2.0.0" + } +} \ No newline at end of file diff --git a/Packages/com.opsive.graphdesigner/package.json.meta b/Packages/com.opsive.graphdesigner/package.json.meta new file mode 100644 index 000000000..4631b9069 --- /dev/null +++ b/Packages/com.opsive.graphdesigner/package.json.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: 85f6ffb769ef0f24fb666d14032d1e24 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.graphdesigner/package.json + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor.meta b/Packages/com.opsive.shared/Editor.meta new file mode 100644 index 000000000..aef21717c --- /dev/null +++ b/Packages/com.opsive.shared/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f4eec642e3a3157478e8f25227b97d95 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Icons.meta b/Packages/com.opsive.shared/Editor/Icons.meta new file mode 100644 index 000000000..c5d62a32b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6b97d1b3df92c7f4bb0ef6961daa23ee +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png new file mode 100644 index 000000000..79d1e5b65 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94509fce5e3111140e275fb7451f638ae323c749bb60562b3d48f97f76152bd1 +size 1057 diff --git a/Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png.meta new file mode 100644 index 000000000..66bfa190b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: a4d2cff4316a64946b786d75f681cd33 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/ActivateDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png new file mode 100644 index 000000000..88083d0ef --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d784086403fc241dc1a88de433b4fda6de0a9b30491568b7041ab3dcff7f1928 +size 1059 diff --git a/Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png.meta new file mode 100644 index 000000000..61e3f2794 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: e152e9061481aab429f2b07a70c12d2e +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/ActivateLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png b/Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png new file mode 100644 index 000000000..5b395be1e --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ae99402c7674521c150c8a20e410915ebac91621b03ca7c8eab2c5bed92b630 +size 2393 diff --git a/Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png.meta b/Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png.meta new file mode 100644 index 000000000..16013b010 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 2fad2f69a0b020b4884035db002b7d4a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/ActivityIndicator.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png new file mode 100644 index 000000000..01216fdf0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e35bc459e5a557288b071a88ac4c73092a3fc2f0732315ce37fdd62845b0e0b4 +size 1041 diff --git a/Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png.meta new file mode 100644 index 000000000..48de9531f --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 21eff06b5e4af0e478ea75270aca329a +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/AddDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png new file mode 100644 index 000000000..c6cc9a0c0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01a1d09b034178fa12032035ecb6902a63a83a2aae412ba787a04dd7f2465bff +size 1033 diff --git a/Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png.meta new file mode 100644 index 000000000..60e36c6a9 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: aff49c3d1ef455d488b96b6ed77550b0 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/AddLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/BackNavigation.png b/Packages/com.opsive.shared/Editor/Icons/BackNavigation.png new file mode 100644 index 000000000..e965ebcb0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/BackNavigation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0e010086aa9be114085c5ef4903715f87e22de2e5007fdc728d65e96cadc766 +size 1022 diff --git a/Packages/com.opsive.shared/Editor/Icons/BackNavigation.png.meta b/Packages/com.opsive.shared/Editor/Icons/BackNavigation.png.meta new file mode 100644 index 000000000..682fa8777 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/BackNavigation.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 3c5f9b1c17b6a9240944ce0b6ff21af6 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/BackNavigation.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png new file mode 100644 index 000000000..10b1bd872 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec2a623be2dc5a9845e6dda3a0596f3c89f212c017056172fff502c6dd42147d +size 1068 diff --git a/Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png.meta new file mode 100644 index 000000000..72142d844 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: cc50d62765d4d79479ddf540cac0989b +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/DeleteDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png new file mode 100644 index 000000000..b6619d1b8 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd085d37b49bbd36d69de637bbae2938689bb90e4556a8ad0bb7005e7b8e3f1f +size 1067 diff --git a/Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png.meta new file mode 100644 index 000000000..863bb4f67 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 01290b743a16c0946b599beba004ca10 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/DeleteLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png new file mode 100644 index 000000000..0bef723d1 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd4436088e6f0c68799a6ebeeefe43f558b68c227c0009423e5917f25df53f6f +size 1055 diff --git a/Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png.meta new file mode 100644 index 000000000..e927623f0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 4d9d8217015eee543ac1b745a096016d +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/DuplicateDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png new file mode 100644 index 000000000..634956c58 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e1d7a324d1bb83f1018e4abe0f30117488bcc51f79bd17b65e61b7cb7891dd4 +size 1055 diff --git a/Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png.meta new file mode 100644 index 000000000..ef7f73605 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: ba8a6a7b5fe943b48bef5d532c257d38 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/DuplicateLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/FavoriteType.png b/Packages/com.opsive.shared/Editor/Icons/FavoriteType.png new file mode 100644 index 000000000..acfaca168 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/FavoriteType.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22955351d214769f91099e6b714ff2fd10ade7e612d562b9013c0f254a54cec2 +size 266 diff --git a/Packages/com.opsive.shared/Editor/Icons/FavoriteType.png.meta b/Packages/com.opsive.shared/Editor/Icons/FavoriteType.png.meta new file mode 100644 index 000000000..1e20425ca --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/FavoriteType.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 98a5b78106788fa4187c2b78d8f7c48c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/FavoriteType.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png b/Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png new file mode 100644 index 000000000..889216681 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2c01f360b0321ce4584c526b19f0db1282ab3b93d7146cd924f1a93490da8d9 +size 1159 diff --git a/Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png.meta b/Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png.meta new file mode 100644 index 000000000..c085a3c1d --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: a2cd301cd71673749b65d1ce06332afa +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/FindSelectDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png b/Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png new file mode 100644 index 000000000..5e9f002e0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9487787e57cbc999f3e60483f74e8e8ecef1edc0f60b65e2ffde2fccc515cf4e +size 1159 diff --git a/Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png.meta b/Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png.meta new file mode 100644 index 000000000..bf2f93179 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: e26581d8c0102fb4e8812ee8c6d1b5fe +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/FindSelectLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png b/Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png new file mode 100644 index 000000000..7fc3ec809 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cce9b80b376177b8db86f737ff18782903fdcadf8aa70fdce7d6f541875ccf1 +size 1023 diff --git a/Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png.meta b/Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png.meta new file mode 100644 index 000000000..075834a23 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 0def137655ef57944bd792b426f9d2ae +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/ForwardNavigation.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png new file mode 100644 index 000000000..47bf4a55a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5229e86943cb1d128745c59833c633e7a5cc48ba66acbb3a81836e7f2c7bd83f +size 993 diff --git a/Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png.meta new file mode 100644 index 000000000..f39cbf277 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 14890942c77df924d95bfdf229fcffe5 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/InfoDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png new file mode 100644 index 000000000..ca9f5dfb0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:837f69be6b6fc856cc177749ae2fcd780f2cdb68d10fe46b4069049127c4ca72 +size 999 diff --git a/Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png.meta new file mode 100644 index 000000000..df70c9afd --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 487848bbccf6d414bacf8e840467e094 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/InfoLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png b/Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png new file mode 100644 index 000000000..37b7c0d0a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:475251aed130a5117223d0e650f416352155a17b58ea95fc214e9ce071d7c6b4 +size 272 diff --git a/Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png.meta b/Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png.meta new file mode 100644 index 000000000..c3390b272 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 96a8e65a0c39e5244b871e6f7814ce6a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/NotFavoriteType.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png new file mode 100644 index 000000000..3ba16d79b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6caa29d210511bcc5ae309ccf1a53f227c2f7a3c88ce3d44486e854bf55cac34 +size 1062 diff --git a/Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png.meta new file mode 100644 index 000000000..59cbe1bba --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 20a2a7d0dc8114f4083f51b8883d06b6 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/PersistDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png new file mode 100644 index 000000000..649fb4a83 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ed0a60f50f731ee3f27c19f5f470a0b95459ec76f72a49a2bbb925011e32eab +size 1065 diff --git a/Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png.meta new file mode 100644 index 000000000..d16257395 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: ee727c0b6401c8f4db0126f95f518541 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/PersistLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/PresetIcon.png b/Packages/com.opsive.shared/Editor/Icons/PresetIcon.png new file mode 100644 index 000000000..4b50b1af9 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/PresetIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e67842ce08be5b0d241011f4b3b656b01e5889a9190414e703f96a7626391ed8 +size 530 diff --git a/Packages/com.opsive.shared/Editor/Icons/PresetIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/PresetIcon.png.meta new file mode 100644 index 000000000..2eabd3dd4 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/PresetIcon.png.meta @@ -0,0 +1,105 @@ +fileFormatVersion: 2 +guid: e2150fcaaf9a0a34baf8e5554d64da37 +timeCreated: 1559507090 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + externalObjects: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Windows Store Apps + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/PresetIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png b/Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png new file mode 100644 index 000000000..c6ec0bcca --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cfb1a7a130e27974bfacbaebe6d264d48b30b9b9cbe83fa34e898060957fd90f +size 1265 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png.meta b/Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png.meta new file mode 100644 index 000000000..6ec91a2fd --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 33aa182040c326247ad5c385143e7489 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/RadioButtonDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png b/Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png new file mode 100644 index 000000000..cf9c4c5da --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46fd54a3bedcaed9b6542fa20e93406329b739328d0afaa34c95772de6f20637 +size 1195 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png.meta b/Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png.meta new file mode 100644 index 000000000..65a272462 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 6dd23907f337cfd4b8a23386cedd350e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/RadioButtonLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png new file mode 100644 index 000000000..a3426e66a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bccf95dca3fb7758564df5d9eb2f94b082eb94cb1cb78c4d2985a08ba2820cb +size 1372 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png.meta b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png.meta new file mode 100644 index 000000000..7ca1c8d0a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: ae6f115684054fa4d90e564387fe9636 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedDark.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png new file mode 100644 index 000000000..6ed42a1ac --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab9a0470fa4fc5a698bbc5ff6acb84b7c57d8cfadb06e881dadb3c2879577e4a +size 1289 diff --git a/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png.meta b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png.meta new file mode 100644 index 000000000..50dedd5e0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: a9d63dcf833320640938ad3b61123ccf +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/RadioButtonSelectedLight.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png new file mode 100644 index 000000000..529b56bd3 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7951fc080377cb60d855a3db1d7d45262dd41519c7b60c01f6a52a9e3374a78e +size 1025 diff --git a/Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png.meta new file mode 100644 index 000000000..439d4b8ea --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 088c80b2883e964498350b2075ecde18 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/RemoveDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png new file mode 100644 index 000000000..5a5868e62 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39f5e1e599ac75165387316176692e58a53ed0df9e38e3cd81f065c1ebf2c493 +size 1024 diff --git a/Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png.meta new file mode 100644 index 000000000..f8681121f --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 71fd51a904de3f14086279a41bec5b78 +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/RemoveLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png b/Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png new file mode 100644 index 000000000..3de7b09a6 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bddf333672d0062813bf250270be98bd40c01c288d5133c54e666f7545c78a09 +size 2840 diff --git a/Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png.meta b/Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png.meta new file mode 100644 index 000000000..d1667983a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 433038c2c9ae43240bed016f22e4221b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/ReoderableKnob.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Selected.png b/Packages/com.opsive.shared/Editor/Icons/Selected.png new file mode 100644 index 000000000..35516ff18 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Selected.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e36d9ddde25d53a3d4c477bcd9b88d21a05caaf0bf406c69614d72a81de0aed +size 2864 diff --git a/Packages/com.opsive.shared/Editor/Icons/Selected.png.meta b/Packages/com.opsive.shared/Editor/Icons/Selected.png.meta new file mode 100644 index 000000000..a01240fd8 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Selected.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 5c59defb0523abf4b988bfbc0708d514 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Selected.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units.meta b/Packages/com.opsive.shared/Editor/Icons/Units.meta new file mode 100644 index 000000000..9cf29c776 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: be67f8518a941b142afa835057491866 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/Default.png b/Packages/com.opsive.shared/Editor/Icons/Units/Default.png new file mode 100644 index 000000000..95b050eea --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/Default.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5299dcc33e59f270db1413f91fccd6abadfb9c2bcd31097f16c55e1e21e39931 +size 230 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/Default.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/Default.png.meta new file mode 100644 index 000000000..da00a142a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/Default.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 83a88036383179742b4839609f038374 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/Default.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/Enum.png b/Packages/com.opsive.shared/Editor/Icons/Units/Enum.png new file mode 100644 index 000000000..591d9175c --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/Enum.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8860ac6d91a705bce700ca5d9648d26f520f28ace065c91152b842ca8e110cad +size 2836 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/Enum.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/Enum.png.meta new file mode 100644 index 000000000..d4f60a16c --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/Enum.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 8ca195a23e38ef24b835142f8e13e17a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/Enum.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/Folder.png b/Packages/com.opsive.shared/Editor/Icons/Units/Folder.png new file mode 100644 index 000000000..eae1289bd --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/Folder.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:100499da9bf4bd263c0c3df53ccea70433820c6696c1ffe1b807ad21c2ef6a5f +size 2843 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/Folder.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/Folder.png.meta new file mode 100644 index 000000000..56d082d70 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/Folder.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 616bcce9f5cac9642a3f9101c253e95d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/Folder.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png b/Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png new file mode 100644 index 000000000..2d05ad0d8 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1311e72811c62097bcb5c1dc2dfd1ff4364eb7da075f16288e686c6e682ae2fa +size 232 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png.meta new file mode 100644 index 000000000..5a044aaa5 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 479498807a425664db202c18464e8ff0 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/System.Boolean.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png b/Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png new file mode 100644 index 000000000..5dbc2fd44 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69207123ba81cabf35f41c8acb24bdc3fd22a92fca8924434b0b878e5c5e1c48 +size 238 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png.meta new file mode 100644 index 000000000..30ddeb569 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: defe707fac256444598e3f8a297992f7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/System.Int32.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png b/Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png new file mode 100644 index 000000000..a5dcebe17 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f31f8e962b461dc26cb709cf745c7b2d46b3c80e196e2300644ff40968a6e20 +size 231 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png.meta new file mode 100644 index 000000000..418a6203b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 4c21462617efc944b9d80c3e9f237ad6 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/System.Single.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.String.png b/Packages/com.opsive.shared/Editor/Icons/Units/System.String.png new file mode 100644 index 000000000..1ae4d5e3b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.String.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16c1dc132075c6a720ca2dedf6aa11a1e853081c0e24c001f04a42f9d11cff10 +size 241 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/System.String.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/System.String.png.meta new file mode 100644 index 000000000..620378641 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/System.String.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 97fbf97b141837d42a7ba59bce21101b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/System.String.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png new file mode 100644 index 000000000..fc7cf03b2 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee4b2e7d10d3e4157f09cd1f075edac280e2d7b62dcb51196a6140a3818c0f9a +size 263 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png.meta new file mode 100644 index 000000000..2255f463b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: fcecea8c4b2d27040939b95755c2561e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Color.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png new file mode 100644 index 000000000..b99064110 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91580943e17b385b737afb2db206bc2418ef383d44c8eec653b0f3ee7980f39d +size 2859 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png.meta new file mode 100644 index 000000000..6038aacf2 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 08f244fd1aa17c445929ade0013b8905 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Matrix4x4.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png new file mode 100644 index 000000000..010556e79 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58d2ca5ee605be9477765657b7d2d63f57607e9c3d22a9a30ef6d418ab8745a1 +size 2913 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png.meta new file mode 100644 index 000000000..eca589ba4 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: d1859ad3c7f5aef4bb27c748114eb378 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Quaternion.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png new file mode 100644 index 000000000..5bcc747a7 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09b2d1ae4b020ed3a9e6d7899523835c13b3db016b693d70931cd67ea96fbf30 +size 248 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png.meta new file mode 100644 index 000000000..aefce18ce --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: ed8e4254d8821d847a64c6ec5a04d96c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.RaycastHit.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png new file mode 100644 index 000000000..ec32da71d --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eaae69189ca45f9aa7604b290504899c8a9cdba55b8c7c1861924cb1a4e32f89 +size 2975 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png.meta new file mode 100644 index 000000000..4f6e6d1bc --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 56deabd8192f3954c89407519fc22b71 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Time.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png new file mode 100644 index 000000000..5707baac6 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed91ca4061ac0052098f8b9739bafdb921e96b7ae20a44d639122e123781a6ab +size 258 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png.meta new file mode 100644 index 000000000..2830fd833 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: f02aa567c65253d47a7973cba44b2206 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector2.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png new file mode 100644 index 000000000..cff90774f --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ca1216184baba58f8615b490ae6cca07a87bfb351fa0eba9c61e4d1faaee623 +size 295 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png.meta new file mode 100644 index 000000000..5c4cc43fe --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 0cbca713063819343996d48890384de1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector3.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png new file mode 100644 index 000000000..da3289a08 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef8e2d7b6e4e542a48a125919e0b83e91fdc643629d90a3348f24a816eda151e +size 396 diff --git a/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png.meta b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png.meta new file mode 100644 index 000000000..4d0b0c536 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 871f866a7988bf443bbe3dda3a4b5adb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/Units/UnityEngine.Vector4.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png b/Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png new file mode 100644 index 000000000..37583d7c6 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d2cfe213beb79d5d279fa989e61e692601c3930d958ff8ba772f57590c3c0dd +size 1065 diff --git a/Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png.meta new file mode 100644 index 000000000..9e70ba72a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: ffb6d9e2798b5f8418dd9d5c9fc9118f +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/UpdateDarkIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png b/Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png new file mode 100644 index 000000000..77811de52 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b95122272b27c79a523e2b637810adadda3d8523c3447e84f516e46cb59df9e +size 1078 diff --git a/Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png.meta b/Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png.meta new file mode 100644 index 000000000..f50a7bb94 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: c1502f6cab2c3a542bb77c572d8567de +timeCreated: 1533758377 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Icons/UpdateLightIcon.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Import.meta b/Packages/com.opsive.shared/Editor/Import.meta new file mode 100644 index 000000000..e401f4dba --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Import.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3d15ae0dbbf7a014f8a65d9f5a961927 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Import/ImportStatus.cs b/Packages/com.opsive.shared/Editor/Import/ImportStatus.cs new file mode 100644 index 000000000..97e504130 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Import/ImportStatus.cs @@ -0,0 +1,23 @@ +/// --------------------------------------------- +/// Opsive Shared +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- +namespace Opsive.Shared.Editor.Import +{ + using UnityEngine; + + /// + /// Small ScriptableObject which shows the import window if it has not been shown. + /// + public class ImportStatus : ScriptableObject + { + [Tooltip("Has the Character Controller Update Project Settings window been shown?")] + [SerializeField] protected bool m_CharacterProjectSettingsShown; + [Tooltip("Has the Behavior Designer Welcome window been shown?")] + [SerializeField] protected bool m_BehaviorWindowShown; + + public bool CharacterProjectSettingsShown { get { return m_CharacterProjectSettingsShown; } set { m_CharacterProjectSettingsShown = value; } } + public bool BehaviorWindowShown { get { return m_BehaviorWindowShown; } set { m_BehaviorWindowShown = value; } } + } +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Import/ImportStatus.cs.meta b/Packages/com.opsive.shared/Editor/Import/ImportStatus.cs.meta new file mode 100644 index 000000000..8d4fe24de --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Import/ImportStatus.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f9a6fcaab71877649a4598d315010679 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Import/ImportStatus.cs + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef b/Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef new file mode 100644 index 000000000..b61c3d9bc --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef @@ -0,0 +1,16 @@ +{ + "name": "Opsive.Shared.Editor.Import", + "rootNamespace": "", + "references": [], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef.meta b/Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef.meta new file mode 100644 index 000000000..faf882995 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: 27cb7fd045e5bb44f8c617ce69325b1d +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Import/Opsive.Shared.Editor.Import.asmdef + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers.meta b/Packages/com.opsive.shared/Editor/Managers.meta new file mode 100644 index 000000000..128768f96 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da77870348e224c45bfa37fdd9575797 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Managers/Images.meta b/Packages/com.opsive.shared/Editor/Managers/Images.meta new file mode 100644 index 000000000..df00c00a7 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 06dcb97c45b1a194bb6361a85bdbaafe +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Discord.png b/Packages/com.opsive.shared/Editor/Managers/Images/Discord.png new file mode 100644 index 000000000..4bc2e357a --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Discord.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fe73b05b284ed498bf20d72a9c7eabc62f62c7cb2688f7fd72f47b4cabd64c0 +size 4585 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Discord.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/Discord.png.meta new file mode 100644 index 000000000..d359279c5 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Discord.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: c234ca342a2cb274c94da04b6db74730 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/Discord.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png new file mode 100644 index 000000000..9107d5b6c --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd3c44ae1fe20f1c827e9c228cab5a27e221b5d76bf30f61217a927f42145aa2 +size 5813 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png.meta new file mode 100644 index 000000000..e69e9993e --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 4ed35e016803fb7408050e41a75f1d93 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/DocumentationLarge.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png new file mode 100644 index 000000000..633a36fef --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b034147c213aa488dcd3bafe9c2b10571e6205b2508c7ca045a6f8d2ddb2532 +size 4894 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png.meta new file mode 100644 index 000000000..2aa80386b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: b05f9a11151011a47aefb3446b5dccac +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/DocumentationSmall.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png b/Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png new file mode 100644 index 000000000..77626294e --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7e7fc716a85188ae2d68d2030096ff2ef1828b7af52a5506203d693ed8e5404 +size 5676 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png.meta new file mode 100644 index 000000000..00c069cd1 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 70a10403b4272064d96b00badc2548d7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/Downloads.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Forum.png b/Packages/com.opsive.shared/Editor/Managers/Images/Forum.png new file mode 100644 index 000000000..4725ebf40 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Forum.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84da2f7eb44d02abb0ed9b8b0b0ec0ebb7700fd17f2794012f281bc1c5868a87 +size 4346 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Forum.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/Forum.png.meta new file mode 100644 index 000000000..8856a00c5 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Forum.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 231c482ec921d5d469d0039bc18dbfda +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/Forum.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png b/Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png new file mode 100644 index 000000000..0a846dd7d --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e7d300b207991ca052599b0b5e2f1d7bbe3ff99a4696f887cdc32470901d5a8 +size 6989 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png.meta new file mode 100644 index 000000000..a0c7283f8 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 10e1cbc932df7cd4f8c57896e3ac886e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/ProfessionalServices.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Review.png b/Packages/com.opsive.shared/Editor/Managers/Images/Review.png new file mode 100644 index 000000000..ccf7297c7 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Review.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b08fef6efa401eecc6600f24742bcdc6616398e3fe68fa937b3c0a53e8db009 +size 4317 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Review.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/Review.png.meta new file mode 100644 index 000000000..f246b1686 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Review.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 8af2dbe9f9221bf4882aee4d8375f7d1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/Review.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png b/Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png new file mode 100644 index 000000000..4773c8364 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4eefebf545c3b2811e9d575a05fef41ccfc0f81524211c23da256a7963683c6f +size 5172 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png.meta new file mode 100644 index 000000000..5e70721fb --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 7723bcc8e25ee3443a9954c35ac939ec +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/Showcase.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Videos.png b/Packages/com.opsive.shared/Editor/Managers/Images/Videos.png new file mode 100644 index 000000000..6c9f0a79d --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Videos.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d987699bec87790e29453ed1aef7357a10fcccf5a7280cb083206b4c81f1193e +size 4234 diff --git a/Packages/com.opsive.shared/Editor/Managers/Images/Videos.png.meta b/Packages/com.opsive.shared/Editor/Managers/Images/Videos.png.meta new file mode 100644 index 000000000..b2c4ee6a4 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Images/Videos.png.meta @@ -0,0 +1,110 @@ +fileFormatVersion: 2 +guid: 0697e4652b4c4a040a26a775a24847d1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Images/Videos.png + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll b/Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll new file mode 100644 index 000000000..b0d4eb1c0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6c0469d446d5d30638d065fb2510094cd32fb2cdb8d665e6f2790c7fadad863 +size 30720 diff --git a/Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll.meta b/Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll.meta new file mode 100644 index 000000000..2baa648b1 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll.meta @@ -0,0 +1,40 @@ +fileFormatVersion: 2 +guid: ac3c97e8146b1a546ae1aff3bffdeeb3 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Managers/Opsive.Shared.Editor.Managers.dll + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Styles.meta b/Packages/com.opsive.shared/Editor/Styles.meta new file mode 100644 index 000000000..661175f2e --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f09b4c446224b334c9c59424ad2350cc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss b/Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss new file mode 100644 index 000000000..64fd36376 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss @@ -0,0 +1,104 @@ + +#foldout-header +{ + flex-shrink: 0; + border-width: 1px; + border-top-left-radius: 3px; + border-top-right-radius: 3px; + border-bottom-width: 0px; + padding-left: 2px; + flex-direction: row; + justify-content: space-between; +} + +#foldout-header > Label +{ + font-size: 15px; + -unity-font-style: bold; + -unity-text-align: middle-center; +} + +#foldout-content +{ + border-width: 1px; + border-top-width: 0px; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; + min-height: 20px; +} + +.foldout-background-light +{ + background-color: rgb(225, 225, 225); + border-color: rgb(75, 75, 75); +} + +.foldout-background-dark +{ + background-color: rgb(75, 75, 75); + border-color: rgb(45, 45, 45); +} + +FoldoutHeader +{ + border-top-width: 1px; + border-top-color: rgba(1, 1, 1, 0.4); + border-bottom-width: 1px; + border-bottom-color: rgba(1, 1, 1, 0.3); +} + +FoldoutHeader > Toggle +{ + margin-left: 0; + margin-bottom: 0; +} + +.foldout-list-view-element_content +{ + padding-left: 5px; + padding: 5px; +} + +.foldout-list-view-element_foldout-header_title +{ + flex-shrink: 1; +} + +.foldout-list-view-element_foldout-header_title Label +{ + -unity-text-align: middle-left; +} + +.foldout-list-view-element_foldout-header_options +{ + flex-direction: row; + flex-shrink: 0; +} + +.foldout-list-view-element_foldout-header_options Button +{ + width: 18px; + height: 18px; + background-image: none; + margin-left: 0px; + padding: 0px; + border-top-width: 1px; + border-bottom-width: 1px; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + font-size: 13px; + -unity-font-style: bold; + -unity-text-align: middle-center; +} + +.button-border-light +{ + border-color: rgb(110, 110, 110); + border-top-color: rgb(190, 190, 190); +} + +.button-border-dark +{ + border-color: rgb(35, 35, 35); + border-top-color: rgb(90, 90, 90); +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss.meta b/Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss.meta new file mode 100644 index 000000000..2eb63eb23 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: b62c5fc864a82e9458d17c82a2eea394 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Styles/FoldoutListViewStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss b/Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss new file mode 100644 index 000000000..2bd49af9f --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss @@ -0,0 +1,31 @@ + +.inspectable-object-field{ + flex-direction: row; + -unity-text-align: middle-left; +} + +.inspectable-object-field > ObjectField{ + flex-shrink: 1; +} + + +/* +State List +*/ +.states-reorderable-list__header +{ + flex-direction: row; + justify-content: space-around; +} + +.states-reorderable-list-element +{ + flex-direction: row; + flex-grow: 1; +} + +.states-reorderable-list-element > .unity-base-field +{ + flex-grow: 1; + width: 0; +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss.meta b/Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss.meta new file mode 100644 index 000000000..353858479 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: d08994b95de7e054496f53903dce4031 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} + disableValidation: 0 +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Styles/InpectorStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss b/Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss new file mode 100644 index 000000000..001aadbf9 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss @@ -0,0 +1,232 @@ +#contentTitle +{ + font-size: 20px; +} + +.manager-content-container +{ + margin-top: 1px; + top: -20px; + padding-top: 20px; +} + +/* || Menu || */ +#menu +{ + flex-direction: column; + flex-grow: 1; + flex-shrink: 0; + flex-basis: 0; + width: 145px; + max-width: 145px; + border-right-width: 1px; +} + +#menu-button +{ + font-size: 14px; + -unity-text-align: middle-right; + padding-top: 6px; + padding-bottom: 6px; + padding-right: 2px; +} + +.light-menu-background +{ + border-color: rgb(55, 55, 55); + background-color: rgb(211, 211, 211); +} + +.dark-menu-background +{ + border-color: rgb(40, 40, 40); + background-color: rgb(65, 65, 65); +} + +.selected-light-menu-button-background +{ + background-color: rgb(63, 126, 221); +} + +.selected-dark-menu-button-background +{ + background-color: rgb(63, 94, 151); +} + +/* || Utility Manager Classes || */ +.link-cursor +{ + cursor: link; +} + +/* || Integrations Manager || */ +#integrations-container +{ + flex-direction: row; + flex-wrap: wrap; +} + +#integrations-box +{ + margin: 3px; + padding: 2px; + width: 270px; + height: 100px; +} + +#integrations-title +{ + -unity-font-style: bold; + font-size: 13px; + margin-left: 4px; + padding-bottom: 4px; +} + +/* || Box || */ +.light-box-background, .dark-box-background +{ + border-width: 1px; + padding: 1px; + margin-top: 2px; + margin-bottom: 2px; + border-radius: 1px; +} + +.light-box-background +{ + border-color: rgb(55, 55, 55); + background-color: rgb(208, 208, 208); +} + +.dark-box-background +{ + border-color: rgb(40, 40, 40); + background-color: rgb(60, 60, 60); +} + +/* || Panels || */ +#leftPanel +{ + flex-direction: column; + flex-grow: 1; + flex-shrink: 0; + flex-basis: 0; + width: 290px; + max-width: 290px; + padding: 3px; +} + +#contentPanel +{ + padding: 3px; +} + +/* || TabToolbar || */ +#tabToolbar +{ + flex-direction: row; + justify-content: center; + margin-bottom: 4px; +} + +.selected-dark-tab-button +{ + -unity-background-image-tint-color: rgb(180, 180, 180); +} + +.selected-light-tab-button +{ + -unity-background-image-tint-color: rgb(210, 210, 210); +} + +/* || Warning Popup Window || */ +.warning-popup-window +{ + border-width: 2px; + border-color: #000000; +} + +.warning-popup-window__message +{ + margin: 10px; + white-space: normal; +} + +.warning-popup-window__button-container +{ + flex-direction: row; + flex-grow: 1; + justify-content: space-between; + margin: 10px 75px; + min-height: 20px; + height: 20px; +} + +.warning-popup-window__button-container > Button +{ + width: 75px; + min-height: 20px; +} + +/* || Sub-menu || */ +.sub-menu +{ + margin: 2px; + padding: 2px; + border-color: #010101; + border-width: 1px; + border-radius: 2px; +} + +.sub-menu-dark +{ + background-color: #404040; +} + +.sub-menu-light +{ + background-color: #CACACA; +} + +.sub-menu-title +{ + -unity-font-style: bold; + font-size: 15px; + padding-bottom: 5px; +} + +.sub-menu-button +{ + flex-grow: 0; + justify-content: center; + align-items: center; + align-self: center; + margin-top: 5px; + margin-bottom: 5px; + + min-width: 125px; + min-height: 25px; +} + +/* || Extra final touches || */ +#contentPanel ReorderableList +{ + max-height: 300px; +} + +TabToolbar +{ + min-height: 20px; +} + +#contentPanel TabToolbar +{ + flex-wrap: wrap; +} + +#ManagerMoreOptionButton{ + top: 0px; + right: 5px; + position: absolute; + align-self: flex-end; +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss.meta b/Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss.meta new file mode 100644 index 000000000..ef5f5bab4 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: dde60a90d31dc9d44be74c339427d85f +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Styles/ManagerStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss b/Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss new file mode 100644 index 000000000..f401e3932 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss @@ -0,0 +1,142 @@ +#header +{ + flex-shrink: 0; + border-width: 1px; + border-top-left-radius: 3px; + border-top-right-radius: 3px; + border-bottom-width: 0px; + padding-left: 2px; +} + +#body +{ + border-width: 1px; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; + min-height: 20px; + padding-left: 2px; +} + +.background-light +{ + background-color: rgb(225, 225, 225); + border-color: rgb(75, 75, 75); +} + +.background-dark +{ + background-color: rgb(75, 75, 75); + border-color: rgb(45, 45, 45); +} + +#list-item +{ + position: relative; + flex-direction: row; + flex-grow: 1; + flex-shrink: 0; + flex-basis: 0; +} + +.list-item-selected-light +{ + background-color: rgb(61, 128, 223); +} + +.list-item-selected-dark +{ + background-color: rgb(62, 95, 150); +} + +#knob +{ + width: 15px; + height: 15px; + margin-top: 2px; + margin-left: 2px; +} + +#add-button +{ + width: 25px; + background-image: none; + margin-right: 0px; + padding-top: 2px; + border-top-width: 1px; + border-bottom-width: 1px; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + font-size: 17px; + -unity-font-style: bold; +} + +#remove-button +{ + width: 25px; + background-image: none; + margin-left: 0px; + padding-top: 2px; + border-top-width: 1px; + border-bottom-width: 1px; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + font-size: 17px; + -unity-font-style: bold; +} + +.right-button-border +{ + border-right-width: 1px; + border-bottom-right-radius: 3px; +} + +.no-right-button-border +{ + border-right-width: 0px; + border-bottom-right-radius: 0px; +} + +.left-button-border +{ + border-left-width: 1px; + border-bottom-left-radius: 3px; +} + +.no-left-button-border +{ + border-left-width: 0px; + border-bottom-left-radius: 0px; +} + +.button-border-light +{ + border-color: rgb(110, 110, 110); + border-top-color: rgb(190, 190, 190); +} + +.button-border-dark +{ + border-color: rgb(35, 35, 35); + border-top-color: rgb(90, 90, 90); +} + +.button-disabled-light +{ + color: rgb(133, 133, 133); +} + +.button-disabled-dark +{ + color: rgb(107, 107, 107); +} + +#footer +{ + flex-direction: row; + justify-content: flex-end; + margin-top: -2px; + margin-bottom: 1px; + height: 22px; + min-height: 22px; + padding-right: 5px; +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss.meta b/Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss.meta new file mode 100644 index 000000000..01bd28ff0 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: 5ba824b8e0b8de6439f8723fb0e2cae7 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Styles/ReorderableListStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss b/Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss new file mode 100644 index 000000000..3c7832db3 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss @@ -0,0 +1,82 @@ + +#name-label +{ + flex-basis: 0px; + flex-grow: 1; + flex-shrink: 1; + margin-left: 20px; +} + +#name-field +{ + flex-basis: 0px; + flex-grow: 1; + flex-shrink: 1; +} + +#preset-label +{ + flex-basis: 0px; + flex-grow: 1; + max-width: 208px; +} + +#preset-field +{ + flex-basis: 0px; + flex-grow: 1; + max-width: 200px; +} + +#blocked-by-label +{ + margin-right: 4px; +} + +#blocked-by-field +{ + width: 82px; + margin-right: 12px; +} + +#persist-label +{ + margin-right: 4px; +} + +#persist-button +{ + margin-right: 28px; + width: 16px; +} + +.persist-dark-icon +{ + background-image: url("../Icons/PersistDarkIcon.png"); +} + +.persist-light-icon +{ + background-image: url("../Icons/PersistLightIcon.png"); +} + +#activate-label +{ + margin-right: 4px; +} + +#activate-button +{ + margin-right: 18px; + width: 16px; +} + +.activate-dark-icon +{ + background-image: url("../Icons/ActivateDarkIcon.png"); +} + +.activate-light-icon +{ + background-image: url("../Icons/ActivateLightIcon.png"); +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss.meta b/Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss.meta new file mode 100644 index 000000000..e944c8725 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: a243b2a2fb9cc0d45a2aac464a7a3ba3 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Styles/ReorderableStateListStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss b/Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss new file mode 100644 index 000000000..a82025397 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss @@ -0,0 +1,252 @@ +.horizontal-layout +{ + flex-direction: row; + flex-grow: 1; +} + +.vertical-layout +{ + flex-direction: column; + flex-grow: 1; + overflow: hidden; +} + +.flex-grow +{ + flex-grow: 1; + overflow: hidden; +} + +.flex-shrink +{ + flex-shrink: 1; +} + +.horizontal-layout-list +{ + flex-grow: 1; + flex-direction: row; +} + +.flex-list +{ + flex-grow: 1; +} + +#filter-window +{ + position: absolute; + border-width: 1px; + border-color: rgb(76, 76, 76); +} + +#tab-toolbar +{ + flex-direction: row; + justify-content: center; + margin-bottom: 4px; + flex-shrink: 0; +} + +.selected-dark-tab-button +{ + background-color: rgb(36, 36, 36); +} + +.selected-light-tab-button +{ + background-color: rgb(222, 222, 222); +} + +.right-justified-content +{ + justify-content: flex-end; +} + +.list-item-focus-light +{ + background-color: rgb(61, 128, 223); +} + +.list-item-focus-light:hover +{ + background-color: rgb(61, 128, 223); +} + +.list-item-focus-dark +{ + background-color: rgb(62, 95, 150); +} + +.list-item-focus-dark:hover +{ + background-color: rgb(62, 95, 150); +} + +/* || Header || */ +.header-attribute{ + -unity-font-style: bold; + font-size: 14px; + margin-top: 5px; + margin-bottom: 2px; +} + +.header +{ + -unity-text-align: middle-center; + flex: 0 0 auto; + overflow: hidden; + white-space: nowrap; + border-top-width: 1px; + border-bottom-width: 1px; +} + +.header-light +{ + background-color: rgb(170, 170, 170); + border-color: rgb(140, 140, 140); +} + +.header-dark +{ + background-color: rgb(66, 66, 66); + border-color: rgb(36, 36, 36); +} + +.header-text +{ + -unity-font-style: bold; + font-size: 15px; +} + +.base-field +{ + margin-left: 3px; +} + +#radio-checkmark +{ + width: 14px; + height: 14px; + flex: 0 0 auto; + align-self: center; +} + +RadioToggle > VisualElement:checked > .dark-radio-checkmark +{ + background-image: url("../Icons/RadioButtonSelectedDark.png"); +} + +RadioToggle > VisualElement > .dark-radio-checkmark +{ + background-image: url("../Icons/RadioButtonDark.png"); +} + +RadioToggle > VisualElement:checked > .light-radio-checkmark +{ + background-image: url("../Icons/RadioButtonSelectedLight.png"); +} + +RadioToggle > VisualElement > .light-radio-checkmark +{ + background-image: url("../Icons/RadioButtonLight.png"); +} + +/* || Data Map || */ +.data-map-list-element +{ + flex-direction: row; +} + +.data-map-list-element_warning +{ + width: 18px; +} + +.data-map-list-element_id +{ + margin-right: 0; +} + +.data-map-list-element_id > IntegerInput +{ + width: 90px; +} + +.data-map-list-element_reorderable_state_button +{ + width: 15px; + height: 14px; + margin: 1px 5px 0px -16px; + padding: 0px 1px 0px 1px; + font-size: 10px; +} + +.data-map-list-element_button +{ + width: 17px; + height: 16px; + margin: 0px 5px 0px -18px; + padding: 0px 1px 0px 1px; + font-size: 10px; +} + +.data-map-list-element_name +{ + flex-grow: 1; +} + +.delete-dark-icon +{ + padding-left: 8px; + padding-right: 8px; + background-image: url("../Icons/DeleteDarkIcon.png"); +} + +.delete-light-icon +{ + padding-left: 8px; + padding-right: 8px; + background-image: url("../Icons/DeleteLightIcon.png"); +} + +.info-dark-icon +{ + padding-left: 8px; + padding-right: 8px; + background-image: url("../Icons/InfoDarkIcon.png"); +} + +.info-light-icon +{ + padding-left: 8px; + padding-right: 8px; + background-image: url("../Icons/InfoLightIcon.png"); +} + +.duplicate-dark-icon +{ + padding-left: 8px; + padding-right: 8px; + background-image: url("../Icons/DuplicateDarkIcon.png"); +} + +.duplicate-light-icon +{ + padding-left: 8px; + padding-right: 8px; + background-image: url("../Icons/DuplicateLightIcon.png"); +} + +#no-border-button +{ + border-width: 0; + margin-top: 0px; + background-color: rgba(0, 0, 0, 0); + margin-bottom: 0px; +} + +#no-background-button +{ + background-color: rgba(0, 0, 0, 0); +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss.meta b/Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss.meta new file mode 100644 index 000000000..503052a78 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss.meta @@ -0,0 +1,17 @@ +fileFormatVersion: 2 +guid: e70f56fae2d84394b861a2013cb384d0 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Styles/SharedStyles.uss + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/UIElements.meta b/Packages/com.opsive.shared/Editor/UIElements.meta new file mode 100644 index 000000000..212f0f025 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/UIElements.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 525f8d1940e8d9c44950049a757aa03e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll b/Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll new file mode 100644 index 000000000..e7e7b9cb6 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c4a2ab4c0d78a6c3b87c3634787860de9fb3cf78a1bf934449b3d01c4cc4089 +size 142336 diff --git a/Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll.meta b/Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll.meta new file mode 100644 index 000000000..16bdc28e3 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll.meta @@ -0,0 +1,40 @@ +fileFormatVersion: 2 +guid: 8d6286e4e9150ca439cd0258dfb43829 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/UIElements/Opsive.Shared.Editor.UIElements.dll + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Editor/Utility.meta b/Packages/com.opsive.shared/Editor/Utility.meta new file mode 100644 index 000000000..84818e273 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Utility.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 24e21ebc3ff7fcc468afcfc0c3fca046 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll b/Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll new file mode 100644 index 000000000..1fa26be3b --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4f839c8e51cf3553aee1256d05daabb9417050642045a5d5be3f58379a99fea +size 8192 diff --git a/Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll.meta b/Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll.meta new file mode 100644 index 000000000..f2c776880 --- /dev/null +++ b/Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll.meta @@ -0,0 +1,40 @@ +fileFormatVersion: 2 +guid: bdedcf5dba22c4649a3810a7e3d284d6 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Editor/Utility/Opsive.Shared.Editor.Utility.dll + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Runtime.meta b/Packages/com.opsive.shared/Runtime.meta new file mode 100644 index 000000000..23b94e1a0 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 06e39a3123a2d0d4c93e6c65d00c8e31 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Runtime/Events.meta b/Packages/com.opsive.shared/Runtime/Events.meta new file mode 100644 index 000000000..e69ab0b72 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Events.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6fd69414451ff34e841c44831e29896 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs b/Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs new file mode 100644 index 000000000..ca399ace3 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs @@ -0,0 +1,25 @@ +/// --------------------------------------------- +/// Opsive Shared +/// Copyright (c) Opsive. All Rights Reserved. +/// https://www.opsive.com +/// --------------------------------------------- + +namespace Opsive.Shared.Events +{ + using UnityEngine; + + /// + /// Resets the event handler static variables. + /// + public class DomainResetter + { + /// + /// Reset the static variables for domain reloading. + /// + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] + public static void DomainReset() + { + EventHandler.DomainReset(); + } + } +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs.meta b/Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs.meta new file mode 100644 index 000000000..e072d04b0 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs.meta @@ -0,0 +1,20 @@ +fileFormatVersion: 2 +guid: 384d3bda6eb7fa7419baa2a10de5509b +timeCreated: 1553589428 +licenseType: Store +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll b/Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll new file mode 100644 index 000000000..d103e0df5 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4b9e6ac4bdd90c8a84518bd88f0e9fc1afd75bccfb2f245b173276e33c68bdb +size 22528 diff --git a/Assets/External/Behavior Designer/Editor/BehaviorDesigner.Editor.dll.meta b/Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll.meta similarity index 69% rename from Assets/External/Behavior Designer/Editor/BehaviorDesigner.Editor.dll.meta rename to Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll.meta index 4aa870f7b..141219f6d 100644 --- a/Assets/External/Behavior Designer/Editor/BehaviorDesigner.Editor.dll.meta +++ b/Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: af72b091e5876924c9ab327b2d8de270 +guid: 14990ce18bef71b4e870e68ef592c094 PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,19 +7,19 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 0 + isOverridable: 1 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Any: second: - enabled: 0 + enabled: 1 settings: {} - first: Editor: Editor second: - enabled: 1 + enabled: 0 settings: DefaultValueInitialized: true - first: @@ -33,8 +33,8 @@ PluginImporter: assetBundleVariant: AssetOrigin: serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Editor/BehaviorDesigner.Editor.dll - uploadId: 732694 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Runtime/Events/Opsive.Shared.Events.dll + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef b/Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef new file mode 100644 index 000000000..99c4adb62 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef @@ -0,0 +1,16 @@ +{ + "name": "Opsive.Shared.Runtime", + "rootNamespace": "", + "references": [ + "GUID:6055be8ebefd69e48b49212b09b47b2f" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef.meta b/Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef.meta new file mode 100644 index 000000000..d237a11f7 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: d8e89a79cd8df884b8d5b3356783eb74 +timeCreated: 1567445886 +licenseType: Store +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Runtime/Opsive.Shared.Runtime.asmdef + uploadId: 775358 diff --git a/Packages/com.opsive.shared/Runtime/Utility.meta b/Packages/com.opsive.shared/Runtime/Utility.meta new file mode 100644 index 000000000..4c68c11c5 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Utility.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1428842adb8bba54bb6795c28aad9c33 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll b/Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll new file mode 100644 index 000000000..e8c997e15 --- /dev/null +++ b/Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d182236c5c81909d27427ee025badb4f2b1dcb9f8fc5a30631b51a6797d2ea96 +size 59904 diff --git a/Assets/External/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll.meta b/Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll.meta similarity index 69% rename from Assets/External/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll.meta rename to Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll.meta index 0dd1970af..9b78c9ee1 100644 --- a/Assets/External/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll.meta +++ b/Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: da41a8dd3b5ec434a802d9b5a2a0a777 +guid: aa6e28506dd791845bda41d3ca14036f PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,7 +7,7 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 0 + isOverridable: 1 isExplicitlyReferenced: 0 validateReferences: 1 platformData: @@ -33,8 +33,8 @@ PluginImporter: assetBundleVariant: AssetOrigin: serializedVersion: 1 - productId: 15277 - packageName: Behavior Designer - Behavior Trees for Everyone - packageVersion: 1.7.12 - assetPath: Assets/Behavior Designer/Runtime/BehaviorDesigner.Runtime.dll - uploadId: 732694 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/Runtime/Utility/Opsive.Shared.Utility.dll + uploadId: 775358 diff --git a/Packages/com.opsive.shared/package.json b/Packages/com.opsive.shared/package.json new file mode 100644 index 000000000..bb5ab58fc --- /dev/null +++ b/Packages/com.opsive.shared/package.json @@ -0,0 +1,12 @@ +{ + "name": "com.opsive.shared", + "version": "2.0.11", + "displayName": "Opsive Shared", + "description": "Shared files between Opsive assets.", + "documentationUrl": "https://opsive.com/", + "author": { + "name": "Opsive", + "email": "support@opsive.com", + "url": "https://opsive.com" + } +} \ No newline at end of file diff --git a/Packages/com.opsive.shared/package.json.meta b/Packages/com.opsive.shared/package.json.meta new file mode 100644 index 000000000..011b15f3a --- /dev/null +++ b/Packages/com.opsive.shared/package.json.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: 5a7d06dc0c182624b835fb9b256429b3 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 298743 + packageName: Behavior Designer Pro - DOTS Powered Behavior Trees + packageVersion: 2.0.14p1 + assetPath: Packages/com.opsive.shared/package.json + uploadId: 775358 diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index f94110185..0ce63415a 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -86,6 +86,31 @@ }, "hash": "f15c79e9d1b35309010afb88e7f376803af54390" }, + "com.opsive.behaviordesigner": { + "version": "file:com.opsive.behaviordesigner", + "depth": 0, + "source": "embedded", + "dependencies": { + "com.opsive.shared": "2.0.0", + "com.opsive.graphdesigner": "2.0.0", + "com.unity.burst": "1.8.17", + "com.unity.entities": "1.3.8" + } + }, + "com.opsive.graphdesigner": { + "version": "file:com.opsive.graphdesigner", + "depth": 0, + "source": "embedded", + "dependencies": { + "com.opsive.shared": "2.0.0" + } + }, + "com.opsive.shared": { + "version": "file:com.opsive.shared", + "depth": 0, + "source": "embedded", + "dependencies": {} + }, "com.superlazy.sllogger": { "version": "file:com.superlazy.sllogger", "depth": 0, @@ -278,6 +303,28 @@ "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.entities": { + "version": "1.3.8", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.burst": "1.8.18", + "com.unity.collections": "2.5.1", + "com.unity.mathematics": "1.3.2", + "com.unity.modules.audio": "1.0.0", + "com.unity.serialization": "3.1.1", + "com.unity.profiling.core": "1.0.2", + "com.unity.modules.physics": "1.0.0", + "com.unity.nuget.mono-cecil": "1.11.4", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.scriptablebuildpipeline": "1.21.21", + "com.unity.test-framework.performance": "3.0.3" + }, + "url": "https://packages.unity.com" + }, "com.unity.ext.nunit": { "version": "2.0.5", "depth": 1, @@ -494,6 +541,16 @@ "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.serialization": { + "version": "3.1.2", + "depth": 2, + "source": "registry", + "dependencies": { + "com.unity.burst": "1.7.2", + "com.unity.collections": "2.4.2" + }, + "url": "https://packages.unity.com" + }, "com.unity.settings-manager": { "version": "2.1.0", "depth": 2,