From 21e186f75b504d832d9c7bef0456edd7d5d3155e Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 8 Sep 2021 10:52:35 +0800 Subject: +behavior design --- Assets/Art/BOXOPHOBIC.meta | 8 + Assets/Art/BOXOPHOBIC/Atmospheric Height Fog.meta | 8 + .../Atmospheric Height Fog.pdf | Bin 0 -> 1880958 bytes .../Atmospheric Height Fog.pdf.meta | 9 + .../BOXOPHOBIC/Atmospheric Height Fog/Core.meta | 8 + .../Atmospheric Height Fog/Core/Editor.meta | 8 + .../Boxophobic.AtmosphericHeightFog.Editor.asmdef | 18 + ...ophobic.AtmosphericHeightFog.Editor.asmdef.meta | 7 + .../Core/Editor/HeightFogCreate.cs | 111 + .../Core/Editor/HeightFogCreate.cs.meta | 13 + .../Core/Editor/HeightFogGlobalInspector.cs | 46 + .../Core/Editor/HeightFogGlobalInspector.cs.meta | 11 + .../Core/Editor/HeightFogHub.cs | 158 ++ .../Core/Editor/HeightFogHub.cs.meta | 12 + .../Core/Editor/HeightFogOverrideInspector.cs | 45 + .../Core/Editor/HeightFogOverrideInspector.cs.meta | 11 + .../Core/Editor/HeightFogShaderGUI.cs | 61 + .../Core/Editor/HeightFogShaderGUI.cs.meta | 11 + .../Core/Editor/HeightFogWindows.cs | 41 + .../Core/Editor/HeightFogWindows.cs.meta | 11 + .../Core/Editor/Version.asset | 15 + .../Core/Editor/Version.asset.meta | 8 + .../Atmospheric Height Fog/Core/Functions.meta | 8 + .../Core/Functions/Apply Height Fog.asset | 48 + .../Core/Functions/Apply Height Fog.asset.meta | 10 + .../Core/Functions/Apply Height Fog.shadersubgraph | 80 + .../Functions/Apply Height Fog.shadersubgraph.meta | 10 + .../Core/Functions/Base.asset | 67 + .../Core/Functions/Base.asset.meta | 10 + .../Core/Functions/Compute Fog Distance.asset | 40 + .../Core/Functions/Compute Fog Distance.asset.meta | 10 + .../Core/Functions/Handle Color Space.asset | 38 + .../Core/Functions/Handle Color Space.asset.meta | 10 + .../Core/Functions/Handle Tex Alpha.asset | 38 + .../Core/Functions/Handle Tex Alpha.asset.meta | 10 + .../Core/Functions/Is Pipeline.asset | 39 + .../Core/Functions/Is Pipeline.asset.meta | 8 + .../Core/Functions/Remap To 0-1.asset | 43 + .../Core/Functions/Remap To 0-1.asset.meta | 9 + .../Atmospheric Height Fog/Core/Includes.meta | 8 + .../Core/Includes/AtmosphericHeightFog.cginc | 151 ++ .../Core/Includes/AtmosphericHeightFog.cginc.meta | 9 + .../Atmospheric Height Fog/Core/Pipelines.meta | 8 + .../Core/Pipelines/Built-in Pipeline.unitypackage | Bin 0 -> 69354 bytes .../Pipelines/Built-in Pipeline.unitypackage.meta | 7 + .../Core/Pipelines/Universal 7.1.8+.unitypackage | Bin 0 -> 86852 bytes .../Pipelines/Universal 7.1.8+.unitypackage.meta | 7 + .../Universal 7.4.1+ (WebGL).unitypackage | Bin 0 -> 82538 bytes .../Universal 7.4.1+ (WebGL).unitypackage.meta | 7 + .../Core/Pipelines/Universal 7.4.1+.unitypackage | Bin 0 -> 82530 bytes .../Pipelines/Universal 7.4.1+.unitypackage.meta | 7 + .../Atmospheric Height Fog/Core/Resources.meta | 8 + .../Core/Resources/Height Fog Global.shader | 301 +++ .../Core/Resources/Height Fog Global.shader.meta | 10 + .../Core/Resources/Height Fog Per Object.shader | 294 +++ .../Resources/Height Fog Per Object.shader.meta | 9 + .../Core/Resources/Height Fog Preset.mat | 62 + .../Core/Resources/Height Fog Preset.mat.meta | 8 + .../Core/Resources/Height Fog Preset.shader | 231 ++ .../Core/Resources/Height Fog Preset.shader.meta | 9 + .../Atmospheric Height Fog/Core/Runtime.meta | 8 + .../Boxophobic.AtmosphericHeightFog.Runtime.asmdef | 14 + ...phobic.AtmosphericHeightFog.Runtime.asmdef.meta | 7 + .../Core/Runtime/HeightFogEnums.cs | 37 + .../Core/Runtime/HeightFogEnums.cs.meta | 12 + .../Core/Runtime/HeightFogGlobal.cs | 439 ++++ .../Core/Runtime/HeightFogGlobal.cs.meta | 11 + .../Core/Runtime/HeightFogOverride.cs | 392 ++++ .../Core/Runtime/HeightFogOverride.cs.meta | 13 + .../Core/Runtime/HeightFogPerObject.cs | 186 ++ .../Core/Runtime/HeightFogPerObject.cs.meta | 13 + .../Atmospheric Height Fog/Core/Shaders.meta | 8 + .../Shaders/UI Default (Height Fog Support).shader | 280 +++ .../UI Default (Height Fog Support).shader.meta | 10 + .../BOXOPHOBIC/Atmospheric Height Fog/Demo.meta | 8 + .../Atmospheric Height Fog/Demo/Animation.meta | 8 + .../Demo/Animation/Camera.anim | 205 ++ .../Demo/Animation/Camera.anim.meta | 10 + .../Demo/Animation/Camera.controller | 69 + .../Demo/Animation/Camera.controller.meta | 10 + .../Atmospheric Height Fog/Demo/Demo.unity | 2276 ++++++++++++++++++++ .../Atmospheric Height Fog/Demo/Demo.unity.meta | 8 + .../Atmospheric Height Fog/Demo/Materials.meta | 8 + .../Demo/Materials/Opaque.mat | 76 + .../Demo/Materials/Opaque.mat.meta | 9 + .../Demo/Materials/Skybox.mat | 83 + .../Demo/Materials/Skybox.mat.meta | 10 + .../Demo/Materials/Transparent ASE.mat | 100 + .../Demo/Materials/Transparent ASE.mat.meta | 10 + .../Demo/Materials/Transparent.mat | 102 + .../Demo/Materials/Transparent.mat.meta | 9 + .../Atmospheric Height Fog/Demo/Materials/UI.mat | 100 + .../Demo/Materials/UI.mat.meta | 10 + .../Atmospheric Height Fog/Demo/Shaders.meta | 8 + .../Demo/Shaders/My Transparent Shader.shader | 262 +++ .../Demo/Shaders/My Transparent Shader.shader.meta | 10 + Assets/Art/BOXOPHOBIC/User.meta | 8 + Assets/Art/BOXOPHOBIC/User/User.pdf | Bin 0 -> 102073 bytes Assets/Art/BOXOPHOBIC/User/User.pdf.meta | 7 + Assets/Art/BOXOPHOBIC/Utils.meta | 8 + Assets/Art/BOXOPHOBIC/Utils/Editor.meta | 8 + .../Utils/Editor/Boxophobic.Utils.Editor.asmdef | 16 + .../Editor/Boxophobic.Utils.Editor.asmdef.meta | 7 + Assets/Art/BOXOPHOBIC/Utils/Editor/Constants.meta | 8 + .../BOXOPHOBIC/Utils/Editor/Constants/Constants.cs | 138 ++ .../Utils/Editor/Constants/Constants.cs.meta | 12 + .../Art/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta | 8 + .../Utils/Editor/SettingsUtils/LoadSettingsData.cs | 71 + .../Editor/SettingsUtils/LoadSettingsData.cs.meta | 11 + .../Utils/Editor/SettingsUtils/SaveSettingsData.cs | 71 + .../Editor/SettingsUtils/SaveSettingsData.cs.meta | 11 + Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI.meta | 8 + .../Utils/Editor/StyledGUI/DrawInspectorBanner.cs | 64 + .../Editor/StyledGUI/DrawInspectorBanner.cs.meta | 12 + .../Editor/StyledGUI/DrawInspectorCategory.cs | 46 + .../Editor/StyledGUI/DrawInspectorCategory.cs.meta | 12 + .../Utils/Editor/StyledGUI/DrawWindowBanner.cs | 64 + .../Editor/StyledGUI/DrawWindowBanner.cs.meta | 11 + .../Utils/Editor/StyledGUI/DrawWindowCategory.cs | 48 + .../Editor/StyledGUI/DrawWindowCategory.cs.meta | 12 + .../BOXOPHOBIC/Utils/Editor/StyledInspector.meta | 8 + .../Editor/StyledInspector/StyledBannerDrawer.cs | 83 + .../StyledInspector/StyledBannerDrawer.cs.meta | 12 + .../Editor/StyledInspector/StyledButtonDrawer.cs | 33 + .../StyledInspector/StyledButtonDrawer.cs.meta | 12 + .../Editor/StyledInspector/StyledCategoryDrawer.cs | 28 + .../StyledInspector/StyledCategoryDrawer.cs.meta | 12 + .../Editor/StyledInspector/StyledIndentDrawer.cs | 25 + .../StyledInspector/StyledIndentDrawer.cs.meta | 12 + .../StyledInspector/StyledInteractiveDrawer.cs | 55 + .../StyledInteractiveDrawer.cs.meta | 12 + .../Editor/StyledInspector/StyledMessageDrawer.cs | 52 + .../StyledInspector/StyledMessageDrawer.cs.meta | 12 + .../StyledInspector/StyledPopupArrayDrawer.cs | 36 + .../StyledInspector/StyledPopupArrayDrawer.cs.meta | 12 + .../StyledInspector/StyledPopupLayersDrawer.cs | 40 + .../StyledPopupLayersDrawer.cs.meta | 12 + .../StyledInspector/StyledRangeOptionsDrawer.cs | 71 + .../StyledRangeOptionsDrawer.cs.meta | 12 + .../Editor/StyledInspector/StyledSpaceDrawer.cs | 25 + .../StyledInspector/StyledSpaceDrawer.cs.meta | 12 + .../Editor/StyledInspector/StyledTextDrawer.cs | 45 + .../StyledInspector/StyledTextDrawer.cs.meta | 12 + .../StyledInspector/StyledTexturePreviewDrawer.cs | 22 + .../StyledTexturePreviewDrawer.cs.meta | 12 + .../BOXOPHOBIC/Utils/Editor/StyledMaterial.meta | 8 + .../Editor/StyledMaterial/StyledBannerDrawer.cs | 95 + .../StyledMaterial/StyledBannerDrawer.cs.meta | 12 + .../Editor/StyledMaterial/StyledButtonDrawer.cs | 71 + .../StyledMaterial/StyledButtonDrawer.cs.meta | 12 + .../Editor/StyledMaterial/StyledCategoryDrawer.cs | 45 + .../StyledMaterial/StyledCategoryDrawer.cs.meta | 12 + .../StyledDiffusionMaterialDrawer.cs | 93 + .../StyledDiffusionMaterialDrawer.cs.meta | 11 + .../Editor/StyledMaterial/StyledIndentDrawer.cs | 30 + .../StyledMaterial/StyledIndentDrawer.cs.meta | 11 + .../StyledMaterial/StyledInteractiveDrawer.cs | 92 + .../StyledMaterial/StyledInteractiveDrawer.cs.meta | 12 + .../Editor/StyledMaterial/StyledMessageDrawer.cs | 90 + .../StyledMaterial/StyledMessageDrawer.cs.meta | 12 + .../Editor/StyledMaterial/StyledSpaceDrawer.cs | 31 + .../StyledMaterial/StyledSpaceDrawer.cs.meta | 12 + .../Editor/StyledMaterial/StyledTextDrawer.cs | 99 + .../Editor/StyledMaterial/StyledTextDrawer.cs.meta | 12 + .../Editor/StyledMaterial/StyledToggleDrawer.cs | 80 + .../StyledMaterial/StyledToggleDrawer.cs.meta | 12 + Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono.meta | 8 + .../Editor/StyledMono/StyledMonoBehaviourEditor.cs | 20 + .../StyledMono/StyledMonoBehaviourEditor.cs.meta | 11 + .../StyledMono/StyledScriptableObjectEditor.cs | 20 + .../StyledScriptableObjectEditor.cs.meta | 11 + Assets/Art/BOXOPHOBIC/Utils/Resources.meta | 8 + .../Utils/Resources/Boxophobic - BannerBegin.psd | Bin 0 -> 29722 bytes .../Resources/Boxophobic - BannerBegin.psd.meta | 84 + .../Utils/Resources/Boxophobic - BannerEnd.psd | Bin 0 -> 29672 bytes .../Resources/Boxophobic - BannerEnd.psd.meta | 84 + .../Utils/Resources/Boxophobic - BannerMiddle.psd | Bin 0 -> 28444 bytes .../Resources/Boxophobic - BannerMiddle.psd.meta | 84 + .../Utils/Resources/Boxophobic - CategoryBegin.psd | Bin 0 -> 22206 bytes .../Resources/Boxophobic - CategoryBegin.psd.meta | 84 + .../Utils/Resources/Boxophobic - CategoryEnd.psd | Bin 0 -> 22190 bytes .../Resources/Boxophobic - CategoryEnd.psd.meta | 84 + .../Resources/Boxophobic - CategoryMiddle.psd | Bin 0 -> 21110 bytes .../Resources/Boxophobic - CategoryMiddle.psd.meta | 84 + .../Utils/Resources/Boxophobic - IconEdit.psd | Bin 0 -> 26106 bytes .../Utils/Resources/Boxophobic - IconEdit.psd.meta | 84 + .../Utils/Resources/Boxophobic - IconHelp.psd | Bin 0 -> 25972 bytes .../Utils/Resources/Boxophobic - IconHelp.psd.meta | 84 + .../Utils/Resources/Boxophobic - Logo.png | Bin 0 -> 3896 bytes .../Utils/Resources/Boxophobic - Logo.png.meta | 92 + Assets/Art/BOXOPHOBIC/Utils/Scripts.meta | 8 + .../Utils/Scripts/Boxophobic.Utils.Scripts.asmdef | 13 + .../Scripts/Boxophobic.Utils.Scripts.asmdef.meta | 7 + .../BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta | 8 + .../Utils/Scripts/SettingsUtils/SettingsData.cs | 13 + .../Scripts/SettingsUtils/SettingsData.cs.meta | 11 + .../BOXOPHOBIC/Utils/Scripts/StyledInspector.meta | 8 + .../Utils/Scripts/StyledInspector/StyledBanner.cs | 51 + .../Scripts/StyledInspector/StyledBanner.cs.meta | 12 + .../Utils/Scripts/StyledInspector/StyledButton.cs | 28 + .../Scripts/StyledInspector/StyledButton.cs.meta | 12 + .../Scripts/StyledInspector/StyledCategory.cs | 15 + .../Scripts/StyledInspector/StyledCategory.cs.meta | 12 + .../Utils/Scripts/StyledInspector/StyledIndent.cs | 17 + .../Scripts/StyledInspector/StyledIndent.cs.meta | 12 + .../Scripts/StyledInspector/StyledInteractive.cs | 27 + .../StyledInspector/StyledInteractive.cs.meta | 12 + .../Utils/Scripts/StyledInspector/StyledMessage.cs | 31 + .../Scripts/StyledInspector/StyledMessage.cs.meta | 12 + .../Scripts/StyledInspector/StyledPopupArray.cs | 17 + .../StyledInspector/StyledPopupArray.cs.meta | 12 + .../Scripts/StyledInspector/StyledPopupLayers.cs | 11 + .../StyledInspector/StyledPopupLayers.cs.meta | 12 + .../Scripts/StyledInspector/StyledRangeOptions.cs | 24 + .../StyledInspector/StyledRangeOptions.cs.meta | 12 + .../Utils/Scripts/StyledInspector/StyledSpace.cs | 15 + .../Scripts/StyledInspector/StyledSpace.cs.meta | 12 + .../Utils/Scripts/StyledInspector/StyledText.cs | 34 + .../Scripts/StyledInspector/StyledText.cs.meta | 12 + .../StyledInspector/StyledTexturePreview.cs | 9 + .../StyledInspector/StyledTexturePreview.cs.meta | 12 + .../Art/BOXOPHOBIC/Utils/Scripts/StyledMono.meta | 8 + .../Scripts/StyledMono/StyledMonoBehaviour.cs | 7 + .../Scripts/StyledMono/StyledMonoBehaviour.cs.meta | 11 + .../Scripts/StyledMono/StyledScriptableObject.cs | 7 + .../StyledMono/StyledScriptableObject.cs.meta | 11 + Assets/Art/BOXOPHOBIC/Utils/Utils.pdf | Bin 0 -> 85854 bytes Assets/Art/BOXOPHOBIC/Utils/Utils.pdf.meta | 7 + Assets/BOXOPHOBIC.meta | 8 - Assets/BOXOPHOBIC/Atmospheric Height Fog.meta | 8 - .../Atmospheric Height Fog.pdf | Bin 1880958 -> 0 bytes .../Atmospheric Height Fog.pdf.meta | 9 - Assets/BOXOPHOBIC/Atmospheric Height Fog/Core.meta | 8 - .../Atmospheric Height Fog/Core/Editor.meta | 8 - .../Boxophobic.AtmosphericHeightFog.Editor.asmdef | 18 - ...ophobic.AtmosphericHeightFog.Editor.asmdef.meta | 7 - .../Core/Editor/HeightFogCreate.cs | 111 - .../Core/Editor/HeightFogCreate.cs.meta | 13 - .../Core/Editor/HeightFogGlobalInspector.cs | 46 - .../Core/Editor/HeightFogGlobalInspector.cs.meta | 11 - .../Core/Editor/HeightFogHub.cs | 158 -- .../Core/Editor/HeightFogHub.cs.meta | 12 - .../Core/Editor/HeightFogOverrideInspector.cs | 45 - .../Core/Editor/HeightFogOverrideInspector.cs.meta | 11 - .../Core/Editor/HeightFogShaderGUI.cs | 61 - .../Core/Editor/HeightFogShaderGUI.cs.meta | 11 - .../Core/Editor/HeightFogWindows.cs | 41 - .../Core/Editor/HeightFogWindows.cs.meta | 11 - .../Core/Editor/Version.asset | 15 - .../Core/Editor/Version.asset.meta | 8 - .../Atmospheric Height Fog/Core/Functions.meta | 8 - .../Core/Functions/Apply Height Fog.asset | 48 - .../Core/Functions/Apply Height Fog.asset.meta | 10 - .../Core/Functions/Apply Height Fog.shadersubgraph | 80 - .../Functions/Apply Height Fog.shadersubgraph.meta | 10 - .../Core/Functions/Base.asset | 67 - .../Core/Functions/Base.asset.meta | 10 - .../Core/Functions/Compute Fog Distance.asset | 40 - .../Core/Functions/Compute Fog Distance.asset.meta | 10 - .../Core/Functions/Handle Color Space.asset | 38 - .../Core/Functions/Handle Color Space.asset.meta | 10 - .../Core/Functions/Handle Tex Alpha.asset | 38 - .../Core/Functions/Handle Tex Alpha.asset.meta | 10 - .../Core/Functions/Is Pipeline.asset | 39 - .../Core/Functions/Is Pipeline.asset.meta | 8 - .../Core/Functions/Remap To 0-1.asset | 43 - .../Core/Functions/Remap To 0-1.asset.meta | 9 - .../Atmospheric Height Fog/Core/Includes.meta | 8 - .../Core/Includes/AtmosphericHeightFog.cginc | 151 -- .../Core/Includes/AtmosphericHeightFog.cginc.meta | 9 - .../Atmospheric Height Fog/Core/Pipelines.meta | 8 - .../Core/Pipelines/Built-in Pipeline.unitypackage | Bin 69354 -> 0 bytes .../Pipelines/Built-in Pipeline.unitypackage.meta | 7 - .../Core/Pipelines/Universal 7.1.8+.unitypackage | Bin 86852 -> 0 bytes .../Pipelines/Universal 7.1.8+.unitypackage.meta | 7 - .../Universal 7.4.1+ (WebGL).unitypackage | Bin 82538 -> 0 bytes .../Universal 7.4.1+ (WebGL).unitypackage.meta | 7 - .../Core/Pipelines/Universal 7.4.1+.unitypackage | Bin 82530 -> 0 bytes .../Pipelines/Universal 7.4.1+.unitypackage.meta | 7 - .../Atmospheric Height Fog/Core/Resources.meta | 8 - .../Core/Resources/Height Fog Global.shader | 301 --- .../Core/Resources/Height Fog Global.shader.meta | 10 - .../Core/Resources/Height Fog Per Object.shader | 294 --- .../Resources/Height Fog Per Object.shader.meta | 9 - .../Core/Resources/Height Fog Preset.mat | 62 - .../Core/Resources/Height Fog Preset.mat.meta | 8 - .../Core/Resources/Height Fog Preset.shader | 231 -- .../Core/Resources/Height Fog Preset.shader.meta | 9 - .../Atmospheric Height Fog/Core/Runtime.meta | 8 - .../Boxophobic.AtmosphericHeightFog.Runtime.asmdef | 14 - ...phobic.AtmosphericHeightFog.Runtime.asmdef.meta | 7 - .../Core/Runtime/HeightFogEnums.cs | 37 - .../Core/Runtime/HeightFogEnums.cs.meta | 12 - .../Core/Runtime/HeightFogGlobal.cs | 439 ---- .../Core/Runtime/HeightFogGlobal.cs.meta | 11 - .../Core/Runtime/HeightFogOverride.cs | 392 ---- .../Core/Runtime/HeightFogOverride.cs.meta | 13 - .../Core/Runtime/HeightFogPerObject.cs | 186 -- .../Core/Runtime/HeightFogPerObject.cs.meta | 13 - .../Atmospheric Height Fog/Core/Shaders.meta | 8 - .../Shaders/UI Default (Height Fog Support).shader | 280 --- .../UI Default (Height Fog Support).shader.meta | 10 - Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta | 8 - .../Atmospheric Height Fog/Demo/Animation.meta | 8 - .../Demo/Animation/Camera.anim | 205 -- .../Demo/Animation/Camera.anim.meta | 10 - .../Demo/Animation/Camera.controller | 69 - .../Demo/Animation/Camera.controller.meta | 10 - .../Atmospheric Height Fog/Demo/Demo.unity | 2276 -------------------- .../Atmospheric Height Fog/Demo/Demo.unity.meta | 8 - .../Atmospheric Height Fog/Demo/Materials.meta | 8 - .../Demo/Materials/Opaque.mat | 76 - .../Demo/Materials/Opaque.mat.meta | 9 - .../Demo/Materials/Skybox.mat | 83 - .../Demo/Materials/Skybox.mat.meta | 10 - .../Demo/Materials/Transparent ASE.mat | 100 - .../Demo/Materials/Transparent ASE.mat.meta | 10 - .../Demo/Materials/Transparent.mat | 102 - .../Demo/Materials/Transparent.mat.meta | 9 - .../Atmospheric Height Fog/Demo/Materials/UI.mat | 100 - .../Demo/Materials/UI.mat.meta | 10 - .../Atmospheric Height Fog/Demo/Shaders.meta | 8 - .../Demo/Shaders/My Transparent Shader.shader | 262 --- .../Demo/Shaders/My Transparent Shader.shader.meta | 10 - Assets/BOXOPHOBIC/User.meta | 8 - Assets/BOXOPHOBIC/User/User.pdf | Bin 102073 -> 0 bytes Assets/BOXOPHOBIC/User/User.pdf.meta | 7 - Assets/BOXOPHOBIC/Utils.meta | 8 - Assets/BOXOPHOBIC/Utils/Editor.meta | 8 - .../Utils/Editor/Boxophobic.Utils.Editor.asmdef | 16 - .../Editor/Boxophobic.Utils.Editor.asmdef.meta | 7 - Assets/BOXOPHOBIC/Utils/Editor/Constants.meta | 8 - .../BOXOPHOBIC/Utils/Editor/Constants/Constants.cs | 138 -- .../Utils/Editor/Constants/Constants.cs.meta | 12 - Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta | 8 - .../Utils/Editor/SettingsUtils/LoadSettingsData.cs | 71 - .../Editor/SettingsUtils/LoadSettingsData.cs.meta | 11 - .../Utils/Editor/SettingsUtils/SaveSettingsData.cs | 71 - .../Editor/SettingsUtils/SaveSettingsData.cs.meta | 11 - Assets/BOXOPHOBIC/Utils/Editor/StyledGUI.meta | 8 - .../Utils/Editor/StyledGUI/DrawInspectorBanner.cs | 64 - .../Editor/StyledGUI/DrawInspectorBanner.cs.meta | 12 - .../Editor/StyledGUI/DrawInspectorCategory.cs | 46 - .../Editor/StyledGUI/DrawInspectorCategory.cs.meta | 12 - .../Utils/Editor/StyledGUI/DrawWindowBanner.cs | 64 - .../Editor/StyledGUI/DrawWindowBanner.cs.meta | 11 - .../Utils/Editor/StyledGUI/DrawWindowCategory.cs | 48 - .../Editor/StyledGUI/DrawWindowCategory.cs.meta | 12 - .../BOXOPHOBIC/Utils/Editor/StyledInspector.meta | 8 - .../Editor/StyledInspector/StyledBannerDrawer.cs | 83 - .../StyledInspector/StyledBannerDrawer.cs.meta | 12 - .../Editor/StyledInspector/StyledButtonDrawer.cs | 33 - .../StyledInspector/StyledButtonDrawer.cs.meta | 12 - .../Editor/StyledInspector/StyledCategoryDrawer.cs | 28 - .../StyledInspector/StyledCategoryDrawer.cs.meta | 12 - .../Editor/StyledInspector/StyledIndentDrawer.cs | 25 - .../StyledInspector/StyledIndentDrawer.cs.meta | 12 - .../StyledInspector/StyledInteractiveDrawer.cs | 55 - .../StyledInteractiveDrawer.cs.meta | 12 - .../Editor/StyledInspector/StyledMessageDrawer.cs | 52 - .../StyledInspector/StyledMessageDrawer.cs.meta | 12 - .../StyledInspector/StyledPopupArrayDrawer.cs | 36 - .../StyledInspector/StyledPopupArrayDrawer.cs.meta | 12 - .../StyledInspector/StyledPopupLayersDrawer.cs | 40 - .../StyledPopupLayersDrawer.cs.meta | 12 - .../StyledInspector/StyledRangeOptionsDrawer.cs | 71 - .../StyledRangeOptionsDrawer.cs.meta | 12 - .../Editor/StyledInspector/StyledSpaceDrawer.cs | 25 - .../StyledInspector/StyledSpaceDrawer.cs.meta | 12 - .../Editor/StyledInspector/StyledTextDrawer.cs | 45 - .../StyledInspector/StyledTextDrawer.cs.meta | 12 - .../StyledInspector/StyledTexturePreviewDrawer.cs | 22 - .../StyledTexturePreviewDrawer.cs.meta | 12 - Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta | 8 - .../Editor/StyledMaterial/StyledBannerDrawer.cs | 95 - .../StyledMaterial/StyledBannerDrawer.cs.meta | 12 - .../Editor/StyledMaterial/StyledButtonDrawer.cs | 71 - .../StyledMaterial/StyledButtonDrawer.cs.meta | 12 - .../Editor/StyledMaterial/StyledCategoryDrawer.cs | 45 - .../StyledMaterial/StyledCategoryDrawer.cs.meta | 12 - .../StyledDiffusionMaterialDrawer.cs | 93 - .../StyledDiffusionMaterialDrawer.cs.meta | 11 - .../Editor/StyledMaterial/StyledIndentDrawer.cs | 30 - .../StyledMaterial/StyledIndentDrawer.cs.meta | 11 - .../StyledMaterial/StyledInteractiveDrawer.cs | 92 - .../StyledMaterial/StyledInteractiveDrawer.cs.meta | 12 - .../Editor/StyledMaterial/StyledMessageDrawer.cs | 90 - .../StyledMaterial/StyledMessageDrawer.cs.meta | 12 - .../Editor/StyledMaterial/StyledSpaceDrawer.cs | 31 - .../StyledMaterial/StyledSpaceDrawer.cs.meta | 12 - .../Editor/StyledMaterial/StyledTextDrawer.cs | 99 - .../Editor/StyledMaterial/StyledTextDrawer.cs.meta | 12 - .../Editor/StyledMaterial/StyledToggleDrawer.cs | 80 - .../StyledMaterial/StyledToggleDrawer.cs.meta | 12 - Assets/BOXOPHOBIC/Utils/Editor/StyledMono.meta | 8 - .../Editor/StyledMono/StyledMonoBehaviourEditor.cs | 20 - .../StyledMono/StyledMonoBehaviourEditor.cs.meta | 11 - .../StyledMono/StyledScriptableObjectEditor.cs | 20 - .../StyledScriptableObjectEditor.cs.meta | 11 - Assets/BOXOPHOBIC/Utils/Resources.meta | 8 - .../Utils/Resources/Boxophobic - BannerBegin.psd | Bin 29722 -> 0 bytes .../Resources/Boxophobic - BannerBegin.psd.meta | 84 - .../Utils/Resources/Boxophobic - BannerEnd.psd | Bin 29672 -> 0 bytes .../Resources/Boxophobic - BannerEnd.psd.meta | 84 - .../Utils/Resources/Boxophobic - BannerMiddle.psd | Bin 28444 -> 0 bytes .../Resources/Boxophobic - BannerMiddle.psd.meta | 84 - .../Utils/Resources/Boxophobic - CategoryBegin.psd | Bin 22206 -> 0 bytes .../Resources/Boxophobic - CategoryBegin.psd.meta | 84 - .../Utils/Resources/Boxophobic - CategoryEnd.psd | Bin 22190 -> 0 bytes .../Resources/Boxophobic - CategoryEnd.psd.meta | 84 - .../Resources/Boxophobic - CategoryMiddle.psd | Bin 21110 -> 0 bytes .../Resources/Boxophobic - CategoryMiddle.psd.meta | 84 - .../Utils/Resources/Boxophobic - IconEdit.psd | Bin 26106 -> 0 bytes .../Utils/Resources/Boxophobic - IconEdit.psd.meta | 84 - .../Utils/Resources/Boxophobic - IconHelp.psd | Bin 25972 -> 0 bytes .../Utils/Resources/Boxophobic - IconHelp.psd.meta | 84 - .../Utils/Resources/Boxophobic - Logo.png | Bin 3896 -> 0 bytes .../Utils/Resources/Boxophobic - Logo.png.meta | 92 - Assets/BOXOPHOBIC/Utils/Scripts.meta | 8 - .../Utils/Scripts/Boxophobic.Utils.Scripts.asmdef | 13 - .../Scripts/Boxophobic.Utils.Scripts.asmdef.meta | 7 - Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta | 8 - .../Utils/Scripts/SettingsUtils/SettingsData.cs | 13 - .../Scripts/SettingsUtils/SettingsData.cs.meta | 11 - .../BOXOPHOBIC/Utils/Scripts/StyledInspector.meta | 8 - .../Utils/Scripts/StyledInspector/StyledBanner.cs | 51 - .../Scripts/StyledInspector/StyledBanner.cs.meta | 12 - .../Utils/Scripts/StyledInspector/StyledButton.cs | 28 - .../Scripts/StyledInspector/StyledButton.cs.meta | 12 - .../Scripts/StyledInspector/StyledCategory.cs | 15 - .../Scripts/StyledInspector/StyledCategory.cs.meta | 12 - .../Utils/Scripts/StyledInspector/StyledIndent.cs | 17 - .../Scripts/StyledInspector/StyledIndent.cs.meta | 12 - .../Scripts/StyledInspector/StyledInteractive.cs | 27 - .../StyledInspector/StyledInteractive.cs.meta | 12 - .../Utils/Scripts/StyledInspector/StyledMessage.cs | 31 - .../Scripts/StyledInspector/StyledMessage.cs.meta | 12 - .../Scripts/StyledInspector/StyledPopupArray.cs | 17 - .../StyledInspector/StyledPopupArray.cs.meta | 12 - .../Scripts/StyledInspector/StyledPopupLayers.cs | 11 - .../StyledInspector/StyledPopupLayers.cs.meta | 12 - .../Scripts/StyledInspector/StyledRangeOptions.cs | 24 - .../StyledInspector/StyledRangeOptions.cs.meta | 12 - .../Utils/Scripts/StyledInspector/StyledSpace.cs | 15 - .../Scripts/StyledInspector/StyledSpace.cs.meta | 12 - .../Utils/Scripts/StyledInspector/StyledText.cs | 34 - .../Scripts/StyledInspector/StyledText.cs.meta | 12 - .../StyledInspector/StyledTexturePreview.cs | 9 - .../StyledInspector/StyledTexturePreview.cs.meta | 12 - Assets/BOXOPHOBIC/Utils/Scripts/StyledMono.meta | 8 - .../Scripts/StyledMono/StyledMonoBehaviour.cs | 7 - .../Scripts/StyledMono/StyledMonoBehaviour.cs.meta | 11 - .../Scripts/StyledMono/StyledScriptableObject.cs | 7 - .../StyledMono/StyledScriptableObject.cs.meta | 11 - Assets/BOXOPHOBIC/Utils/Utils.pdf | Bin 85854 -> 0 bytes Assets/BOXOPHOBIC/Utils/Utils.pdf.meta | 7 - .../Frank_RPG_Assassin_Combo02_1.asset | 2 +- Assets/Gizmos.meta | 4 + Assets/Gizmos/Behavior Designer Hier Icon.png | Bin 0 -> 584 bytes Assets/Gizmos/Behavior Designer Hier Icon.png.meta | 35 + Assets/Gizmos/Behavior Designer Scene Icon.png | Bin 0 -> 14081 bytes .../Gizmos/Behavior Designer Scene Icon.png.meta | 35 + Assets/Scenes/scene_demo.unity | 412 ++++ Assets/Scenes/scene_demo.unity.meta | 7 + Assets/SerializableDictionary.meta | 8 - Assets/SerializableDictionary/Editor.meta | 5 - .../Editor/SerializableDictionaryPropertyDrawer.cs | 566 ----- .../SerializableDictionaryPropertyDrawer.cs.meta | 12 - Assets/SerializableDictionary/Example.meta | 5 - Assets/SerializableDictionary/Example/Editor.meta | 5 - .../UserSerializableDictionaryPropertyDrawers.cs | 12 - ...erSerializableDictionaryPropertyDrawers.cs.meta | 12 - .../Example/SerializableDicitonary Example.unity | 251 --- .../SerializableDicitonary Example.unity.meta | 4 - .../Example/SerializableDictionaryExample.cs | 24 - .../Example/SerializableDictionaryExample.cs.meta | 12 - .../Example/UserSerializableDictionaries.cs | 26 - .../Example/UserSerializableDictionaries.cs.meta | 12 - .../SerializableDictionary.cs | 126 -- .../SerializableDictionary.cs.meta | 12 - .../SerializableDictionary.pdf | Bin 118820 -> 0 bytes .../SerializableDictionary.pdf.meta | 8 - Assets/ThirdParty/Behavior Designer.meta | 4 + .../ThirdParty/Behavior Designer/Documentation.pdf | Bin 0 -> 9848242 bytes .../Behavior Designer/Documentation.pdf.meta | 4 + Assets/ThirdParty/Behavior Designer/Editor.meta | 2 + .../Editor/BehaviorDesignerEditor.dll | Bin 0 -> 785408 bytes .../Editor/BehaviorDesignerEditor.dll.meta | 22 + .../Editor/BehaviorTreeInspector.cs | 11 + .../Editor/BehaviorTreeInspector.cs.meta | 7 + .../Editor/ExternalBehaviorTreeInspector.cs | 12 + .../Editor/ExternalBehaviorTreeInspector.cs.meta | 8 + .../Behavior Designer/Editor/GridShader.shader | 44 + .../Editor/GridShader.shader.meta | 5 + .../Behavior Designer/Editor/Object Drawers.meta | 5 + .../Editor/Object Drawers/FloatSliderDrawer.cs | 22 + .../Object Drawers/FloatSliderDrawer.cs.meta | 8 + .../Editor/Object Drawers/IntSliderDrawer.cs | 22 + .../Editor/Object Drawers/IntSliderDrawer.cs.meta | 8 + .../ThirdParty/Behavior Designer/Release Notes.pdf | Bin 0 -> 108089 bytes .../Behavior Designer/Release Notes.pdf.meta | 4 + .../Runtime Source Code Location.pdf | Bin 0 -> 89880 bytes .../Runtime Source Code Location.pdf.meta | 4 + Assets/ThirdParty/Behavior Designer/Runtime.meta | 2 + .../Behavior Designer/Runtime/Actions.meta | 2 + .../Runtime/Actions/BehaviorTreeReference.cs | 17 + .../Runtime/Actions/BehaviorTreeReference.cs.meta | 8 + .../Behavior Designer/Runtime/Actions/Idle.cs | 15 + .../Behavior Designer/Runtime/Actions/Idle.cs.meta | 8 + .../Behavior Designer/Runtime/Actions/Log.cs | 33 + .../Behavior Designer/Runtime/Actions/Log.cs.meta | 7 + .../Runtime/Actions/PerformInterruption.cs | 29 + .../Runtime/Actions/PerformInterruption.cs.meta | 7 + .../Runtime/Actions/Reflection.meta | 4 + .../Runtime/Actions/Reflection/GetFieldValue.cs | 58 + .../Actions/Reflection/GetFieldValue.cs.meta | 8 + .../Runtime/Actions/Reflection/GetPropertyValue.cs | 58 + .../Actions/Reflection/GetPropertyValue.cs.meta | 8 + .../Runtime/Actions/Reflection/InvokeMethod.cs | 86 + .../Actions/Reflection/InvokeMethod.cs.meta | 8 + .../Runtime/Actions/Reflection/SetFieldValue.cs | 57 + .../Actions/Reflection/SetFieldValue.cs.meta | 8 + .../Runtime/Actions/Reflection/SetPropertyValue.cs | 57 + .../Actions/Reflection/SetPropertyValue.cs.meta | 8 + .../Runtime/Actions/RestartBehaviorTree.cs | 56 + .../Runtime/Actions/RestartBehaviorTree.cs.meta | 8 + .../Behavior Designer/Runtime/Actions/SendEvent.cs | 73 + .../Runtime/Actions/SendEvent.cs.meta | 8 + .../Runtime/Actions/StartBehaviorTree.cs | 92 + .../Runtime/Actions/StartBehaviorTree.cs.meta | 7 + .../Runtime/Actions/StopBehaviorTree.cs | 57 + .../Runtime/Actions/StopBehaviorTree.cs.meta | 7 + .../Behavior Designer/Runtime/Actions/Wait.cs | 67 + .../Behavior Designer/Runtime/Actions/Wait.cs.meta | 7 + .../Behavior Designer/Runtime/Basic Tasks.meta | 4 + .../Runtime/Basic Tasks/Animation.meta | 4 + .../Runtime/Basic Tasks/Animation/Blend.cs | 51 + .../Runtime/Basic Tasks/Animation/Blend.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/CrossFade.cs | 51 + .../Basic Tasks/Animation/CrossFade.cs.meta | 8 + .../Basic Tasks/Animation/CrossFadeQueued.cs | 54 + .../Basic Tasks/Animation/CrossFadeQueued.cs.meta | 8 + .../Basic Tasks/Animation/GetAnimatePhysics.cs | 46 + .../Animation/GetAnimatePhysics.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/IsPlaying.cs | 47 + .../Basic Tasks/Animation/IsPlaying.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/Play.cs | 52 + .../Runtime/Basic Tasks/Animation/Play.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/PlayQueued.cs | 51 + .../Basic Tasks/Animation/PlayQueued.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/Rewind.cs | 49 + .../Runtime/Basic Tasks/Animation/Rewind.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/Sample.cs | 41 + .../Runtime/Basic Tasks/Animation/Sample.cs.meta | 8 + .../Basic Tasks/Animation/SetAnimatePhysics.cs | 45 + .../Animation/SetAnimatePhysics.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/SetWrapMode.cs | 45 + .../Basic Tasks/Animation/SetWrapMode.cs.meta | 8 + .../Runtime/Basic Tasks/Animation/Stop.cs | 49 + .../Runtime/Basic Tasks/Animation/Stop.cs.meta | 8 + .../Runtime/Basic Tasks/Animator.meta | 4 + .../Runtime/Basic Tasks/Animator/CrossFade.cs | 53 + .../Runtime/Basic Tasks/Animator/CrossFade.cs.meta | 8 + .../Basic Tasks/Animator/GetApplyRootMotion.cs | 45 + .../Animator/GetApplyRootMotion.cs.meta | 8 + .../Basic Tasks/Animator/GetBoolParameter.cs | 48 + .../Basic Tasks/Animator/GetBoolParameter.cs.meta | 8 + .../Basic Tasks/Animator/GetDeltaPosition.cs | 45 + .../Basic Tasks/Animator/GetDeltaPosition.cs.meta | 8 + .../Basic Tasks/Animator/GetDeltaRotation.cs | 46 + .../Basic Tasks/Animator/GetDeltaRotation.cs.meta | 8 + .../Basic Tasks/Animator/GetFloatParameter.cs | 48 + .../Basic Tasks/Animator/GetFloatParameter.cs.meta | 8 + .../Basic Tasks/Animator/GetGravityWeight.cs | 45 + .../Basic Tasks/Animator/GetGravityWeight.cs.meta | 8 + .../Basic Tasks/Animator/GetIntegerParameter.cs | 48 + .../Animator/GetIntegerParameter.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/GetLayerWeight.cs | 48 + .../Basic Tasks/Animator/GetLayerWeight.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/GetSpeed.cs | 45 + .../Runtime/Basic Tasks/Animator/GetSpeed.cs.meta | 8 + .../Basic Tasks/Animator/GetStringToHash.cs | 28 + .../Basic Tasks/Animator/GetStringToHash.cs.meta | 8 + .../Basic Tasks/Animator/InterruptMatchTarget.cs | 44 + .../Animator/InterruptMatchTarget.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/IsInTransition.cs | 42 + .../Basic Tasks/Animator/IsInTransition.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/IsName.cs | 45 + .../Runtime/Basic Tasks/Animator/IsName.cs.meta | 8 + .../Animator/IsParameterControlledByCurve.cs | 42 + .../Animator/IsParameterControlledByCurve.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/MatchTarget.cs | 62 + .../Basic Tasks/Animator/MatchTarget.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/Play.cs | 50 + .../Runtime/Basic Tasks/Animator/Play.cs.meta | 8 + .../Basic Tasks/Animator/SetApplyRootMotion.cs | 44 + .../Animator/SetApplyRootMotion.cs.meta | 8 + .../Basic Tasks/Animator/SetBoolParameter.cs | 62 + .../Basic Tasks/Animator/SetBoolParameter.cs.meta | 8 + .../Basic Tasks/Animator/SetFloatParameter.cs | 63 + .../Basic Tasks/Animator/SetFloatParameter.cs.meta | 8 + .../Basic Tasks/Animator/SetIntegerParameter.cs | 63 + .../Animator/SetIntegerParameter.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/SetLayerWeight.cs | 47 + .../Basic Tasks/Animator/SetLayerWeight.cs.meta | 8 + .../Basic Tasks/Animator/SetLookAtPosition.cs | 53 + .../Basic Tasks/Animator/SetLookAtPosition.cs.meta | 8 + .../Basic Tasks/Animator/SetLookAtWeight.cs | 66 + .../Basic Tasks/Animator/SetLookAtWeight.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/SetSpeed.cs | 44 + .../Runtime/Basic Tasks/Animator/SetSpeed.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/SetTrigger.cs | 44 + .../Basic Tasks/Animator/SetTrigger.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/StartPlayback.cs | 41 + .../Basic Tasks/Animator/StartPlayback.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/StartRecording.cs | 44 + .../Basic Tasks/Animator/StartRecording.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/StopPlayback.cs | 41 + .../Basic Tasks/Animator/StopPlayback.cs.meta | 8 + .../Runtime/Basic Tasks/Animator/StopRecording.cs | 41 + .../Basic Tasks/Animator/StopRecording.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource.meta | 4 + .../AudioSource/GetIgnoreListenerPause.cs | 45 + .../AudioSource/GetIgnoreListenerPause.cs.meta | 8 + .../AudioSource/GetIgnoreListenerVolume.cs | 45 + .../AudioSource/GetIgnoreListenerVolume.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetLoop.cs | 45 + .../Basic Tasks/AudioSource/GetLoop.cs.meta | 8 + .../Basic Tasks/AudioSource/GetMaxDistance.cs | 45 + .../Basic Tasks/AudioSource/GetMaxDistance.cs.meta | 8 + .../Basic Tasks/AudioSource/GetMinDistance.cs | 45 + .../Basic Tasks/AudioSource/GetMinDistance.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetMute.cs | 45 + .../Basic Tasks/AudioSource/GetMute.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetPitch.cs | 45 + .../Basic Tasks/AudioSource/GetPitch.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetPriority.cs | 45 + .../Basic Tasks/AudioSource/GetPriority.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetSpread.cs | 45 + .../Basic Tasks/AudioSource/GetSpread.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetTime.cs | 45 + .../Basic Tasks/AudioSource/GetTime.cs.meta | 8 + .../Basic Tasks/AudioSource/GetTimeSamples.cs | 45 + .../Basic Tasks/AudioSource/GetTimeSamples.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/GetVolume.cs | 45 + .../Basic Tasks/AudioSource/GetVolume.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/IsPlaying.cs | 39 + .../Basic Tasks/AudioSource/IsPlaying.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/Pause.cs | 41 + .../Runtime/Basic Tasks/AudioSource/Pause.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/Play.cs | 41 + .../Runtime/Basic Tasks/AudioSource/Play.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/PlayDelayed.cs | 44 + .../Basic Tasks/AudioSource/PlayDelayed.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/PlayOneShot.cs | 47 + .../Basic Tasks/AudioSource/PlayOneShot.cs.meta | 8 + .../Basic Tasks/AudioSource/PlayScheduled.cs | 44 + .../Basic Tasks/AudioSource/PlayScheduled.cs.meta | 8 + .../Basic Tasks/AudioSource/SetAudioClip.cs | 44 + .../Basic Tasks/AudioSource/SetAudioClip.cs.meta | 8 + .../AudioSource/SetIgnoreListenerPause.cs | 44 + .../AudioSource/SetIgnoreListenerPause.cs.meta | 8 + .../AudioSource/SetIgnoreListenerVolume.cs | 44 + .../AudioSource/SetIgnoreListenerVolume.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetLoop.cs | 44 + .../Basic Tasks/AudioSource/SetLoop.cs.meta | 8 + .../Basic Tasks/AudioSource/SetMaxDistance.cs | 44 + .../Basic Tasks/AudioSource/SetMaxDistance.cs.meta | 8 + .../Basic Tasks/AudioSource/SetMinDistance.cs | 44 + .../Basic Tasks/AudioSource/SetMinDistance.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetMute.cs | 44 + .../Basic Tasks/AudioSource/SetMute.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetPan.cs | 46 + .../Runtime/Basic Tasks/AudioSource/SetPan.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetPanLevel.cs | 46 + .../Basic Tasks/AudioSource/SetPanLevel.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetPitch.cs | 44 + .../Basic Tasks/AudioSource/SetPitch.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetPriority.cs | 44 + .../Basic Tasks/AudioSource/SetPriority.cs.meta | 8 + .../Basic Tasks/AudioSource/SetRolloffMode.cs | 44 + .../Basic Tasks/AudioSource/SetRolloffMode.cs.meta | 8 + .../Basic Tasks/AudioSource/SetScheduledEndTime.cs | 45 + .../AudioSource/SetScheduledEndTime.cs.meta | 8 + .../AudioSource/SetScheduledStartTime.cs | 44 + .../AudioSource/SetScheduledStartTime.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetSpread.cs | 44 + .../Basic Tasks/AudioSource/SetSpread.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetTime.cs | 44 + .../Basic Tasks/AudioSource/SetTime.cs.meta | 8 + .../AudioSource/SetVelocityUpdateMode.cs | 44 + .../AudioSource/SetVelocityUpdateMode.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/SetVolume.cs | 44 + .../Basic Tasks/AudioSource/SetVolume.cs.meta | 8 + .../Runtime/Basic Tasks/AudioSource/Stop.cs | 41 + .../Runtime/Basic Tasks/AudioSource/Stop.cs.meta | 8 + .../Runtime/Basic Tasks/Behaviour.meta | 4 + .../Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs | 35 + .../Basic Tasks/Behaviour/GetIsEnabled.cs.meta | 8 + .../Runtime/Basic Tasks/Behaviour/IsEnabled.cs | 29 + .../Basic Tasks/Behaviour/IsEnabled.cs.meta | 8 + .../Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs | 34 + .../Basic Tasks/Behaviour/SetIsEnabled.cs.meta | 8 + .../Runtime/Basic Tasks/BoxCollider.meta | 4 + .../Runtime/Basic Tasks/BoxCollider/GetCenter.cs | 45 + .../Basic Tasks/BoxCollider/GetCenter.cs.meta | 8 + .../Runtime/Basic Tasks/BoxCollider/GetSize.cs | 45 + .../Basic Tasks/BoxCollider/GetSize.cs.meta | 8 + .../Runtime/Basic Tasks/BoxCollider/SetCenter.cs | 44 + .../Basic Tasks/BoxCollider/SetCenter.cs.meta | 8 + .../Runtime/Basic Tasks/BoxCollider/SetSize.cs | 44 + .../Basic Tasks/BoxCollider/SetSize.cs.meta | 8 + .../Runtime/Basic Tasks/BoxCollider2D.meta | 4 + .../Runtime/Basic Tasks/BoxCollider2D/GetSize.cs | 45 + .../Basic Tasks/BoxCollider2D/GetSize.cs.meta | 8 + .../Runtime/Basic Tasks/BoxCollider2D/SetSize.cs | 44 + .../Basic Tasks/BoxCollider2D/SetSize.cs.meta | 8 + .../Runtime/Basic Tasks/CapsuleCollider.meta | 4 + .../Basic Tasks/CapsuleCollider/GetCenter.cs | 45 + .../Basic Tasks/CapsuleCollider/GetCenter.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/GetDirection.cs | 45 + .../CapsuleCollider/GetDirection.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/GetHeight.cs | 45 + .../Basic Tasks/CapsuleCollider/GetHeight.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/GetRadius.cs | 45 + .../Basic Tasks/CapsuleCollider/GetRadius.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/SetCenter.cs | 44 + .../Basic Tasks/CapsuleCollider/SetCenter.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/SetDirection.cs | 44 + .../CapsuleCollider/SetDirection.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/SetHeight.cs | 44 + .../Basic Tasks/CapsuleCollider/SetHeight.cs.meta | 8 + .../Basic Tasks/CapsuleCollider/SetRadius.cs | 44 + .../Basic Tasks/CapsuleCollider/SetRadius.cs.meta | 8 + .../Runtime/Basic Tasks/CharacterController.meta | 4 + .../Basic Tasks/CharacterController/GetCenter.cs | 45 + .../CharacterController/GetCenter.cs.meta | 8 + .../Basic Tasks/CharacterController/GetHeight.cs | 44 + .../CharacterController/GetHeight.cs.meta | 8 + .../Basic Tasks/CharacterController/GetRadius.cs | 45 + .../CharacterController/GetRadius.cs.meta | 8 + .../CharacterController/GetSlopeLimit.cs | 45 + .../CharacterController/GetSlopeLimit.cs.meta | 8 + .../CharacterController/GetStepOffset.cs | 45 + .../CharacterController/GetStepOffset.cs.meta | 8 + .../Basic Tasks/CharacterController/GetVelocity.cs | 45 + .../CharacterController/GetVelocity.cs.meta | 8 + .../CharacterController/HasColliderHit.cs | 43 + .../CharacterController/HasColliderHit.cs.meta | 8 + .../Basic Tasks/CharacterController/IsGrounded.cs | 39 + .../CharacterController/IsGrounded.cs.meta | 8 + .../Basic Tasks/CharacterController/Move.cs | 44 + .../Basic Tasks/CharacterController/Move.cs.meta | 8 + .../Basic Tasks/CharacterController/SetCenter.cs | 44 + .../CharacterController/SetCenter.cs.meta | 8 + .../Basic Tasks/CharacterController/SetHeight.cs | 44 + .../CharacterController/SetHeight.cs.meta | 8 + .../Basic Tasks/CharacterController/SetRadius.cs | 44 + .../CharacterController/SetRadius.cs.meta | 8 + .../CharacterController/SetSlopeLimit.cs | 44 + .../CharacterController/SetSlopeLimit.cs.meta | 8 + .../CharacterController/SetStepOffset.cs | 44 + .../CharacterController/SetStepOffset.cs.meta | 8 + .../Basic Tasks/CharacterController/SimpleMove.cs | 44 + .../CharacterController/SimpleMove.cs.meta | 8 + .../Runtime/Basic Tasks/CircleCollider2D.meta | 4 + .../Basic Tasks/CircleCollider2D/GetCenter.cs | 47 + .../Basic Tasks/CircleCollider2D/GetCenter.cs.meta | 8 + .../Basic Tasks/CircleCollider2D/GetRadius.cs | 45 + .../Basic Tasks/CircleCollider2D/GetRadius.cs.meta | 8 + .../Basic Tasks/CircleCollider2D/SetCenter.cs | 46 + .../Basic Tasks/CircleCollider2D/SetCenter.cs.meta | 8 + .../Basic Tasks/CircleCollider2D/SetRadius.cs | 44 + .../Basic Tasks/CircleCollider2D/SetRadius.cs.meta | 8 + .../Runtime/Basic Tasks/Debug.meta | 4 + .../Runtime/Basic Tasks/Debug/DrawLine.cs | 36 + .../Runtime/Basic Tasks/Debug/DrawLine.cs.meta | 8 + .../Runtime/Basic Tasks/Debug/DrawRay.cs | 30 + .../Runtime/Basic Tasks/Debug/DrawRay.cs.meta | 8 + .../Runtime/Basic Tasks/Debug/LogFormat.cs | 76 + .../Runtime/Basic Tasks/Debug/LogFormat.cs.meta | 8 + .../Runtime/Basic Tasks/Debug/LogValue.cs | 24 + .../Runtime/Basic Tasks/Debug/LogValue.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject.meta | 4 + .../Basic Tasks/GameObject/ActiveInHierarchy.cs | 22 + .../GameObject/ActiveInHierarchy.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/ActiveSelf.cs | 22 + .../Basic Tasks/GameObject/ActiveSelf.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/CompareTag.cs | 25 + .../Basic Tasks/GameObject/CompareTag.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/Destroy.cs | 32 + .../Runtime/Basic Tasks/GameObject/Destroy.cs.meta | 8 + .../Basic Tasks/GameObject/DestroyImmediate.cs | 25 + .../GameObject/DestroyImmediate.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/Find.cs | 28 + .../Runtime/Basic Tasks/GameObject/Find.cs.meta | 8 + .../GameObject/FindGameObjectsWithTag.cs | 31 + .../GameObject/FindGameObjectsWithTag.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/FindWithTag.cs | 28 + .../Basic Tasks/GameObject/FindWithTag.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/GetComponent.cs | 31 + .../Basic Tasks/GameObject/GetComponent.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/GetTag.cs | 28 + .../Runtime/Basic Tasks/GameObject/GetTag.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/Instantiate.cs | 33 + .../Basic Tasks/GameObject/Instantiate.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/SendMessage.cs | 33 + .../Basic Tasks/GameObject/SendMessage.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/SetActive.cs | 27 + .../Basic Tasks/GameObject/SetActive.cs.meta | 8 + .../Runtime/Basic Tasks/GameObject/SetTag.cs | 27 + .../Runtime/Basic Tasks/GameObject/SetTag.cs.meta | 8 + .../Runtime/Basic Tasks/Input.meta | 4 + .../Runtime/Basic Tasks/Input/GetAcceleration.cs | 24 + .../Basic Tasks/Input/GetAcceleration.cs.meta | 8 + .../Runtime/Basic Tasks/Input/GetAxis.cs | 37 + .../Runtime/Basic Tasks/Input/GetAxis.cs.meta | 8 + .../Runtime/Basic Tasks/Input/GetAxisRaw.cs | 37 + .../Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta | 8 + .../Runtime/Basic Tasks/Input/GetButton.cs | 27 + .../Runtime/Basic Tasks/Input/GetButton.cs.meta | 8 + .../Runtime/Basic Tasks/Input/GetKey.cs | 27 + .../Runtime/Basic Tasks/Input/GetKey.cs.meta | 8 + .../Runtime/Basic Tasks/Input/GetMouseButton.cs | 27 + .../Basic Tasks/Input/GetMouseButton.cs.meta | 8 + .../Runtime/Basic Tasks/Input/GetMousePosition.cs | 24 + .../Basic Tasks/Input/GetMousePosition.cs.meta | 8 + .../Runtime/Basic Tasks/Input/IsButtonDown.cs | 22 + .../Runtime/Basic Tasks/Input/IsButtonDown.cs.meta | 8 + .../Runtime/Basic Tasks/Input/IsButtonUp.cs | 22 + .../Runtime/Basic Tasks/Input/IsButtonUp.cs.meta | 8 + .../Runtime/Basic Tasks/Input/IsKeyDown.cs | 22 + .../Runtime/Basic Tasks/Input/IsKeyDown.cs.meta | 8 + .../Runtime/Basic Tasks/Input/IsKeyUp.cs | 22 + .../Runtime/Basic Tasks/Input/IsKeyUp.cs.meta | 8 + .../Runtime/Basic Tasks/Input/IsMouseDown.cs | 22 + .../Runtime/Basic Tasks/Input/IsMouseDown.cs.meta | 8 + .../Runtime/Basic Tasks/Input/IsMouseUp.cs | 22 + .../Runtime/Basic Tasks/Input/IsMouseUp.cs.meta | 8 + .../Runtime/Basic Tasks/LayerMask.meta | 5 + .../Runtime/Basic Tasks/LayerMask/GetLayer.cs | 28 + .../Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta | 8 + .../Runtime/Basic Tasks/LayerMask/SetLayer.cs | 27 + .../Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta | 8 + .../Runtime/Basic Tasks/Light.meta | 4 + .../Runtime/Basic Tasks/Light/GetColor.cs | 45 + .../Runtime/Basic Tasks/Light/GetColor.cs.meta | 8 + .../Runtime/Basic Tasks/Light/GetCookieSize.cs | 45 + .../Basic Tasks/Light/GetCookieSize.cs.meta | 8 + .../Runtime/Basic Tasks/Light/GetIntensity.cs | 45 + .../Runtime/Basic Tasks/Light/GetIntensity.cs.meta | 8 + .../Runtime/Basic Tasks/Light/GetRange.cs | 45 + .../Runtime/Basic Tasks/Light/GetRange.cs.meta | 8 + .../Runtime/Basic Tasks/Light/GetShadowBias.cs | 45 + .../Basic Tasks/Light/GetShadowBias.cs.meta | 8 + .../Runtime/Basic Tasks/Light/GetShadowStrength.cs | 45 + .../Basic Tasks/Light/GetShadowStrength.cs.meta | 8 + .../Runtime/Basic Tasks/Light/GetSpotAngle.cs | 45 + .../Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetColor.cs | 44 + .../Runtime/Basic Tasks/Light/SetColor.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetCookie.cs | 44 + .../Runtime/Basic Tasks/Light/SetCookie.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetCookieSize.cs | 44 + .../Basic Tasks/Light/SetCookieSize.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetCullingMask.cs | 44 + .../Basic Tasks/Light/SetCullingMask.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetIntensity.cs | 44 + .../Runtime/Basic Tasks/Light/SetIntensity.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetRange.cs | 44 + .../Runtime/Basic Tasks/Light/SetRange.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetShadowBias.cs | 44 + .../Basic Tasks/Light/SetShadowBias.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetShadowSoftness.cs | 46 + .../Basic Tasks/Light/SetShadowSoftness.cs.meta | 8 + .../Basic Tasks/Light/SetShadowSoftnessFade.cs | 46 + .../Light/SetShadowSoftnessFade.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetShadowStrength.cs | 44 + .../Basic Tasks/Light/SetShadowStrength.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetShadows.cs | 43 + .../Runtime/Basic Tasks/Light/SetShadows.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetSpotAngle.cs | 44 + .../Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta | 8 + .../Runtime/Basic Tasks/Light/SetType.cs | 43 + .../Runtime/Basic Tasks/Light/SetType.cs.meta | 8 + .../Runtime/Basic Tasks/Math.meta | 4 + .../Runtime/Basic Tasks/Math/BoolComparison.cs | 23 + .../Basic Tasks/Math/BoolComparison.cs.meta | 8 + .../Runtime/Basic Tasks/Math/BoolFlip.cs | 21 + .../Runtime/Basic Tasks/Math/BoolFlip.cs.meta | 8 + .../Runtime/Basic Tasks/Math/BoolOperator.cs | 51 + .../Runtime/Basic Tasks/Math/BoolOperator.cs.meta | 8 + .../Runtime/Basic Tasks/Math/FloatAbs.cs | 23 + .../Runtime/Basic Tasks/Math/FloatAbs.cs.meta | 8 + .../Runtime/Basic Tasks/Math/FloatClamp.cs | 27 + .../Runtime/Basic Tasks/Math/FloatClamp.cs.meta | 8 + .../Runtime/Basic Tasks/Math/FloatComparison.cs | 50 + .../Basic Tasks/Math/FloatComparison.cs.meta | 8 + .../Runtime/Basic Tasks/Math/FloatOperator.cs | 65 + .../Runtime/Basic Tasks/Math/FloatOperator.cs.meta | 8 + .../Runtime/Basic Tasks/Math/IntAbs.cs | 23 + .../Runtime/Basic Tasks/Math/IntAbs.cs.meta | 8 + .../Runtime/Basic Tasks/Math/IntClamp.cs | 27 + .../Runtime/Basic Tasks/Math/IntClamp.cs.meta | 8 + .../Runtime/Basic Tasks/Math/IntComparison.cs | 50 + .../Runtime/Basic Tasks/Math/IntComparison.cs.meta | 8 + .../Runtime/Basic Tasks/Math/IntOperator.cs | 66 + .../Runtime/Basic Tasks/Math/IntOperator.cs.meta | 8 + .../Runtime/Basic Tasks/Math/IsFloatPositive.cs | 20 + .../Basic Tasks/Math/IsFloatPositive.cs.meta | 8 + .../Runtime/Basic Tasks/Math/IsIntPositive.cs | 20 + .../Runtime/Basic Tasks/Math/IsIntPositive.cs.meta | 8 + .../Runtime/Basic Tasks/Math/Lerp.cs | 30 + .../Runtime/Basic Tasks/Math/Lerp.cs.meta | 8 + .../Runtime/Basic Tasks/Math/LerpAngle.cs | 30 + .../Runtime/Basic Tasks/Math/LerpAngle.cs.meta | 8 + .../Runtime/Basic Tasks/Math/RandomBool.cs | 23 + .../Runtime/Basic Tasks/Math/RandomBool.cs.meta | 8 + .../Runtime/Basic Tasks/Math/RandomFloat.cs | 36 + .../Runtime/Basic Tasks/Math/RandomFloat.cs.meta | 8 + .../Runtime/Basic Tasks/Math/RandomInt.cs | 36 + .../Runtime/Basic Tasks/Math/RandomInt.cs.meta | 8 + .../Runtime/Basic Tasks/Math/SetBool.cs | 24 + .../Runtime/Basic Tasks/Math/SetBool.cs.meta | 8 + .../Runtime/Basic Tasks/Math/SetFloat.cs | 24 + .../Runtime/Basic Tasks/Math/SetFloat.cs.meta | 8 + .../Runtime/Basic Tasks/Math/SetInt.cs | 24 + .../Runtime/Basic Tasks/Math/SetInt.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent.meta | 5 + .../Basic Tasks/NavMeshAgent/GetAcceleration.cs | 49 + .../NavMeshAgent/GetAcceleration.cs.meta | 8 + .../Basic Tasks/NavMeshAgent/GetAngularSpeed.cs | 49 + .../NavMeshAgent/GetAngularSpeed.cs.meta | 8 + .../Basic Tasks/NavMeshAgent/GetDestination.cs | 49 + .../NavMeshAgent/GetDestination.cs.meta | 8 + .../NavMeshAgent/GetRemainingDistance.cs | 49 + .../NavMeshAgent/GetRemainingDistance.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs | 49 + .../Basic Tasks/NavMeshAgent/GetSpeed.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/Move.cs | 48 + .../Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs | 45 + .../Basic Tasks/NavMeshAgent/ResetPath.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/Resume.cs | 49 + .../Basic Tasks/NavMeshAgent/Resume.cs.meta | 8 + .../Basic Tasks/NavMeshAgent/SetAcceleration.cs | 48 + .../NavMeshAgent/SetAcceleration.cs.meta | 8 + .../Basic Tasks/NavMeshAgent/SetAngularSpeed.cs | 48 + .../NavMeshAgent/SetAngularSpeed.cs.meta | 8 + .../Basic Tasks/NavMeshAgent/SetDestination.cs | 47 + .../NavMeshAgent/SetDestination.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs | 48 + .../Basic Tasks/NavMeshAgent/SetSpeed.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/Stop.cs | 49 + .../Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta | 8 + .../Runtime/Basic Tasks/NavMeshAgent/Warp.cs | 48 + .../Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta | 8 + .../Runtime/Basic Tasks/Network.meta | 5 + .../Runtime/Basic Tasks/Network/IsClient.cs | 12 + .../Runtime/Basic Tasks/Network/IsClient.cs.meta | 12 + .../Runtime/Basic Tasks/Network/IsServer.cs | 12 + .../Runtime/Basic Tasks/Network/IsServer.cs.meta | 12 + .../Runtime/Basic Tasks/ParticleSystem.meta | 4 + .../Runtime/Basic Tasks/ParticleSystem/Clear.cs | 41 + .../Basic Tasks/ParticleSystem/Clear.cs.meta | 8 + .../Basic Tasks/ParticleSystem/GetDuration.cs | 49 + .../Basic Tasks/ParticleSystem/GetDuration.cs.meta | 8 + .../Basic Tasks/ParticleSystem/GetEmissionRate.cs | 49 + .../ParticleSystem/GetEmissionRate.cs.meta | 8 + .../ParticleSystem/GetEnableEmission.cs | 49 + .../ParticleSystem/GetEnableEmission.cs.meta | 8 + .../ParticleSystem/GetGravityModifier.cs | 47 + .../ParticleSystem/GetGravityModifier.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/GetLoop.cs | 49 + .../Basic Tasks/ParticleSystem/GetLoop.cs.meta | 8 + .../Basic Tasks/ParticleSystem/GetMaxParticles.cs | 49 + .../ParticleSystem/GetMaxParticles.cs.meta | 8 + .../Basic Tasks/ParticleSystem/GetParticleCount.cs | 45 + .../ParticleSystem/GetParticleCount.cs.meta | 8 + .../Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs | 50 + .../ParticleSystem/GetPlaybackSpeed.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/GetTime.cs | 45 + .../Basic Tasks/ParticleSystem/GetTime.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/IsAlive.cs | 39 + .../Basic Tasks/ParticleSystem/IsAlive.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/IsPaused.cs | 39 + .../Basic Tasks/ParticleSystem/IsPaused.cs.meta | 8 + .../Basic Tasks/ParticleSystem/IsPlaying.cs | 39 + .../Basic Tasks/ParticleSystem/IsPlaying.cs.meta | 8 + .../Basic Tasks/ParticleSystem/IsStopped.cs | 39 + .../Basic Tasks/ParticleSystem/IsStopped.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/Pause.cs | 41 + .../Basic Tasks/ParticleSystem/Pause.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/Play.cs | 41 + .../Basic Tasks/ParticleSystem/Play.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetEmissionRate.cs | 48 + .../ParticleSystem/SetEmissionRate.cs.meta | 8 + .../ParticleSystem/SetEnableEmission.cs | 49 + .../ParticleSystem/SetEnableEmission.cs.meta | 8 + .../ParticleSystem/SetGravityModifier.cs | 46 + .../ParticleSystem/SetGravityModifier.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/SetLoop.cs | 49 + .../Basic Tasks/ParticleSystem/SetLoop.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetMaxParticles.cs | 48 + .../ParticleSystem/SetMaxParticles.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs | 49 + .../ParticleSystem/SetPlaybackSpeed.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetStartColor.cs | 49 + .../ParticleSystem/SetStartColor.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetStartDelay.cs | 49 + .../ParticleSystem/SetStartDelay.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetStartLifetime.cs | 49 + .../ParticleSystem/SetStartLifetime.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetStartRotation.cs | 49 + .../ParticleSystem/SetStartRotation.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetStartSize.cs | 49 + .../ParticleSystem/SetStartSize.cs.meta | 8 + .../Basic Tasks/ParticleSystem/SetStartSpeed.cs | 49 + .../ParticleSystem/SetStartSpeed.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/SetTime.cs | 44 + .../Basic Tasks/ParticleSystem/SetTime.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/Simulate.cs | 44 + .../Basic Tasks/ParticleSystem/Simulate.cs.meta | 8 + .../Runtime/Basic Tasks/ParticleSystem/Stop.cs | 41 + .../Basic Tasks/ParticleSystem/Stop.cs.meta | 8 + .../Runtime/Basic Tasks/Physics.meta | 4 + .../Runtime/Basic Tasks/Physics/Linecast.cs | 29 + .../Runtime/Basic Tasks/Physics/Linecast.cs.meta | 8 + .../Runtime/Basic Tasks/Physics/Raycast.cs | 71 + .../Runtime/Basic Tasks/Physics/Raycast.cs.meta | 8 + .../Runtime/Basic Tasks/Physics/Spherecast.cs | 74 + .../Runtime/Basic Tasks/Physics/Spherecast.cs.meta | 8 + .../Runtime/Basic Tasks/Physics2D.meta | 4 + .../Runtime/Basic Tasks/Physics2D/Circlecast.cs | 73 + .../Basic Tasks/Physics2D/Circlecast.cs.meta | 8 + .../Runtime/Basic Tasks/Physics2D/Linecast.cs | 29 + .../Runtime/Basic Tasks/Physics2D/Linecast.cs.meta | 8 + .../Runtime/Basic Tasks/Physics2D/Raycast.cs | 72 + .../Runtime/Basic Tasks/Physics2D/Raycast.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs.meta | 4 + .../Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs | 16 + .../Basic Tasks/PlayerPrefs/DeleteAll.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs | 24 + .../Basic Tasks/PlayerPrefs/DeleteKey.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs | 31 + .../Basic Tasks/PlayerPrefs/GetFloat.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/GetInt.cs | 31 + .../Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/GetString.cs | 31 + .../Basic Tasks/PlayerPrefs/GetString.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/HasKey.cs | 22 + .../Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/Save.cs | 16 + .../Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs | 27 + .../Basic Tasks/PlayerPrefs/SetFloat.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/SetInt.cs | 27 + .../Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta | 8 + .../Runtime/Basic Tasks/PlayerPrefs/SetString.cs | 27 + .../Basic Tasks/PlayerPrefs/SetString.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion.meta | 4 + .../Runtime/Basic Tasks/Quaternion/Angle.cs | 29 + .../Runtime/Basic Tasks/Quaternion/Angle.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/AngleAxis.cs | 30 + .../Basic Tasks/Quaternion/AngleAxis.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/Dot.cs | 29 + .../Runtime/Basic Tasks/Quaternion/Dot.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/Euler.cs | 27 + .../Runtime/Basic Tasks/Quaternion/Euler.cs.meta | 8 + .../Basic Tasks/Quaternion/FromToRotation.cs | 29 + .../Basic Tasks/Quaternion/FromToRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/Identity.cs | 24 + .../Basic Tasks/Quaternion/Identity.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/Inverse.cs | 26 + .../Runtime/Basic Tasks/Quaternion/Inverse.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/Lerp.cs | 31 + .../Runtime/Basic Tasks/Quaternion/Lerp.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/LookRotation.cs | 29 + .../Basic Tasks/Quaternion/LookRotation.cs.meta | 8 + .../Basic Tasks/Quaternion/RotateTowards.cs | 31 + .../Basic Tasks/Quaternion/RotateTowards.cs.meta | 8 + .../Runtime/Basic Tasks/Quaternion/Slerp.cs | 31 + .../Runtime/Basic Tasks/Quaternion/Slerp.cs.meta | 8 + .../Runtime/Basic Tasks/Renderer.meta | 4 + .../Runtime/Basic Tasks/Renderer/IsVisible.cs | 40 + .../Runtime/Basic Tasks/Renderer/IsVisible.cs.meta | 8 + .../Runtime/Basic Tasks/Renderer/SetMaterial.cs | 44 + .../Basic Tasks/Renderer/SetMaterial.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody.meta | 4 + .../Basic Tasks/Rigidbody/AddExplosionForce.cs | 57 + .../Rigidbody/AddExplosionForce.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/AddForce.cs | 51 + .../Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta | 8 + .../Basic Tasks/Rigidbody/AddForceAtPosition.cs | 51 + .../Rigidbody/AddForceAtPosition.cs.meta | 8 + .../Basic Tasks/Rigidbody/AddRelativeForce.cs | 48 + .../Basic Tasks/Rigidbody/AddRelativeForce.cs.meta | 8 + .../Basic Tasks/Rigidbody/AddRelativeTorque.cs | 43 + .../Rigidbody/AddRelativeTorque.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/AddTorque.cs | 48 + .../Basic Tasks/Rigidbody/AddTorque.cs.meta | 8 + .../Basic Tasks/Rigidbody/GetAngularDrag.cs | 46 + .../Basic Tasks/Rigidbody/GetAngularDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody/GetAngularVelocity.cs | 46 + .../Rigidbody/GetAngularVelocity.cs.meta | 8 + .../Basic Tasks/Rigidbody/GetCenterOfMass.cs | 46 + .../Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/GetDrag.cs | 46 + .../Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody/GetFreezeRotation.cs | 46 + .../Rigidbody/GetFreezeRotation.cs.meta | 8 + .../Basic Tasks/Rigidbody/GetIsKinematic.cs | 46 + .../Basic Tasks/Rigidbody/GetIsKinematic.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/GetMass.cs | 46 + .../Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/GetPosition.cs | 46 + .../Basic Tasks/Rigidbody/GetPosition.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/GetRotation.cs | 46 + .../Basic Tasks/Rigidbody/GetRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs | 46 + .../Basic Tasks/Rigidbody/GetUseGravity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/GetVelocity.cs | 46 + .../Basic Tasks/Rigidbody/GetVelocity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/IsKinematic.cs | 40 + .../Basic Tasks/Rigidbody/IsKinematic.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/IsSleeping.cs | 40 + .../Basic Tasks/Rigidbody/IsSleeping.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/MovePosition.cs | 45 + .../Basic Tasks/Rigidbody/MovePosition.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/MoveRotation.cs | 45 + .../Basic Tasks/Rigidbody/MoveRotation.cs.meta | 8 + .../Basic Tasks/Rigidbody/SetAngularDrag.cs | 45 + .../Basic Tasks/Rigidbody/SetAngularDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody/SetAngularVelocity.cs | 45 + .../Rigidbody/SetAngularVelocity.cs.meta | 8 + .../Basic Tasks/Rigidbody/SetCenterOfMass.cs | 45 + .../Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta | 8 + .../Basic Tasks/Rigidbody/SetConstraints.cs | 45 + .../Basic Tasks/Rigidbody/SetConstraints.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/SetDrag.cs | 45 + .../Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody/SetFreezeRotation.cs | 45 + .../Rigidbody/SetFreezeRotation.cs.meta | 8 + .../Basic Tasks/Rigidbody/SetIsKinematic.cs | 45 + .../Basic Tasks/Rigidbody/SetIsKinematic.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/SetMass.cs | 45 + .../Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/SetPosition.cs | 45 + .../Basic Tasks/Rigidbody/SetPosition.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/SetRotation.cs | 45 + .../Basic Tasks/Rigidbody/SetRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs | 45 + .../Basic Tasks/Rigidbody/SetUseGravity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/SetVelocity.cs | 45 + .../Basic Tasks/Rigidbody/SetVelocity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/Sleep.cs | 42 + .../Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/UseGravity.cs | 40 + .../Basic Tasks/Rigidbody/UseGravity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody/WakeUp.cs | 42 + .../Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D.meta | 4 + .../Runtime/Basic Tasks/Rigidbody2D/AddForce.cs | 44 + .../Basic Tasks/Rigidbody2D/AddForce.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/AddForceAtPosition.cs | 47 + .../Rigidbody2D/AddForceAtPosition.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs | 44 + .../Basic Tasks/Rigidbody2D/AddTorque.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/GetAngularDrag.cs | 45 + .../Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/GetAngularVelocity.cs | 45 + .../Rigidbody2D/GetAngularVelocity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs | 45 + .../Basic Tasks/Rigidbody2D/GetDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/GetGravtyScale.cs | 45 + .../Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/GetIsKinematic.cs | 45 + .../Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/GetMass.cs | 45 + .../Basic Tasks/Rigidbody2D/GetMass.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs | 45 + .../Basic Tasks/Rigidbody2D/GetPosition.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs | 45 + .../Basic Tasks/Rigidbody2D/GetRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs | 45 + .../Basic Tasks/Rigidbody2D/GetVelocity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs | 39 + .../Basic Tasks/Rigidbody2D/IsKinematic.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs | 39 + .../Basic Tasks/Rigidbody2D/IsSleeping.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/MovePosition.cs | 45 + .../Basic Tasks/Rigidbody2D/MovePosition.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/MoveRotation.cs | 45 + .../Basic Tasks/Rigidbody2D/MoveRotation.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/SetAngularDrag.cs | 44 + .../Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/SetAngularVelocity.cs | 44 + .../Rigidbody2D/SetAngularVelocity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs | 44 + .../Basic Tasks/Rigidbody2D/SetDrag.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/SetGravityScale.cs | 44 + .../Rigidbody2D/SetGravityScale.cs.meta | 8 + .../Basic Tasks/Rigidbody2D/SetIsKinematic.cs | 44 + .../Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/SetMass.cs | 44 + .../Basic Tasks/Rigidbody2D/SetMass.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs | 44 + .../Basic Tasks/Rigidbody2D/SetVelocity.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/Sleep.cs | 41 + .../Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta | 8 + .../Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs | 41 + .../Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta | 8 + .../Runtime/Basic Tasks/SharedVariables.meta | 4 + .../SharedVariables/CompareSharedBool.cs | 23 + .../SharedVariables/CompareSharedBool.cs.meta | 8 + .../SharedVariables/CompareSharedColor.cs | 25 + .../SharedVariables/CompareSharedColor.cs.meta | 8 + .../SharedVariables/CompareSharedFloat.cs | 23 + .../SharedVariables/CompareSharedFloat.cs.meta | 8 + .../SharedVariables/CompareSharedGameObject.cs | 30 + .../CompareSharedGameObject.cs.meta | 8 + .../SharedVariables/CompareSharedGameObjectList.cs | 35 + .../CompareSharedGameObjectList.cs.meta | 8 + .../SharedVariables/CompareSharedInt.cs | 23 + .../SharedVariables/CompareSharedInt.cs.meta | 8 + .../SharedVariables/CompareSharedObject.cs | 30 + .../SharedVariables/CompareSharedObject.cs.meta | 8 + .../SharedVariables/CompareSharedObjectList.cs | 35 + .../CompareSharedObjectList.cs.meta | 8 + .../SharedVariables/CompareSharedQuaternion.cs | 25 + .../CompareSharedQuaternion.cs.meta | 8 + .../SharedVariables/CompareSharedRect.cs | 25 + .../SharedVariables/CompareSharedRect.cs.meta | 8 + .../SharedVariables/CompareSharedString.cs | 23 + .../SharedVariables/CompareSharedString.cs.meta | 8 + .../SharedVariables/CompareSharedTransform.cs | 30 + .../SharedVariables/CompareSharedTransform.cs.meta | 8 + .../SharedVariables/CompareSharedTransformList.cs | 35 + .../CompareSharedTransformList.cs.meta | 8 + .../SharedVariables/CompareSharedVector2.cs | 25 + .../SharedVariables/CompareSharedVector2.cs.meta | 8 + .../SharedVariables/CompareSharedVector3.cs | 25 + .../SharedVariables/CompareSharedVector3.cs.meta | 8 + .../SharedVariables/CompareSharedVector4.cs | 25 + .../SharedVariables/CompareSharedVector4.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedBool.cs | 26 + .../SharedVariables/SetSharedBool.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedColor.cs | 28 + .../SharedVariables/SetSharedColor.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedFloat.cs | 26 + .../SharedVariables/SetSharedFloat.cs.meta | 8 + .../SharedVariables/SetSharedGameObject.cs | 29 + .../SharedVariables/SetSharedGameObject.cs.meta | 8 + .../SharedVariables/SetSharedGameObjectList.cs | 26 + .../SetSharedGameObjectList.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedInt.cs | 26 + .../SharedVariables/SetSharedInt.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedObject.cs | 26 + .../SharedVariables/SetSharedObject.cs.meta | 8 + .../SharedVariables/SetSharedObjectList.cs | 26 + .../SharedVariables/SetSharedObjectList.cs.meta | 8 + .../SharedVariables/SetSharedQuaternion.cs | 27 + .../SharedVariables/SetSharedQuaternion.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedRect.cs | 28 + .../SharedVariables/SetSharedRect.cs.meta | 8 + .../Basic Tasks/SharedVariables/SetSharedString.cs | 26 + .../SharedVariables/SetSharedString.cs.meta | 8 + .../SharedVariables/SetSharedTransform.cs | 26 + .../SharedVariables/SetSharedTransform.cs.meta | 8 + .../SharedVariables/SetSharedTransformList.cs | 26 + .../SharedVariables/SetSharedTransformList.cs.meta | 8 + .../SharedVariables/SetSharedVector2.cs | 28 + .../SharedVariables/SetSharedVector2.cs.meta | 8 + .../SharedVariables/SetSharedVector3.cs | 28 + .../SharedVariables/SetSharedVector3.cs.meta | 8 + .../SharedVariables/SetSharedVector4.cs | 28 + .../SharedVariables/SetSharedVector4.cs.meta | 8 + .../SharedVariables/SharedGameObjectToTransform.cs | 32 + .../SharedGameObjectToTransform.cs.meta | 8 + .../SharedGameObjectsToGameObjectList.cs | 41 + .../SharedGameObjectsToGameObjectList.cs.meta | 8 + .../SharedVariables/SharedTransformToGameObject.cs | 32 + .../SharedTransformToGameObject.cs.meta | 8 + .../SharedTransformsToTransformList.cs | 41 + .../SharedTransformsToTransformList.cs.meta | 8 + .../Runtime/Basic Tasks/SphereCollider.meta | 4 + .../Basic Tasks/SphereCollider/GetCenter.cs | 44 + .../Basic Tasks/SphereCollider/GetCenter.cs.meta | 8 + .../Basic Tasks/SphereCollider/GetRadius.cs | 45 + .../Basic Tasks/SphereCollider/GetRadius.cs.meta | 8 + .../Basic Tasks/SphereCollider/SetCenter.cs | 44 + .../Basic Tasks/SphereCollider/SetCenter.cs.meta | 8 + .../Basic Tasks/SphereCollider/SetRadius.cs | 44 + .../Basic Tasks/SphereCollider/SetRadius.cs.meta | 8 + .../Runtime/Basic Tasks/String.meta | 4 + .../Runtime/Basic Tasks/String/BuildString.cs | 28 + .../Runtime/Basic Tasks/String/BuildString.cs.meta | 8 + .../Runtime/Basic Tasks/String/CompareTo.cs | 28 + .../Runtime/Basic Tasks/String/CompareTo.cs.meta | 8 + .../Runtime/Basic Tasks/String/Format.cs | 47 + .../Runtime/Basic Tasks/String/Format.cs.meta | 8 + .../Runtime/Basic Tasks/String/GetLength.cs | 25 + .../Runtime/Basic Tasks/String/GetLength.cs.meta | 8 + .../Runtime/Basic Tasks/String/GetRandomString.cs | 28 + .../Basic Tasks/String/GetRandomString.cs.meta | 8 + .../Runtime/Basic Tasks/String/GetSubstring.cs | 35 + .../Basic Tasks/String/GetSubstring.cs.meta | 8 + .../Runtime/Basic Tasks/String/IsNullOrEmpty.cs | 20 + .../Basic Tasks/String/IsNullOrEmpty.cs.meta | 8 + .../Runtime/Basic Tasks/String/Replace.cs | 32 + .../Runtime/Basic Tasks/String/Replace.cs.meta | 8 + .../Runtime/Basic Tasks/String/SetString.cs | 26 + .../Runtime/Basic Tasks/String/SetString.cs.meta | 8 + .../Runtime/Basic Tasks/Time.meta | 4 + .../Runtime/Basic Tasks/Time/GetDeltaTime.cs | 23 + .../Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta | 8 + .../Basic Tasks/Time/GetRealtimeSinceStartup.cs | 23 + .../Time/GetRealtimeSinceStartup.cs.meta | 8 + .../Runtime/Basic Tasks/Time/GetTime.cs | 23 + .../Runtime/Basic Tasks/Time/GetTime.cs.meta | 8 + .../Runtime/Basic Tasks/Time/GetTimeScale.cs | 23 + .../Runtime/Basic Tasks/Time/GetTimeScale.cs.meta | 8 + .../Runtime/Basic Tasks/Time/SetTimeScale.cs | 23 + .../Runtime/Basic Tasks/Time/SetTimeScale.cs.meta | 8 + .../Runtime/Basic Tasks/Transform.meta | 4 + .../Runtime/Basic Tasks/Transform/Find.cs | 48 + .../Runtime/Basic Tasks/Transform/Find.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/FindChild.cs | 48 + .../Basic Tasks/Transform/FindChild.cs.meta | 8 + .../Basic Tasks/Transform/GetAngleToTarget.cs | 66 + .../Basic Tasks/Transform/GetAngleToTarget.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetChild.cs | 48 + .../Runtime/Basic Tasks/Transform/GetChild.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetChildCount.cs | 45 + .../Basic Tasks/Transform/GetChildCount.cs.meta | 8 + .../Basic Tasks/Transform/GetEulerAngles.cs | 45 + .../Basic Tasks/Transform/GetEulerAngles.cs.meta | 8 + .../Basic Tasks/Transform/GetForwardVector.cs | 45 + .../Basic Tasks/Transform/GetForwardVector.cs.meta | 8 + .../Basic Tasks/Transform/GetLocalEulerAngles.cs | 45 + .../Transform/GetLocalEulerAngles.cs.meta | 8 + .../Basic Tasks/Transform/GetLocalPosition.cs | 45 + .../Basic Tasks/Transform/GetLocalPosition.cs.meta | 8 + .../Basic Tasks/Transform/GetLocalRotation.cs | 45 + .../Basic Tasks/Transform/GetLocalRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetLocalScale.cs | 45 + .../Basic Tasks/Transform/GetLocalScale.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetParent.cs | 45 + .../Basic Tasks/Transform/GetParent.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetPosition.cs | 45 + .../Basic Tasks/Transform/GetPosition.cs.meta | 8 + .../Basic Tasks/Transform/GetRightVector.cs | 45 + .../Basic Tasks/Transform/GetRightVector.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetRotation.cs | 45 + .../Basic Tasks/Transform/GetRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/GetUpVector.cs | 45 + .../Basic Tasks/Transform/GetUpVector.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/IsChildOf.cs | 42 + .../Basic Tasks/Transform/IsChildOf.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/LookAt.cs | 47 + .../Runtime/Basic Tasks/Transform/LookAt.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/Rotate.cs | 47 + .../Runtime/Basic Tasks/Transform/Rotate.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/RotateAround.cs | 50 + .../Basic Tasks/Transform/RotateAround.cs.meta | 8 + .../Basic Tasks/Transform/SetEulerAngles.cs | 44 + .../Basic Tasks/Transform/SetEulerAngles.cs.meta | 8 + .../Basic Tasks/Transform/SetForwardVector.cs | 44 + .../Basic Tasks/Transform/SetForwardVector.cs.meta | 8 + .../Basic Tasks/Transform/SetLocalEulerAngles.cs | 44 + .../Transform/SetLocalEulerAngles.cs.meta | 8 + .../Basic Tasks/Transform/SetLocalPosition.cs | 44 + .../Basic Tasks/Transform/SetLocalPosition.cs.meta | 8 + .../Basic Tasks/Transform/SetLocalRotation.cs | 44 + .../Basic Tasks/Transform/SetLocalRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/SetLocalScale.cs | 44 + .../Basic Tasks/Transform/SetLocalScale.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/SetParent.cs | 44 + .../Basic Tasks/Transform/SetParent.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/SetPosition.cs | 44 + .../Basic Tasks/Transform/SetPosition.cs.meta | 8 + .../Basic Tasks/Transform/SetRightVector.cs | 44 + .../Basic Tasks/Transform/SetRightVector.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/SetRotation.cs | 44 + .../Basic Tasks/Transform/SetRotation.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/SetUpVector.cs | 44 + .../Basic Tasks/Transform/SetUpVector.cs.meta | 8 + .../Runtime/Basic Tasks/Transform/Translate.cs | 47 + .../Basic Tasks/Transform/Translate.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2.meta | 4 + .../Runtime/Basic Tasks/Vector2/ClampMagnitude.cs | 29 + .../Basic Tasks/Vector2/ClampMagnitude.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/Distance.cs | 29 + .../Runtime/Basic Tasks/Vector2/Distance.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/Dot.cs | 29 + .../Runtime/Basic Tasks/Vector2/Dot.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/GetMagnitude.cs | 27 + .../Basic Tasks/Vector2/GetMagnitude.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/GetRightVector.cs | 24 + .../Basic Tasks/Vector2/GetRightVector.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs | 27 + .../Basic Tasks/Vector2/GetSqrMagnitude.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/GetUpVector.cs | 24 + .../Basic Tasks/Vector2/GetUpVector.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/GetVector3.cs | 27 + .../Runtime/Basic Tasks/Vector2/GetVector3.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/GetXY.cs | 31 + .../Runtime/Basic Tasks/Vector2/GetXY.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/Lerp.cs | 31 + .../Runtime/Basic Tasks/Vector2/Lerp.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/MoveTowards.cs | 31 + .../Basic Tasks/Vector2/MoveTowards.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/Multiply.cs | 29 + .../Runtime/Basic Tasks/Vector2/Multiply.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/Normalize.cs | 26 + .../Runtime/Basic Tasks/Vector2/Normalize.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/Operator.cs | 47 + .../Runtime/Basic Tasks/Vector2/Operator.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/SetValue.cs | 25 + .../Runtime/Basic Tasks/Vector2/SetValue.cs.meta | 8 + .../Runtime/Basic Tasks/Vector2/SetXY.cs | 35 + .../Runtime/Basic Tasks/Vector2/SetXY.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3.meta | 4 + .../Runtime/Basic Tasks/Vector3/Angle.cs | 29 + .../Runtime/Basic Tasks/Vector3/Angle.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/ClampMagnitude.cs | 29 + .../Basic Tasks/Vector3/ClampMagnitude.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/Distance.cs | 29 + .../Runtime/Basic Tasks/Vector3/Distance.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/Dot.cs | 29 + .../Runtime/Basic Tasks/Vector3/Dot.cs.meta | 8 + .../Basic Tasks/Vector3/GetForwardVector.cs | 24 + .../Basic Tasks/Vector3/GetForwardVector.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/GetMagnitude.cs | 27 + .../Basic Tasks/Vector3/GetMagnitude.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/GetRightVector.cs | 24 + .../Basic Tasks/Vector3/GetRightVector.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs | 27 + .../Basic Tasks/Vector3/GetSqrMagnitude.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/GetUpVector.cs | 24 + .../Basic Tasks/Vector3/GetUpVector.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/GetVector2.cs | 27 + .../Runtime/Basic Tasks/Vector3/GetVector2.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/GetXYZ.cs | 35 + .../Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/Lerp.cs | 31 + .../Runtime/Basic Tasks/Vector3/Lerp.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/MoveTowards.cs | 31 + .../Basic Tasks/Vector3/MoveTowards.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/Multiply.cs | 29 + .../Runtime/Basic Tasks/Vector3/Multiply.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/Normalize.cs | 26 + .../Runtime/Basic Tasks/Vector3/Normalize.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/Operator.cs | 47 + .../Runtime/Basic Tasks/Vector3/Operator.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/RotateTowards.cs | 33 + .../Basic Tasks/Vector3/RotateTowards.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/SetValue.cs | 25 + .../Runtime/Basic Tasks/Vector3/SetValue.cs.meta | 8 + .../Runtime/Basic Tasks/Vector3/SetXYZ.cs | 40 + .../Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta | 8 + .../Runtime/BehaviorDesignerRuntime.dll | Bin 0 -> 121856 bytes .../Runtime/BehaviorDesignerRuntime.dll.meta | 22 + .../Behavior Designer/Runtime/BehaviorTree.cs | 11 + .../Behavior Designer/Runtime/BehaviorTree.cs.meta | 7 + .../Behavior Designer/Runtime/Composites.meta | 2 + .../Runtime/Composites/Parallel.cs | 87 + .../Runtime/Composites/Parallel.cs.meta | 7 + .../Runtime/Composites/ParallelComplete.cs | 81 + .../Runtime/Composites/ParallelComplete.cs.meta | 12 + .../Runtime/Composites/ParallelSelector.cs | 87 + .../Runtime/Composites/ParallelSelector.cs.meta | 7 + .../Runtime/Composites/PrioritySelector.cs | 72 + .../Runtime/Composites/PrioritySelector.cs.meta | 7 + .../Runtime/Composites/RandomSelector.cs | 106 + .../Runtime/Composites/RandomSelector.cs.meta | 7 + .../Runtime/Composites/RandomSequence.cs | 107 + .../Runtime/Composites/RandomSequence.cs.meta | 7 + .../Runtime/Composites/Selector.cs | 46 + .../Runtime/Composites/Selector.cs.meta | 7 + .../Runtime/Composites/SelectorEvaluator.cs | 118 + .../Runtime/Composites/SelectorEvaluator.cs.meta | 8 + .../Runtime/Composites/Sequence.cs | 46 + .../Runtime/Composites/Sequence.cs.meta | 7 + .../Runtime/Composites/UtilitySelector.cs | 150 ++ .../Runtime/Composites/UtilitySelector.cs.meta | 12 + .../Behavior Designer/Runtime/Conditionals.meta | 2 + .../Runtime/Conditionals/HasReceivedEvent.cs | 114 + .../Runtime/Conditionals/HasReceivedEvent.cs.meta | 8 + .../Runtime/Conditionals/Physics.meta | 4 + .../Conditionals/Physics/HasEnteredCollision.cs | 41 + .../Physics/HasEnteredCollision.cs.meta | 8 + .../Conditionals/Physics/HasEnteredCollision2D.cs | 41 + .../Physics/HasEnteredCollision2D.cs.meta | 8 + .../Conditionals/Physics/HasEnteredTrigger.cs | 41 + .../Conditionals/Physics/HasEnteredTrigger.cs.meta | 8 + .../Conditionals/Physics/HasEnteredTrigger2D.cs | 41 + .../Physics/HasEnteredTrigger2D.cs.meta | 8 + .../Conditionals/Physics/HasExitedCollision.cs | 40 + .../Physics/HasExitedCollision.cs.meta | 8 + .../Conditionals/Physics/HasExitedCollision2D.cs | 41 + .../Physics/HasExitedCollision2D.cs.meta | 8 + .../Conditionals/Physics/HasExitedTrigger.cs | 41 + .../Conditionals/Physics/HasExitedTrigger.cs.meta | 8 + .../Conditionals/Physics/HasExitedTrigger2D.cs | 41 + .../Physics/HasExitedTrigger2D.cs.meta | 8 + .../Runtime/Conditionals/RandomProbability.cs | 44 + .../Runtime/Conditionals/RandomProbability.cs.meta | 7 + .../Runtime/Conditionals/Reflection.meta | 4 + .../Conditionals/Reflection/CompareFieldValue.cs | 61 + .../Reflection/CompareFieldValue.cs.meta | 8 + .../Reflection/ComparePropertyValue.cs | 61 + .../Reflection/ComparePropertyValue.cs.meta | 8 + .../Behavior Designer/Runtime/Decorators.meta | 2 + .../Runtime/Decorators/ConditionalEvaluator.cs | 100 + .../Decorators/ConditionalEvaluator.cs.meta | 8 + .../Runtime/Decorators/Interrupt.cs | 49 + .../Runtime/Decorators/Interrupt.cs.meta | 7 + .../Runtime/Decorators/Inverter.cs | 41 + .../Runtime/Decorators/Inverter.cs.meta | 7 + .../Runtime/Decorators/Repeater.cs | 48 + .../Runtime/Decorators/Repeater.cs.meta | 7 + .../Runtime/Decorators/ReturnFailure.cs | 38 + .../Runtime/Decorators/ReturnFailure.cs.meta | 7 + .../Runtime/Decorators/ReturnSuccess.cs | 38 + .../Runtime/Decorators/ReturnSuccess.cs.meta | 7 + .../Runtime/Decorators/TaskGuard.cs | 77 + .../Runtime/Decorators/TaskGuard.cs.meta | 7 + .../Runtime/Decorators/UntilFailure.cs | 29 + .../Runtime/Decorators/UntilFailure.cs.meta | 7 + .../Runtime/Decorators/UntilSuccess.cs | 29 + .../Runtime/Decorators/UntilSuccess.cs.meta | 7 + .../Behavior Designer/Runtime/EntryTask.cs | 14 + .../Behavior Designer/Runtime/EntryTask.cs.meta | 7 + .../Runtime/ExternalBehaviorTree.cs | 8 + .../Runtime/ExternalBehaviorTree.cs.meta | 8 + .../Behavior Designer/Runtime/Object Drawers.meta | 5 + .../Runtime/Object Drawers/FloatSliderAttribute.cs | 16 + .../Object Drawers/FloatSliderAttribute.cs.meta | 8 + .../Runtime/Object Drawers/IntSliderAttribute.cs | 16 + .../Object Drawers/IntSliderAttribute.cs.meta | 8 + .../Behavior Designer/Runtime/Variables.meta | 4 + .../Runtime/Variables/SharedBool.cs | 8 + .../Runtime/Variables/SharedBool.cs.meta | 8 + .../Runtime/Variables/SharedColor.cs | 10 + .../Runtime/Variables/SharedColor.cs.meta | 8 + .../Runtime/Variables/SharedFloat.cs | 8 + .../Runtime/Variables/SharedFloat.cs.meta | 8 + .../Runtime/Variables/SharedGameObject.cs | 10 + .../Runtime/Variables/SharedGameObject.cs.meta | 8 + .../Runtime/Variables/SharedGameObjectList.cs | 11 + .../Runtime/Variables/SharedGameObjectList.cs.meta | 8 + .../Runtime/Variables/SharedInt.cs | 8 + .../Runtime/Variables/SharedInt.cs.meta | 8 + .../Runtime/Variables/SharedMaterial.cs | 10 + .../Runtime/Variables/SharedMaterial.cs.meta | 8 + .../Runtime/Variables/SharedObject.cs | 10 + .../Runtime/Variables/SharedObject.cs.meta | 8 + .../Runtime/Variables/SharedObjectList.cs | 11 + .../Runtime/Variables/SharedObjectList.cs.meta | 8 + .../Runtime/Variables/SharedQuaternion.cs | 10 + .../Runtime/Variables/SharedQuaternion.cs.meta | 8 + .../Runtime/Variables/SharedRect.cs | 10 + .../Runtime/Variables/SharedRect.cs.meta | 8 + .../Runtime/Variables/SharedString.cs | 8 + .../Runtime/Variables/SharedString.cs.meta | 8 + .../Runtime/Variables/SharedTransform.cs | 10 + .../Runtime/Variables/SharedTransform.cs.meta | 8 + .../Runtime/Variables/SharedTransformList.cs | 11 + .../Runtime/Variables/SharedTransformList.cs.meta | 8 + .../Runtime/Variables/SharedVector2.cs | 10 + .../Runtime/Variables/SharedVector2.cs.meta | 8 + .../Runtime/Variables/SharedVector3.cs | 10 + .../Runtime/Variables/SharedVector3.cs.meta | 8 + .../Runtime/Variables/SharedVector4.cs | 10 + .../Runtime/Variables/SharedVector4.cs.meta | 8 + Assets/ThirdParty/SerializableDictionary.meta | 8 + .../ThirdParty/SerializableDictionary/Editor.meta | 5 + .../Editor/SerializableDictionaryPropertyDrawer.cs | 566 +++++ .../SerializableDictionaryPropertyDrawer.cs.meta | 12 + .../ThirdParty/SerializableDictionary/Example.meta | 5 + .../SerializableDictionary/Example/Editor.meta | 5 + .../UserSerializableDictionaryPropertyDrawers.cs | 12 + ...erSerializableDictionaryPropertyDrawers.cs.meta | 12 + .../Example/SerializableDicitonary Example.unity | 251 +++ .../SerializableDicitonary Example.unity.meta | 4 + .../Example/SerializableDictionaryExample.cs | 24 + .../Example/SerializableDictionaryExample.cs.meta | 12 + .../Example/UserSerializableDictionaries.cs | 26 + .../Example/UserSerializableDictionaries.cs.meta | 12 + .../SerializableDictionary.cs | 126 ++ .../SerializableDictionary.cs.meta | 12 + .../SerializableDictionary.pdf | Bin 0 -> 118820 bytes .../SerializableDictionary.pdf.meta | 8 + Assets/scene_demo.unity | 412 ---- Assets/scene_demo.unity.meta | 7 - 1596 files changed, 37319 insertions(+), 12139 deletions(-) create mode 100644 Assets/Art/BOXOPHOBIC.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader create mode 100644 Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta create mode 100644 Assets/Art/BOXOPHOBIC/User.meta create mode 100644 Assets/Art/BOXOPHOBIC/User/User.pdf create mode 100644 Assets/Art/BOXOPHOBIC/User/User.pdf.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/Constants.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Utils.pdf create mode 100644 Assets/Art/BOXOPHOBIC/Utils/Utils.pdf.meta delete mode 100644 Assets/BOXOPHOBIC.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader delete mode 100644 Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta delete mode 100644 Assets/BOXOPHOBIC/User.meta delete mode 100644 Assets/BOXOPHOBIC/User/User.pdf delete mode 100644 Assets/BOXOPHOBIC/User/User.pdf.meta delete mode 100644 Assets/BOXOPHOBIC/Utils.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/Constants.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMono.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png delete mode 100644 Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledMono.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs delete mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta delete mode 100644 Assets/BOXOPHOBIC/Utils/Utils.pdf delete mode 100644 Assets/BOXOPHOBIC/Utils/Utils.pdf.meta create mode 100644 Assets/Gizmos.meta create mode 100644 Assets/Gizmos/Behavior Designer Hier Icon.png create mode 100644 Assets/Gizmos/Behavior Designer Hier Icon.png.meta create mode 100644 Assets/Gizmos/Behavior Designer Scene Icon.png create mode 100644 Assets/Gizmos/Behavior Designer Scene Icon.png.meta create mode 100644 Assets/Scenes/scene_demo.unity create mode 100644 Assets/Scenes/scene_demo.unity.meta delete mode 100644 Assets/SerializableDictionary.meta delete mode 100644 Assets/SerializableDictionary/Editor.meta delete mode 100644 Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs delete mode 100644 Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta delete mode 100644 Assets/SerializableDictionary/Example.meta delete mode 100644 Assets/SerializableDictionary/Example/Editor.meta delete mode 100644 Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs delete mode 100644 Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta delete mode 100644 Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity delete mode 100644 Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta delete mode 100644 Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs delete mode 100644 Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta delete mode 100644 Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs delete mode 100644 Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta delete mode 100644 Assets/SerializableDictionary/SerializableDictionary.cs delete mode 100644 Assets/SerializableDictionary/SerializableDictionary.cs.meta delete mode 100644 Assets/SerializableDictionary/SerializableDictionary.pdf delete mode 100644 Assets/SerializableDictionary/SerializableDictionary.pdf.meta create mode 100644 Assets/ThirdParty/Behavior Designer.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Documentation.pdf create mode 100644 Assets/ThirdParty/Behavior Designer/Documentation.pdf.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/Object Drawers.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Release Notes.pdf create mode 100644 Assets/ThirdParty/Behavior Designer/Release Notes.pdf.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs create mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta create mode 100644 Assets/ThirdParty/SerializableDictionary.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Editor.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs create mode 100644 Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Example.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/Editor.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs create mode 100644 Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs.meta create mode 100644 Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf create mode 100644 Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf.meta delete mode 100644 Assets/scene_demo.unity delete mode 100644 Assets/scene_demo.unity.meta (limited to 'Assets') diff --git a/Assets/Art/BOXOPHOBIC.meta b/Assets/Art/BOXOPHOBIC.meta new file mode 100644 index 00000000..1bc51115 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c912d62e24840054c81d1a6a589c2071 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog.meta new file mode 100644 index 00000000..b5693f9d --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d89d660f213219343aeb4f0c3d596811 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf new file mode 100644 index 00000000..926c9553 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf differ diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta new file mode 100644 index 00000000..9140163a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: b7924a99ee14ecc44a9137b83b73ad3f +timeCreated: 1568812262 +licenseType: Store +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core.meta new file mode 100644 index 00000000..2ce4ec25 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 71fc976a35787c84092559b2f9c21709 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta new file mode 100644 index 00000000..a1d7afe2 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8b364f989697ee14e942a1afe15ccb64 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef new file mode 100644 index 00000000..ce3bc90c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef @@ -0,0 +1,18 @@ +{ + "name": "Boxophobic.AtmosphericHeightFog.Editor", + "references": [ + "Boxophobic.Utils.Editor", + "Boxophobic.Utils.Scripts", + "Boxophobic.AtmosphericHeightFog.Runtime" + ], + "optionalUnityReferences": [], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [] +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta new file mode 100644 index 00000000..58c4c7ea --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 154764cb075aa0b4eb8b88ba5ca2617f +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs new file mode 100644 index 00000000..bc273fca --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs @@ -0,0 +1,111 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; + +namespace AtmosphericHeightFog +{ + public class HeightFogCreate + { + [MenuItem("GameObject/BOXOPHOBIC/Atmospheric Height Fog/Global", false, 9)] + static void CreateGlobalVolume() + { + if (GameObject.Find("Height Fog Global") != null) + { + Debug.Log("[Atmospheric Height Fog] " + "Height Fog Global is already added to your scene!"); + return; + } + + GameObject go = new GameObject(); + go.name = "Height Fog Global"; + go.AddComponent(); + + if (Selection.activeGameObject != null) + { + go.transform.parent = Selection.activeGameObject.transform; + } + + Selection.activeGameObject = go; + + EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); + } + + [MenuItem("GameObject/BOXOPHOBIC/Atmospheric Height Fog/Override Volume (Box)", false, 10)] + static void CreateOverrideBoxVolume() + { + if (GameObject.Find("Height Fog Global") == null) + { + Debug.Log("[Atmospheric Height Fog] " + "Height Fog Global must be added to the scene first!"); + return; + } + + GameObject go = new GameObject(); + go.name = "Height Fog Override (Box)"; + go.AddComponent(); + go.GetComponent().isTrigger = true; + go.AddComponent(); + + var sceneCamera = SceneView.lastActiveSceneView.camera; + + if (sceneCamera != null) + { + go.transform.position = sceneCamera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 10f)); + } + else + { + go.transform.localPosition = Vector3.zero; + go.transform.localEulerAngles = Vector3.zero; + go.transform.localScale = Vector3.one; + } + + if (Selection.activeGameObject != null) + { + go.transform.parent = Selection.activeGameObject.transform; + } + + Selection.activeGameObject = go; + + EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); + } + + [MenuItem("GameObject/BOXOPHOBIC/Atmospheric Height Fog/Override Volume (Sphere)", false, 11)] + static void CreateOverrideSphereVolume() + { + if (GameObject.Find("Height Fog Global") == null) + { + Debug.Log("[Atmospheric Height Fog] " + "Height Fog Global must be added to the scene first!"); + return; + } + + GameObject go = new GameObject(); + go.name = "Height Fog Override (Sphere)"; + go.AddComponent(); + go.GetComponent().isTrigger = true; + go.AddComponent(); + + var sceneCamera = SceneView.lastActiveSceneView.camera; + + if (sceneCamera != null) + { + go.transform.position = sceneCamera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 10f)); + } + else + { + go.transform.localPosition = Vector3.zero; + go.transform.localEulerAngles = Vector3.zero; + go.transform.localScale = Vector3.one; + } + + if (Selection.activeGameObject != null) + { + go.transform.parent = Selection.activeGameObject.transform; + } + + Selection.activeGameObject = go; + + EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta new file mode 100644 index 00000000..5fd3fa0f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 272a11163456c6647affb81b9e5f31a4 +timeCreated: 1573480983 +licenseType: Store +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs new file mode 100644 index 00000000..65ff14aa --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs @@ -0,0 +1,46 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEditor; + +namespace AtmosphericHeightFog +{ + [CanEditMultipleObjects] + [CustomEditor(typeof(HeightFogGlobal))] + public class HeightFogGlobalInspector : Editor + { + readonly string[] scriptMode = { "m_Script", "presetMaterial", "presetDay", "presetNight", "timeOfDay" }; + readonly string[] presetMode = { "m_Script", "presetDay", "presetNight", "timeOfDay", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; + readonly string[] timeOfDayMode = { "m_Script", "presetMaterial", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; + HeightFogGlobal targetScript; + + void OnEnable() + { + targetScript = (HeightFogGlobal)target; + } + + public override void OnInspectorGUI() + { + DrawInspector(); + } + + void DrawInspector() + { + string[] exclude = scriptMode; + + if (targetScript.fogMode == FogMode.UsePresetSettings) + { + exclude = presetMode; + } + else if (targetScript.fogMode == FogMode.UseTimeOfDay) + { + exclude = timeOfDayMode; + } + + serializedObject.Update(); + + DrawPropertiesExcluding(serializedObject, exclude); + + serializedObject.ApplyModifiedProperties(); + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta new file mode 100644 index 00000000..9dee906a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5742a0fb70ce25846bc3269f9cdcf0cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs new file mode 100644 index 00000000..624b8446 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs @@ -0,0 +1,158 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.StyledGUI; +using Boxophobic.Utils; +using System.IO; + +namespace AtmosphericHeightFog +{ + public class HeightFogHub : EditorWindow + { +#if UNITY_2019_3_OR_NEWER + const int GUI_HEIGHT = 18; +#else + const int GUI_HEIGHT = 14; +#endif + + string folderAsset = "Assets/BOXOPHOBIC/Atmospheric Height Fog"; + + string[] pipelinePaths; + string[] pipelineOptions; + string pipelinesPath; + int pipelineIndex; + + int assetVersion; + string bannerVersion; + + GUIStyle stylePopup; + + Color bannerColor; + string bannerText; + string helpURL; + static HeightFogHub window; + //Vector2 scrollPosition = Vector2.zero; + + [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Hub", false, 1000)] + public static void ShowWindow() + { + window = GetWindow(false, "Atmospheric Height Fog", true); + window.minSize = new Vector2(389, 220); + } + + void OnEnable() + { + bannerColor = new Color(0.55f, 0.7f, 1f); + bannerText = "Atmospheric Height Fog"; + helpURL = "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.hbq3w8ae720x"; + + //Safer search, there might be many user folders + string[] searchFolders; + + searchFolders = AssetDatabase.FindAssets("Atmospheric Height Fog"); + + for (int i = 0; i < searchFolders.Length; i++) + { + if (AssetDatabase.GUIDToAssetPath(searchFolders[i]).EndsWith("Atmospheric Height Fog.pdf")) + { + folderAsset = AssetDatabase.GUIDToAssetPath(searchFolders[i]); + folderAsset = folderAsset.Replace("/Atmospheric Height Fog.pdf", ""); + } + } + + pipelinesPath = folderAsset + "/Core/Pipelines"; + + GetPackages(); + + assetVersion = SettingsUtils.LoadSettingsData(folderAsset + "/Core/Editor/Version.asset", -99); + bannerVersion = assetVersion.ToString(); + bannerVersion = bannerVersion.Insert(1, "."); + bannerVersion = bannerVersion.Insert(3, "."); + + bannerColor = new Color(0.55f, 0.7f, 1f); + bannerText = "Atmospheric Height Fog " + bannerVersion; + } + + void OnGUI() + { + SetGUIStyles(); + + StyledGUI.DrawWindowBanner(bannerColor, bannerText, helpURL); + + GUILayout.BeginHorizontal(); + GUILayout.Space(20); + + GUILayout.BeginVertical(); + + //scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, false, GUILayout.Width(this.position.width - 28), GUILayout.Height(this.position.height - 80)); + + EditorGUILayout.HelpBox("Click the Import Render Pipeline to switch to another render pipeline. For Universal Render Pipeline, follow the instructions below to enable the fog rendering!", MessageType.Info, true); + + if (pipelineOptions[pipelineIndex].Contains("Universal 7.1.8")) + { + EditorGUILayout.HelpBox("For Universal 7.1.8+ Pipeline, Depth Texture and one of the following features need to be enabled for the depth to work properly: Opaque Texure, HDR or Post Processing!", MessageType.Info, true); + } + + if (pipelineOptions[pipelineIndex].Contains("Universal 7.4.1")) + { + EditorGUILayout.HelpBox("For Universal 7.4.1+ Pipeline, Depth Texture need to be enabled on the render pipeline asset!", MessageType.Info, true); + } + + DrawInterface(); + + //GUILayout.EndScrollView(); + + GUILayout.EndVertical(); + + GUILayout.Space(13); + GUILayout.EndHorizontal(); + } + + void SetGUIStyles() + { + stylePopup = new GUIStyle(EditorStyles.popup) + { + alignment = TextAnchor.MiddleCenter + }; + } + + void DrawInterface() + { + GUILayout.Space(10); + + GUILayout.BeginHorizontal(); + EditorGUILayout.LabelField(new GUIContent("Render Pipeline", ""), GUILayout.Width(220)); + pipelineIndex = EditorGUILayout.Popup(pipelineIndex, pipelineOptions, stylePopup); + if (GUILayout.Button("Import", GUILayout.Width(80), GUILayout.Height(GUI_HEIGHT))) + { + ImportPackage(); + + GUIUtility.ExitGUI(); + } + GUILayout.EndHorizontal(); + } + + void GetPackages() + { + pipelinePaths = Directory.GetFiles(pipelinesPath, "*.unitypackage", SearchOption.TopDirectoryOnly); + + pipelineOptions = new string[pipelinePaths.Length]; + + for (int i = 0; i < pipelineOptions.Length; i++) + { + pipelineOptions[i] = Path.GetFileNameWithoutExtension(pipelinePaths[i].Replace("Built-in Pipeline", "Standard")); + } + } + + void ImportPackage() + { + AssetDatabase.ImportPackage(pipelinePaths[pipelineIndex], true); + AssetDatabase.SaveAssets(); + AssetDatabase.Refresh(); + + Debug.Log("[Atmospheric Height Fog] " + pipelineOptions[pipelineIndex] + " package imported in your project!"); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta new file mode 100644 index 00000000..6a7dc147 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 094779c9d6df2bd478d3045d5a486647 +timeCreated: 1538943308 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs new file mode 100644 index 00000000..3de6f79a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs @@ -0,0 +1,45 @@ + +using UnityEditor; + +namespace AtmosphericHeightFog +{ + [CanEditMultipleObjects] + [CustomEditor(typeof(HeightFogOverride))] + public class HeightFogOverrideInspector : Editor + { + readonly string[] scriptMode = { "m_Script", "presetMaterial", "presetDay", "presetNight", "timeOfDay" }; + readonly string[] presetMode = { "m_Script", "presetDay", "presetNight", "timeOfDay", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; + readonly string[] timeOfDayMode = { "m_Script", "presetMaterial", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; + HeightFogOverride targetScript; + + void OnEnable() + { + targetScript = (HeightFogOverride)target; + } + + public override void OnInspectorGUI() + { + DrawInspector(); + } + + void DrawInspector() + { + string[] exclude = scriptMode; + + if (targetScript.fogMode == FogMode.UsePresetSettings) + { + exclude = presetMode; + } + else if (targetScript.fogMode == FogMode.UseTimeOfDay) + { + exclude = timeOfDayMode; + } + + serializedObject.Update(); + + DrawPropertiesExcluding(serializedObject, exclude); + + serializedObject.ApplyModifiedProperties(); + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta new file mode 100644 index 00000000..296414df --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4fd498d1bc844c447b1f09b2d746282e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs new file mode 100644 index 00000000..91252ba1 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs @@ -0,0 +1,61 @@ +//Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +public class HeightFogShaderGUI : ShaderGUI +{ + Material material; + + public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props) + { + base.OnGUI(materialEditor, props); + + material = materialEditor.target as Material; + + SetBlendProps(); + } + + void SetBlendProps() + { + if (material.HasProperty("_FogAxisMode")) + { + if (material.GetInt("_FogAxisMode") == 0) + { + material.SetVector("_FogAxisOption", new Vector4(1, 0, 0, 0)); + } + else if (material.GetInt("_FogAxisMode") == 1) + { + material.SetVector("_FogAxisOption", new Vector4(0, 1, 0, 0)); + } + else if (material.GetInt("_FogAxisMode") == 2) + { + material.SetVector("_FogAxisOption", new Vector4(0, 0, 1, 0)); + } + } + + if (material.HasProperty("_DirectionalMode")) + { + if (material.GetInt("_DirectionalMode") == 0) + { + material.SetFloat("_DirectionalModeBlend", 0.0f); + } + else if (material.GetInt("_DirectionalMode") == 1) + { + material.SetFloat("_DirectionalModeBlend", 1.0f); + } + } + + if (material.HasProperty("_NoiseMode")) + { + if (material.GetInt("_NoiseMode") == 0) + { + material.SetFloat("_NoiseModeBlend", 0.0f); + } + else if (material.GetInt("_NoiseMode") == 2) + { + material.SetFloat("_NoiseModeBlend", 1.0f); + } + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta new file mode 100644 index 00000000..cd445575 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fefeae948a42a964faad5fe6c75c59de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs new file mode 100644 index 00000000..bb6b0e2b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs @@ -0,0 +1,41 @@ +using UnityEditor; +using UnityEngine; + +namespace AtmosphericHeightFog +{ + public static class HeightFogWindows + { + + [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Publisher Page", false, 2000)] + public static void MoreAssets() + { + Application.OpenURL("https://assetstore.unity.com/publishers/20529"); + } + + [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Discord Server", false, 2001)] + public static void Discord() + { + Application.OpenURL("https://discord.com/invite/znxuXET"); + } + + [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Documentation", false, 2002)] + public static void Documentation() + { + Application.OpenURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#"); + } + + [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Changelog", false, 2003)] + public static void Chnagelog() + { + Application.OpenURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.1rbujejuzjce"); + } + + [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Write A Review", false, 3001)] + public static void WriteAReview() + { + Application.OpenURL("https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/atmospheric-height-fog-optimized-fog-shaders-for-consoles-mobile-143825#reviews"); + } + } +} + + diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta new file mode 100644 index 00000000..48557f75 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5fcdedd08e41e034790d1fa393bcb67e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset new file mode 100644 index 00000000..d45e51c2 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 93308045fbb3c5e42ba5ccb66d848632, type: 3} + m_Name: Version + m_EditorClassIdentifier: + data: 181 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta new file mode 100644 index 00000000..ccb072a9 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 41b457a34c9fb7f45a332c79a90945b5 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta new file mode 100644 index 00000000..2d4efe11 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 48889f68c6d6ca24c8ddb247c6cd0a50 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset new file mode 100644 index 00000000..06d67a07 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset @@ -0,0 +1,48 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Apply Height Fog + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18103\n1927;1;1906;1020;2237.796;1103.186;1;True;False\nNode;AmplifyShaderEditor.FunctionNode;92;-1664,-640;Inherit;False;Base;-1;;836;13c50910e5b86de4097e1181ba121e0e;2,99,0,116,0;0;3;FLOAT4;113;FLOAT3;86;FLOAT;87\nNode;AmplifyShaderEditor.LerpOp;82;-1344,-768;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionInput;81;-1664,-768;Inherit;False;Color;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;87;-1344,-576;Inherit;False;False;-1;Fog + Alpha;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;86;-1344,-640;Inherit;False;False;-1;Fog + Color;1;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;85;-896,-768;Inherit;False;True;-1;Fog + Applied;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CommentaryNode;56;-1664,-896;Inherit;False;890.9961;100;Final + Pass;0;;0.684,1,0,1;0;0\nWireConnection;82;0;81;0\nWireConnection;82;1;92;86\nWireConnection;82;2;92;87\nWireConnection;87;0;92;87\nWireConnection;86;0;92;86\nWireConnection;85;0;82;0\nASEEND*/\n//CHKSM=4A9132F03100914AF35678CB0005EE78ACFFC33B" + m_functionName: + m_description: "Use this function to apply fog on transparent or custom UI shaders + made with Amplify Shader Editor. \n\no Surface Shaders\nWhen using Surface Shaders + or Lightweight PBR template, connect the function to the Emission port. If Emission + is used, pass the emission color through the Apply Height Fog node.\n\no Fragment + Shaders:\nWhen Unlit or custom UI shaders are used, pass the final color through + the Apply Height Fog node.\n" + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 1 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 3 + m_customNodeCategory: + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta new file mode 100644 index 00000000..059aa075 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 950890317d4f36a48a68d150cdab0168 +timeCreated: 1570688044 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph new file mode 100644 index 00000000..58eed054 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph @@ -0,0 +1,80 @@ +{ + "m_SerializedProperties": [ + { + "typeInfo": { + "fullName": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty" + }, + "JSONnodeData": "{\n \"m_Guid\": {\n \"m_GuidSerialized\": \"b69cb30a-0386-457b-91f6-f0e92944efd1\"\n },\n \"m_Name\": \"Color\",\n \"m_DefaultReferenceName\": \"Vector3_99F0267D\",\n \"m_OverrideReferenceName\": \"\",\n \"m_GeneratePropertyBlock\": true,\n \"m_Precision\": 2,\n \"m_GPUInstanced\": false,\n \"m_Hidden\": false,\n \"m_Value\": {\n \"x\": 0.0,\n \"y\": 0.0,\n \"z\": 0.0,\n \"w\": 0.0\n }\n}" + } + ], + "m_SerializedKeywords": [], + "m_SerializableNodes": [ + { + "typeInfo": { + "fullName": "UnityEditor.ShaderGraph.SubGraphOutputNode" + }, + "JSONnodeData": "{\n \"m_GuidSerialized\": \"0c52e981-24f8-4615-892c-8ee0ff31b125\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Out_Vector3\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 314.0,\n \"y\": -43.0,\n \"width\": 138.0,\n \"height\": 77.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 0,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n }\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.ShaderGraph.CustomFunctionNode" + }, + "JSONnodeData": "{\n \"m_GuidSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Custom Function\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 31.0,\n \"y\": -40.0,\n \"width\": 208.0,\n \"height\": 302.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector4MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"FogParams\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"FogParams\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 2,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_SourceType\": 0,\n \"m_FunctionName\": \"ApplyAtmosphericHeightFog\",\n \"m_FunctionSource\": \"8db8edf9bba0e9d48998019ca6c2f9ff\",\n \"m_FunctionBody\": \"Enter function body here...\"\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.ShaderGraph.CustomFunctionNode" + }, + "JSONnodeData": "{\n \"m_GuidSerialized\": \"5f79ad2f-fb08-4321-acfc-cff0d1d60256\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Custom Function\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -312.0,\n \"y\": -39.0,\n \"width\": 251.0,\n \"height\": 278.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"World Position\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"WorldPosition\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector4MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"FogParams\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"FogParams\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n }\n ],\n \"m_Precision\": 2,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_SourceType\": 0,\n \"m_FunctionName\": \"GetAtmosphericHeightFog\",\n \"m_FunctionSource\": \"8db8edf9bba0e9d48998019ca6c2f9ff\",\n \"m_FunctionBody\": \"Enter function body here...\"\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.ShaderGraph.PositionNode" + }, + "JSONnodeData": "{\n \"m_GuidSerialized\": \"93da892c-c65f-436e-ac74-72d9b2e81019\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Position\",\n \"m_NodeVersion\": 1,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -612.0,\n \"y\": -41.0,\n \"width\": 208.0,\n \"height\": 314.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 1,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_Space\": 2\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.ShaderGraph.PropertyNode" + }, + "JSONnodeData": "{\n \"m_GuidSerialized\": \"3638eeb4-65bf-40a4-add7-73b2625238d6\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Property\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -169.0,\n \"y\": -112.0,\n \"width\": 109.0,\n \"height\": 34.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 2,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_PropertyGuidSerialized\": \"b69cb30a-0386-457b-91f6-f0e92944efd1\"\n}" + } + ], + "m_Groups": [], + "m_StickyNotes": [], + "m_SerializableEdges": [ + { + "typeInfo": { + "fullName": "UnityEditor.Graphing.Edge" + }, + "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"5f79ad2f-fb08-4321-acfc-cff0d1d60256\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\"\n }\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.Graphing.Edge" + }, + "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"93da892c-c65f-436e-ac74-72d9b2e81019\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"5f79ad2f-fb08-4321-acfc-cff0d1d60256\"\n }\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.Graphing.Edge" + }, + "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"0c52e981-24f8-4615-892c-8ee0ff31b125\"\n }\n}" + }, + { + "typeInfo": { + "fullName": "UnityEditor.Graphing.Edge" + }, + "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"3638eeb4-65bf-40a4-add7-73b2625238d6\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\"\n }\n}" + } + ], + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + } + }, + "m_Path": "Sub Graphs", + "m_ConcretePrecision": 1, + "m_ActiveOutputNodeGuidSerialized": "" +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta new file mode 100644 index 00000000..ab4ae13e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6a18ef2b21b74fd4ca138cce8d47eaa5 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset new file mode 100644 index 00000000..cb708f5a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset @@ -0,0 +1,67 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Base + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18103\n1927;7;1906;1014;1218.944;-5991.897;1;True;False\nNode;AmplifyShaderEditor.ScreenDepthNode;227;-1664,1536;Inherit;False;1;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SwizzleNode;234;-1408,1376;Inherit;False;FLOAT2;0;1;2;3;1;0;FLOAT4;0,0,0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.DynamicAppendNode;233;1344,1376;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.SwizzleNode;32;-1408,-1408;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.WorldPosInputsNode;1;-1664,3072;Float;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DynamicAppendNode;114;1024,-1024;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.GetLocalVarNode;254;-1664,3200;Inherit;False;253;WorldPositionFromDepth;1;0;OBJECT;;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;232;704,1792;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;248;-1024,1280;Inherit;False;FLOAT2;1;0;FLOAT2;0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.SimpleDivideOpNode;196;-1408,8064;Inherit;False;2;0;FLOAT;1;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;236;832,1280;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.WorldPosInputsNode;231;384,1952;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;194;-1280,8192;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;102;-1152,3200;Inherit;False;Screen + Space;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;199;-704,7936;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0.5;False;2;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;222;2560,1280;Inherit;False;4;0;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;239;2048,1280;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;244;-704,1280;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;10;-1024,8192;Inherit;False;7;NoiseDistanceMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;245;1760,1280;Inherit;False;FLOAT4;1;0;FLOAT4;0,0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.UnityObjToClipPosHlpNode;224;576,2176;Inherit;False;1;0;FLOAT3;0,0,0;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.GetLocalVarNode;21;-1664,-304;Inherit;False;16;FogHeightMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;279;-1248,-1024;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;216;2048,1792;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;302;-1408,-1024;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;19;-1664,-384;Inherit;False;12;FogDistanceMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CameraProjectionNode;238;-192,1280;Inherit;False;unity_CameraInvProjection;0;1;FLOAT4x4;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;243;1600,1280;Inherit;False;2;2;0;FLOAT4x4;0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;229;384,1280;Inherit;False;FLOAT4;1;0;FLOAT4;0,0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.CustomExpressionNode;235;-1408,1280;Inherit;False;#if + UNITY_SINGLE_PASS_STEREO$$float4 scaleOffset = unity_StereoScaleOffset[ unity_StereoEyeIndex]@$UV.xy + = (UV.xy - scaleOffset.zw) / scaleOffset.xy@$$#endif$$return UV@;2;False;1;True;UV;FLOAT2;0,0;In;;Float;False;UnStereo;False;False;0;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;230;384,1792;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.LerpOp;258;-256,-1408;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.OneMinusNode;251;-1408,1616;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;256;832,-1408;Inherit;False;Handle + Color Space;-1;;859;f6f44b689bae74d47a0885dbe3018c48;0;1;2;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;253;2800,1280;Float;False;WorldPositionFromDepth;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;260;-1664,-1024;Inherit;False;12;FogDistanceMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;217;1184,2176;Inherit;False;FLOAT4;1;0;FLOAT4;0,0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;219;1664,1792;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;249;-448,1280;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT;2;False;2;FLOAT;-1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;39;320,-128;Half;False;Global;AHF_FogIntensity;AHF_FogIntensity;3;1;[HideInInspector];Create;False;0;0;False;0;False;1;1;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;112;128,-256;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitch;99;-640,3072;Inherit;False;World + Position;False;0;2;-1;World Space;Screen Space;Object;-1;9;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;28;-896,-128;Inherit;False;24;NoiseSimplex3D;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;111;-256,-256;Inherit;False;108;SkyboxFogHeightMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;330;-1280,-256;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.ComputeScreenPosHlpNode;225;896,2176;Inherit;False;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;316;-1664,6336;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.StaticSwitch;42;-256,-384;Float;False;Property;AHF_NOISEMODE;AHF_NoiseMode;14;0;Create;False;0;0;False;0;False;1;0;0;False;;KeywordEnum;2;_OFF;_PROCEDURAL3D;Create;False;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;161;-2688,1280;Half;False;Global;AHF_FogAxisOption;AHF_FogAxisOption;0;0;Create;True;0;0;False;0;False;0,0,0;0,1,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.Vector3Node;307;-1664,6528;Half;False;Global;AHF_DirectionalDir;AHF_DirectionalDir;0;0;Create;True;0;0;False;0;False;0,0,0;0.7081007,0.2823132,0.6472192;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.RangedFloatNode;329;-1280,-128;Half;False;Global;AHF_FogLayersMode;AHF_FogLayersMode;0;0;Create;True;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;181;-2400,1280;Half;False;AHF_FogAxisOption;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSwitch;116;320,-384;Inherit;False;Option;False;0;2;-1;In + 0;In 1;Instance;99;9;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;300;-1664,-896;Half;False;Global;AHF_FogColorDuo;AHF_FogColorDuo;0;0;Create;True;0;0;False;0;False;1;0;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.ColorNode;26;-1664,-1408;Half;False;Global;AHF_FogColorStart;AHF_FogColorStart;4;0;Create;False;0;0;False;0;False;0.4411765,0.722515,1,0;0.5,0.75,1,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;205;-1280,7936;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;110;-256,-128;Inherit;False;95;SkyboxMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;201;-1664,8192;Half;False;Global;AHF_NoiseSpeed;AHF_NoiseSpeed;16;0;Create;False;0;0;False;0;False;0.5,0.5,0;0.5,0,0.5;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.ScreenPosInputsNode;241;-1664,1280;Float;False;0;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;215;1920,1984;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScreenDepthNode;218;1664,1984;Inherit;False;0;True;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;9;-1664,7936;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;237;640,1280;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;247;1152,1280;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;1,1,-1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CameraToWorldMatrix;240;1344,1280;Inherit;False;0;1;FLOAT4x4;0\nNode;AmplifyShaderEditor.CustomExpressionNode;226;2304,1408;Inherit;False;float3 + result = _731@$#if ASE_SRP_VERSION > 70301$result = _741@$#endif$return result@;3;False;2;True;_731;FLOAT3;0,0,0;In;;Inherit;False;True;_741;FLOAT3;0,0,0;In;;Inherit;False;Depth + By Version;True;False;0;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ColorNode;255;-1664,-1216;Half;False;Global;AHF_FogColorEnd;AHF_FogColorEnd;4;0;Create;False;0;0;False;0;False;0.4411765,0.722515,1,0;0.75,1,1.25,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;43;640,-384;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;37;-448,-256;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;223;1664,2080;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;207;-1664,8064;Half;False;Global;AHF_NoiseScale;AHF_NoiseScale;15;0;Create;False;0;0;False;0;False;6;30;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;246;-1248,1280;Inherit;False;4;0;FLOAT;0;False;3;FLOAT2;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;242;128,1280;Inherit;False;2;2;0;FLOAT4x4;0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.PosVertexDataNode;228;384,2176;Inherit;False;0;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.StaticSwitch;250;-1024,1536;Float;False;Property;_Keyword1;Keyword + 1;3;0;Fetch;True;0;0;False;0;False;0;0;0;False;UNITY_REVERSED_Z;Toggle;2;Key0;Key1;Fetch;False;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;152;-1280,3776;Half;False;Global;AHF_FogDistanceEnd;AHF_FogDistanceEnd;4;0;Create;False;0;0;False;0;False;30;100;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;198;-384,7936;Inherit;False;3;0;FLOAT;1;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DynamicAppendNode;220;-192,1408;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.SaturateNode;155;-640,3584;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;12;432,3584;Half;False;FogDistanceMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;153;-896,3584;Inherit;False;Remap + To 0-1;-1;;860;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;289;-640,3712;Half;False;Global;AHF_FogDistanceFalloff;AHF_FogDistanceFalloff;3;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;4;-1664,3584;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DistanceOpNode;151;-1280,3584;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;157;-1280,3712;Half;False;Global;AHF_FogDistanceStart;AHF_FogDistanceStart;3;0;Create;False;0;0;False;0;False;0;-100;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;8;-1664,4096;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.PowerNode;288;-128,3584;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;159;-1216,4096;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.RegisterLocalVarNode;16;432,4096;Half;False;FogHeightMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DotProductOpNode;145;-832,6272;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;167;-512,4096;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;162;-1408,4096;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;164;-1216,4224;Half;False;Global;AHF_FogHeightEnd;AHF_FogHeightEnd;6;0;Create;False;0;0;False;0;False;0;100;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;160;-960,4096;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;324;-384,3584;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;165;-704,4096;Inherit;False;Remap + To 0-1;-1;;857;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;154;-1664,3712;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.GetLocalVarNode;183;-1664,4224;Inherit;False;181;AHF_FogAxisOption;1;0;OBJECT;;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NoiseGeneratorNode;193;-960,7936;Inherit;False;Simplex3D;False;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;166;-1216,4288;Half;False;Global;AHF_FogHeightStart;AHF_FogHeightStart;5;0;Create;False;0;0;False;0;False;5;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;322;-320,4096;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;290;-512,4224;Half;False;Global;AHF_FogHeightFalloff;AHF_FogHeightFalloff;6;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.PowerNode;291;-128,4096;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;170;-1152,5392;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.SaturateNode;176;-448,5392;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;108;384,5392;Half;False;SkyboxFogHeightMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;326;192,5392;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;106;-1664,5392;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;173;-1280,5392;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;169;-1440,5392;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionNode;178;-640,5392;Inherit;False;Remap + To 0-1;-1;;856;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;180;-768,5392;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;179;-32,5392;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;1;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;323;-304,5392;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.OneMinusNode;124;-1408,4992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;171;-896,5392;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.PowerNode;309;-176,5392;Inherit;False;True;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;95;448,4992;Half;False;SkyboxMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CeilOpNode;121;-832,4992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;203;-704,8192;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.NormalizeNode;318;-1152,6272;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StaticSwitch;123;-1152,4992;Float;False;Property;_Keyword3;Keyword + 3;3;0;Fetch;True;0;0;False;0;False;0;0;0;False;UNITY_REVERSED_Z;Toggle;2;Key0;Key1;Fetch;False;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;310;-768,5568;Half;False;Global;AHF_SkyboxFogFalloff;AHF_SkyboxFogFalloff;3;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSubtitle;101;-1152,3072;Inherit;False;World + Space;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScreenDepthNode;118;-1664,4992;Inherit;False;1;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.OneMinusNode;122;-640,4992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;175;-1152,5568;Half;False;Global;AHF_SkyboxFogHeight;AHF_SkyboxFogHeight;8;0;Create;False;0;0;False;0;False;1;1;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;7;416,7424;Half;False;NoiseDistanceMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;327;-64,5568;Half;False;Global;AHF_SkyboxFogIntensity;AHF_SkyboxFogIntensity;9;0;Create;False;0;0;False;0;False;0;1;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;221;832,1408;Half;False;Constant;_Vector1;Vector + 1;9;0;Create;True;0;0;False;0;False;1,1,-1;0,0,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.PowerNode;319;0,6272;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;139;-640,6496;Half;False;Global;AHF_DirectionalModeBlend;AHF_DirectionalModeBlend;4;0;Create;False;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SwizzleNode;257;-1408,-1216;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;305;-1024,-1024;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;2;448,3072;Float;False;WorldPosition;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;189;-1216,7552;Half;False;Global;AHF_NoiseDistanceEnd;AHF_NoiseDistanceEnd;13;0;Create;False;0;0;False;0;False;10;50;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;315;-1664,6272;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;317;-1344,6272;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;30;432,6272;Half;False;DirectionalMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;140;-320,6272;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;3;-1664,7424;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;149;-640,6272;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0.5;False;2;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleTimeNode;204;-1664,8352;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;200;-1024,8320;Half;False;Global;AHF_NoiseModeBlend;AHF_NoiseModeBlend;11;0;Create;False;0;0;False;0;False;0.5;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;197;-1088,7936;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;195;-1024,8256;Half;False;Global;AHF_NoiseIntensity;AHF_NoiseIntensity;12;0;Create;False;0;0;False;0;False;0.5;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;187;-896,7424;Inherit;False;Remap + To 0-1;-1;;858;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;185;-640,7424;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;142;-640,6400;Half;False;Global;AHF_DirectionalIntensity;AHF_DirectionalIntensity;4;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;190;-1664,7552;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DistanceOpNode;188;-1216,7424;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;325;-128,6272;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;177;-384,5568;Half;False;Global;AHF_SkyboxFogFill;AHF_SkyboxFogFill;9;0;Create;False;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;24;432,7936;Half;False;NoiseSimplex3D;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.NegateNode;206;-1408,8192;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;29;-1152,-384;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;182;-1664,5568;Inherit;False;181;AHF_FogAxisOption;1;0;OBJECT;;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.LerpOp;328;-896,-384;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;321;-256,6496;Half;False;Global;AHF_DirectionalFalloff;AHF_DirectionalFalloff;0;0;Create;True;0;0;False;0;False;1;8;1;8;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;331;-1152.185,-252.8735;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;40;384,-1408;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;35;-256,-960;Inherit;False;30;DirectionalMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.ColorNode;23;-256,-1216;Half;False;Global;AHF_DirectionalColor;AHF_DirectionalColor;12;0;Create;False;0;0;False;0;False;1,0.6300203,0.1617647,0;1,0.75,0.5,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SwizzleNode;31;0,-1216;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;113;1280,-1024;Inherit;False;True;-1;Fog + RGBA;0;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.FunctionOutput;87;1280,-384;Inherit;False;False;-1;Fog + Alpha;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;86;1280,-1408;Inherit;False;False;-1;Fog + Color;1;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CommentaryNode;61;-1664,3456;Inherit;False;2301.125;100;Fog + Distance;0;;0,0.5882353,1,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;252;-1664,1152;Inherit;False;4738.447;100;World + Position from Depth;0;;0,1,0,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;60;-1664,7808;Inherit;False;2301.726;100;Noise;0;;0.7529412,1,0.7529412,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;115;-1664,-1536;Inherit;False;3079.888;100;Final + Pass;0;;0.497,1,0,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;59;-1664,6144;Inherit;False;2307.506;100;Directional + Light Support;0;;1,0.634,0.1617647,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;184;-2688,1152;Inherit;False;516.5447;100;Register;0;;1,1,1,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;57;-1664,3968;Inherit;False;2307.752;100;Fog + Height;0;;0,0.5882353,1,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;98;-1664,2944;Inherit;False;2305.188;100;World + Position;0;;0,1,0,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;109;-1664,5264;Inherit;False;2303.083;100;Skybox + Fog Height;0;;0.7983367,0.1411765,0.8313726,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;97;-1664,4864;Inherit;False;2305.317;100;Skybox + Mask;0;;0.7983367,0.1411765,0.8313726,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;58;-1664,7296;Inherit;False;2300.478;100;Noise + Distance Mask;0;;0.7529412,1,0.7529412,1;0;0\nWireConnection;234;0;241;0\nWireConnection;233;0;247;0\nWireConnection;32;0;26;0\nWireConnection;114;0;256;0\nWireConnection;114;3;43;0\nWireConnection;232;0;230;0\nWireConnection;232;1;231;0\nWireConnection;248;0;246;0\nWireConnection;196;1;207;0\nWireConnection;236;0;237;0\nWireConnection;236;1;229;3\nWireConnection;194;0;206;0\nWireConnection;194;1;204;0\nWireConnection;102;0;254;0\nWireConnection;199;0;193;0\nWireConnection;222;3;239;0\nWireConnection;222;1;226;0\nWireConnection;239;0;245;0\nWireConnection;239;1;245;1\nWireConnection;239;2;245;2\nWireConnection;244;0;248;0\nWireConnection;244;1;248;1\nWireConnection;244;2;250;0\nWireConnection;245;0;243;0\nWireConnection;224;0;228;0\nWireConnection;279;0;302;0\nWireConnection;216;0;219;0\nWireConnection;216;1;215;0\nWireConnection;302;0;260;0\nWireConnection;243;0;240;0\nWireConnection;243;1;233;0\nWireConnection;229;0;242;0\nWireConnection;235;0;241;0\nWireConnection;258;0;32;0\nWireConnection;258;1;257;0\nWireConnection;258;2;305;0\nWireConnection;251;0;227;0\nWireConnection;256;2;40;0\nWireConnection;253;0;222;0\nWireConnection;217;0;225;0\nWireConnection;249;0;244;0\nWireConnection;112;0;42;0\nWireConnection;112;1;111;0\nWireConnection;112;2;110;0\nWireConnection;99;0;101;0\nWireConnection;99;1;102;0\nWireConnection;330;0;19;0\nWireConnection;330;1;21;0\nWireConnection;225;0;224;0\nWireConnection;42;1;328;0\nWireConnection;42;0;37;0\nWireConnection;181;0;161;0\nWireConnection;116;0;42;0\nWireConnection;116;1;112;0\nWireConnection;205;0;9;0\nWireConnection;205;1;196;0\nWireConnection;215;0;218;0\nWireConnection;215;1;223;0\nWireConnection;237;0;229;0\nWireConnection;237;1;229;1\nWireConnection;237;2;229;2\nWireConnection;247;0;236;0\nWireConnection;247;1;221;0\nWireConnection;226;0;239;0\nWireConnection;226;1;216;0\nWireConnection;43;0;116;0\nWireConnection;43;1;39;0\nWireConnection;37;0;328;0\nWireConnection;37;1;28;0\nWireConnection;223;0;232;0\nWireConnection;223;1;217;3\nWireConnection;246;3;235;0\nWireConnection;246;1;234;0\nWireConnection;242;0;238;0\nWireConnection;242;1;220;0\nWireConnection;250;1;227;0\nWireConnection;250;0;251;0\nWireConnection;198;1;199;0\nWireConnection;198;2;203;0\nWireConnection;220;0;249;0\nWireConnection;155;0;153;0\nWireConnection;12;0;288;0\nWireConnection;153;6;151;0\nWireConnection;153;7;157;0\nWireConnection;153;8;152;0\nWireConnection;151;0;4;0\nWireConnection;151;1;154;0\nWireConnection;288;0;324;0\nWireConnection;288;1;289;0\nWireConnection;159;0;162;0\nWireConnection;16;0;291;0\nWireConnection;145;0;318;0\nWireConnection;145;1;307;0\nWireConnection;167;0;165;0\nWireConnection;162;0;8;0\nWireConnection;162;1;183;0\nWireConnection;160;0;159;0\nWireConnection;160;1;159;1\nWireConnection;160;2;159;2\nWireConnection;324;0;155;0\nWireConnection;165;6;160;0\nWireConnection;165;7;164;0\nWireConnection;165;8;166;0\nWireConnection;193;0;197;0\nWireConnection;322;0;167;0\nWireConnection;291;0;322;0\nWireConnection;291;1;290;0\nWireConnection;170;0;173;0\nWireConnection;176;0;178;0\nWireConnection;108;0;326;0\nWireConnection;326;0;179;0\nWireConnection;326;1;327;0\nWireConnection;173;0;169;0\nWireConnection;173;1;182;0\nWireConnection;169;0;106;0\nWireConnection;178;6;180;0\nWireConnection;178;7;175;0\nWireConnection;180;0;171;0\nWireConnection;179;0;309;0\nWireConnection;179;2;177;0\nWireConnection;323;0;176;0\nWireConnection;124;0;118;0\nWireConnection;171;0;170;0\nWireConnection;171;1;170;1\nWireConnection;171;2;170;2\nWireConnection;309;0;323;0\nWireConnection;309;1;310;0\nWireConnection;95;0;122;0\nWireConnection;121;0;123;0\nWireConnection;203;0;10;0\nWireConnection;203;1;195;0\nWireConnection;203;2;200;0\nWireConnection;318;0;317;0\nWireConnection;123;1;124;0\nWireConnection;123;0;118;0\nWireConnection;101;0;1;0\nWireConnection;122;0;121;0\nWireConnection;7;0;185;0\nWireConnection;319;0;325;0\nWireConnection;319;1;321;0\nWireConnection;257;0;255;0\nWireConnection;305;0;279;0\nWireConnection;305;1;300;0\nWireConnection;2;0;99;0\nWireConnection;317;0;315;0\nWireConnection;317;1;316;0\nWireConnection;30;0;319;0\nWireConnection;140;0;149;0\nWireConnection;140;1;142;0\nWireConnection;149;0;145;0\nWireConnection;197;0;205;0\nWireConnection;197;1;194;0\nWireConnection;187;6;188;0\nWireConnection;187;7;189;0\nWireConnection;185;0;187;0\nWireConnection;188;0;3;0\nWireConnection;188;1;190;0\nWireConnection;325;0;140;0\nWireConnection;24;0;198;0\nWireConnection;206;0;201;0\nWireConnection;29;0;19;0\nWireConnection;29;1;21;0\nWireConnection;328;0;29;0\nWireConnection;328;1;331;0\nWireConnection;328;2;329;0\nWireConnection;331;0;330;0\nWireConnection;40;0;258;0\nWireConnection;40;1;31;0\nWireConnection;40;2;35;0\nWireConnection;31;0;23;0\nWireConnection;113;0;114;0\nWireConnection;87;0;43;0\nWireConnection;86;0;256;0\nASEEND*/\n//CHKSM=EEFA3F102F0396E6A76ED684B45F8594EC706EAE" + m_functionName: + m_description: + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 1 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 3 + m_customNodeCategory: + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta new file mode 100644 index 00000000..fe610eef --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 13c50910e5b86de4097e1181ba121e0e +timeCreated: 1570688044 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset new file mode 100644 index 00000000..1a108235 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset @@ -0,0 +1,40 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Compute Fog Distance + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17602\n1927;7;1906;1014;1393;657.5599;1;True;False\nNode;AmplifyShaderEditor.DistanceOpNode;3;-576,-384;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;5;-896,-64;Half;False;Global;AHF_FogDistanceEnd;AHF_FogDistanceEnd;4;0;Create;False;0;0;False;0;30;60;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;14;-384,-384;Inherit;False;Math + Remap To 0-2;-1;;545;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;1;-896,-304;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.SaturateNode;7;-128,-384;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;13;-896,-384;Inherit;False;WorldPosition;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;4;-896,-144;Half;False;Global;AHF_FogDistanceStart;AHF_FogDistanceStart;3;0;Create;False;0;0;False;0;0;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;64,-384;Inherit;False;True;-1;FogDistanceMask;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;3;0;13;0\nWireConnection;3;1;1;0\nWireConnection;14;6;3;0\nWireConnection;14;7;4;0\nWireConnection;14;8;5;0\nWireConnection;7;0;14;0\nWireConnection;0;0;7;0\nASEEND*/\n//CHKSM=357410C3E110628DB9546DC90118EF40E90338B2" + m_functionName: + m_description: + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 0 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 3 + m_customNodeCategory: + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta new file mode 100644 index 00000000..7a4a8baf --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: a5f090963b8f9394a984ee752ce42488 +timeCreated: 1570102705 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset new file mode 100644 index 00000000..49089035 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset @@ -0,0 +1,38 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Handle Color Space + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17001\n1927;29;1906;1014;1516;524;1;True;False\nNode;AmplifyShaderEditor.FunctionInput;2;-896,0;Float;False;Color;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GammaToLinearNode;3;-640,-64;Float;False;0;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StaticSwitch;1;-384,0;Float;False;Property;_UNITY_COLORSPACE_GAMMA;UNITY_COLORSPACE_GAMMA;0;0;Create;True;0;0;False;0;0;0;0;False;UNITY_COLORSPACE_GAMMA;Toggle;2;Key0;Key1;Fetch;False;9;1;FLOAT3;0,0,0;False;0;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT3;0,0,0;False;5;FLOAT3;0,0,0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;0;0,0;Float;False;True;;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;3;0;2;0\nWireConnection;1;1;3;0\nWireConnection;1;0;2;0\nWireConnection;0;0;1;0\nASEEND*/\n//CHKSM=67013BC63C3B27E353374B5D4D247177010A5481" + m_functionName: + m_description: + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 0 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 3 + m_customNodeCategory: + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta new file mode 100644 index 00000000..542385ac --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: f6f44b689bae74d47a0885dbe3018c48 +timeCreated: 1568879410 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset new file mode 100644 index 00000000..1234aa1c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset @@ -0,0 +1,38 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Handle Tex Alpha + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17001\n1927;29;1906;1014;1219;513;1;True;False\nNode;AmplifyShaderEditor.CeilOpNode;4;-320,80;Float;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;2;-320,192;Float;False;Mask;1;1;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;3;-128,0;Float;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;1;-512,0;Float;False;Alpha;1;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;128,0;Float;False;True;;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;4;0;1;0\nWireConnection;3;0;1;0\nWireConnection;3;1;4;0\nWireConnection;3;2;2;0\nWireConnection;0;0;3;0\nASEEND*/\n//CHKSM=359A4287BBEDADC15949456D56D54270F350804C" + m_functionName: + m_description: + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 0 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 3 + m_customNodeCategory: + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta new file mode 100644 index 00000000..86a74997 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 92f31391e7f50294c9c2d8747c81d6b6 +timeCreated: 1568367025 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset new file mode 100644 index 00000000..2e760ea9 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset @@ -0,0 +1,39 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Is Pipeline + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17502\n1927;7;1906;1014;1238.301;483.1443;1;True;False\nNode;AmplifyShaderEditor.RangedFloatNode;4;-640,160;Half;False;Property;_IsHDPipeline;_IsHDPipeline;1;1;[HideInInspector];Create;False;0;0;True;0;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;5;-160,0;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;2;-640,0;Half;False;Property;_IsStandardPipeline;_IsStandardPipeline;0;1;[HideInInspector];Create;False;0;0;True;0;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;1;-384,0;Inherit;False;4;0;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;3;-640,80;Half;False;Property;_IsUniversalPipeline;_IsUniversalPipeline;2;1;[HideInInspector];Create;False;0;0;True;0;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;0,0;Inherit;False;True;-1;;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;5;0;1;0\nWireConnection;1;0;2;0\nWireConnection;1;3;2;0\nWireConnection;1;1;3;0\nWireConnection;1;2;4;0\nWireConnection;0;0;5;0\nASEEND*/\n//CHKSM=72B1DDE9D0321CEF3A35F69DAC1CF10E2B7944D7" + m_functionName: + m_description: + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 1 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 3 + m_customNodeCategory: + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta new file mode 100644 index 00000000..750fd52c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2b33d0c660fbdb24c98bea96428031b0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset new file mode 100644 index 00000000..1c99d031 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} + m_Name: Remap To 0-1 + m_EditorClassIdentifier: + m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset + Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=15407\n1927;29;1906;1014;1143.653;791.9193;1.377757;True;False\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;9;-128,-256;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;7;-384,-128;Float;False;Min + Old;1;1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;8;-384,-64;Float;False;Max + Old;1;2;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;10;-128,-128;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;6;-384,-256;Float;False;;1;0;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;11;128,-256;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;384,-256;Float;False;True;;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;9;0;6;0\nWireConnection;9;1;7;0\nWireConnection;10;0;8;0\nWireConnection;10;1;7;0\nWireConnection;11;0;9;0\nWireConnection;11;1;10;0\nWireConnection;0;0;11;0\nASEEND*/\n//CHKSM=3398A488E740D858EDB9E40C589BAF327735EC39" + m_functionName: + m_description: 'Remap to 0-1. + +' + m_additionalIncludes: + m_additionalIncludes: [] + m_outsideIncludes: [] + m_additionalPragmas: + m_additionalPragmas: [] + m_outsidePragmas: [] + m_additionalDirectives: + m_validData: 0 + m_isDirty: 0 + m_moduleName: ' Additional Directives' + m_independentModule: 1 + m_additionalDirectives: [] + m_shaderFunctionDirectives: [] + m_nativeDirectives: [] + m_nativeDirectivesIndex: -1 + m_nativeDirectivesFoldout: 0 + m_directivesSaveItems: [] + m_nodeCategory: 7 + m_customNodeCategory: Advanced Dynamic Shaders + m_previewPosition: 0 + m_hidden: 0 diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta new file mode 100644 index 00000000..f6527e62 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: e6e209ac370e7e74da13a6a97e315390 +timeCreated: 1522076143 +licenseType: Store +NativeFormatImporter: + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta new file mode 100644 index 00000000..ce34d0f8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4f4c82780d0eded4a96850c8c7c1e08d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc new file mode 100644 index 00000000..4a1cb269 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc @@ -0,0 +1,151 @@ +/* + +// Add the following directives to your shader for directional and noise support + +#include "Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Library/AtmosphericHeightFog.cginc" +#pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D + +// Apply Atmospheric Height Fog to transparent shaders like this +// Where finalColor is the shader output color, fogParams.rgb is the fog color and fogParams.a is the fog mask + +float4 fogParams = GetAtmosphericHeightFog(i.worldPos); +return ApplyAtmosphericHeightFog(finalColor, fogParams); + +*/ + +#ifndef ATMOSPHERIC_HEIGHT_FOG_INCLUDED +#define ATMOSPHERIC_HEIGHT_FOG_INCLUDED + +#include "UnityCG.cginc" +#include "UnityShaderVariables.cginc" + +uniform half4 AHF_FogColorStart; +uniform half4 AHF_FogColorEnd; +uniform half AHF_FogDistanceStart; +uniform half AHF_FogDistanceEnd; +uniform half AHF_FogDistanceFalloff; +uniform half AHF_FogColorDuo; +uniform half4 AHF_DirectionalColor; +uniform half3 AHF_DirectionalDir; +uniform half AHF_DirectionalIntensity; +uniform half AHF_DirectionalFalloff; +uniform half3 AHF_FogAxisOption; +uniform half AHF_FogHeightEnd; +uniform half AHF_FogHeightStart; +uniform half AHF_FogHeightFalloff; +uniform half AHF_FogLayersMode; +uniform half AHF_NoiseScale; +uniform half3 AHF_NoiseSpeed; +uniform half AHF_NoiseDistanceEnd; +uniform half AHF_NoiseIntensity; +uniform half AHF_NoiseModeBlend; +uniform half AHF_FogIntensity; + +float3 mod3D289(float3 x) { return x - floor(x / 289.0) * 289.0; } +float4 mod3D289(float4 x) { return x - floor(x / 289.0) * 289.0; } +float4 permute(float4 x) { return mod3D289((x * 34.0 + 1.0) * x); } +float4 taylorInvSqrt(float4 r) { return 1.79284291400159 - r * 0.85373472095314; } + +float snoise(float3 v) +{ + const float2 C = float2(1.0 / 6.0, 1.0 / 3.0); + float3 i = floor(v + dot(v, C.yyy)); + float3 x0 = v - i + dot(i, C.xxx); + float3 g = step(x0.yzx, x0.xyz); + float3 l = 1.0 - g; + float3 i1 = min(g.xyz, l.zxy); + float3 i2 = max(g.xyz, l.zxy); + float3 x1 = x0 - i1 + C.xxx; + float3 x2 = x0 - i2 + C.yyy; + float3 x3 = x0 - 0.5; + i = mod3D289(i); + float4 p = permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0)) + i.y + float4(0.0, i1.y, i2.y, 1.0)) + i.x + float4(0.0, i1.x, i2.x, 1.0)); + float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7) + float4 x_ = floor(j / 7.0); + float4 y_ = floor(j - 7.0 * x_); // mod(j,N) + float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0; + float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0; + float4 h = 1.0 - abs(x) - abs(y); + float4 b0 = float4(x.xy, y.xy); + float4 b1 = float4(x.zw, y.zw); + float4 s0 = floor(b0) * 2.0 + 1.0; + float4 s1 = floor(b1) * 2.0 + 1.0; + float4 sh = -step(h, 0.0); + float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; + float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; + float3 g0 = float3(a0.xy, h.x); + float3 g1 = float3(a0.zw, h.y); + float3 g2 = float3(a1.xy, h.z); + float3 g3 = float3(a1.zw, h.w); + float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3))); + g0 *= norm.x; + g1 *= norm.y; + g2 *= norm.z; + g3 *= norm.w; + float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0); + m = m * m; + m = m * m; + float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3)); + return 42.0 * dot(m, px); +} + +// Returns the fog color and alpha based on world position +float4 GetAtmosphericHeightFog(float3 positionWS) +{ + float4 finalColor; + + float3 WorldPosition = positionWS; + + float3 WorldPosition2_g1 = WorldPosition; + float temp_output_7_0_g860 = AHF_FogDistanceStart; + half FogDistanceMask12_g1 = pow(abs(saturate(((distance(WorldPosition2_g1, _WorldSpaceCameraPos) - temp_output_7_0_g860) / (AHF_FogDistanceEnd - temp_output_7_0_g860)))), AHF_FogDistanceFalloff); + float3 lerpResult258_g1 = lerp((AHF_FogColorStart).rgb, (AHF_FogColorEnd).rgb, (saturate((FogDistanceMask12_g1 - 0.5)) * AHF_FogColorDuo)); + float3 normalizeResult318_g1 = normalize((WorldPosition2_g1 - _WorldSpaceCameraPos)); + float dotResult145_g1 = dot(normalizeResult318_g1, AHF_DirectionalDir); + half DirectionalMask30_g1 = pow(abs(((dotResult145_g1*0.5 + 0.5) * AHF_DirectionalIntensity)), AHF_DirectionalFalloff); + float3 lerpResult40_g1 = lerp(lerpResult258_g1, (AHF_DirectionalColor).rgb, DirectionalMask30_g1); + float3 temp_output_2_0_g859 = lerpResult40_g1; + float3 gammaToLinear3_g859 = GammaToLinearSpace(temp_output_2_0_g859); +#ifdef UNITY_COLORSPACE_GAMMA + float3 staticSwitch1_g859 = temp_output_2_0_g859; +#else + float3 staticSwitch1_g859 = gammaToLinear3_g859; +#endif + float3 temp_output_256_0_g1 = staticSwitch1_g859; + half3 AHF_FogAxisOption181_g1 = AHF_FogAxisOption; + float3 break159_g1 = (WorldPosition2_g1 * AHF_FogAxisOption181_g1); + float temp_output_7_0_g861 = AHF_FogHeightEnd; + half FogHeightMask16_g1 = pow(abs(saturate((((break159_g1.x + break159_g1.y + break159_g1.z) - temp_output_7_0_g861) / (AHF_FogHeightStart - temp_output_7_0_g861)))), AHF_FogHeightFalloff); + float lerpResult328_g1 = lerp((FogDistanceMask12_g1 * FogHeightMask16_g1), saturate((FogDistanceMask12_g1 + FogHeightMask16_g1)), AHF_FogLayersMode); + float simplePerlin3D193_g1 = snoise(((WorldPosition2_g1 * (1.0 / AHF_NoiseScale)) + (-AHF_NoiseSpeed * _Time.y))); + float temp_output_7_0_g863 = AHF_NoiseDistanceEnd; + half NoiseDistanceMask7_g1 = saturate(((distance(WorldPosition2_g1, _WorldSpaceCameraPos) - temp_output_7_0_g863) / (0.0 - temp_output_7_0_g863))); + float lerpResult198_g1 = lerp(1.0, (simplePerlin3D193_g1*0.5 + 0.5), (NoiseDistanceMask7_g1 * AHF_NoiseIntensity * AHF_NoiseModeBlend)); + half NoiseSimplex3D24_g1 = lerpResult198_g1; +#if defined(AHF_NOISEMODE_OFF) + float staticSwitch42_g1 = lerpResult328_g1; +#elif defined(AHF_NOISEMODE_PROCEDURAL3D) + float staticSwitch42_g1 = (lerpResult328_g1 * NoiseSimplex3D24_g1); +#else + float staticSwitch42_g1 = lerpResult328_g1; +#endif + float temp_output_43_0_g1 = (staticSwitch42_g1 * AHF_FogIntensity); + float4 appendResult114_g1 = (float4(temp_output_256_0_g1, temp_output_43_0_g1)); + + + finalColor = appendResult114_g1; + return finalColor; +} + +// Applies the fog +float3 ApplyAtmosphericHeightFog(float3 color, float4 fog) +{ + return float3(lerp(color.rgb, fog.rgb, fog.a)); +} + +float4 ApplyAtmosphericHeightFog(float4 color, float4 fog) +{ + return float4(lerp(color.rgb, fog.rgb, fog.a), color.a); +} + +#endif diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta new file mode 100644 index 00000000..0171b1be --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 8db8edf9bba0e9d48998019ca6c2f9ff +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta new file mode 100644 index 00000000..33b8f10c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a4b790190affff74cb727562ad03cc6a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage new file mode 100644 index 00000000..110433d0 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage differ diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta new file mode 100644 index 00000000..d4c3ffb4 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1782b72cd0e99a54fac09382c482e3db +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage new file mode 100644 index 00000000..1a0bb944 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage differ diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta new file mode 100644 index 00000000..f8c9cf9a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: da3283d8cb2d7784ea67bcd1981c5120 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage new file mode 100644 index 00000000..1a5d8a8f Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage differ diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta new file mode 100644 index 00000000..76258fcb --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3e039c1b18fda364d81ea8d40165a1c5 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage new file mode 100644 index 00000000..58680f44 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage differ diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta new file mode 100644 index 00000000..98567f5e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f0fb88f906051724081fc159d3aeed31 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta new file mode 100644 index 00000000..41d63c53 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5f2613b838385724184911eab0a95ff3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader new file mode 100644 index 00000000..4d74e86f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader @@ -0,0 +1,301 @@ +// Made with Amplify Shader Editor +// Available at the Unity Asset Store - http://u3d.as/y3X +Shader "Hidden/BOXOPHOBIC/Atmospherics/Height Fog Global" +{ + Properties + { + [HideInInspector]_IsStandardPipeline("_IsStandardPipeline", Float) = 0 + [HideInInspector]_HeightFogGlobal("_HeightFogGlobal", Float) = 1 + [HideInInspector]_IsHeightFogShader("_IsHeightFogShader", Float) = 1 + [HideInInspector]_TransparentQueue("_TransparentQueue", Int) = 3000 + [StyledBanner(Height Fog Global)]_TITLE("< TITLE >", Float) = 1 + + } + + SubShader + { + + + Tags { "RenderType"="Overlay" "Queue"="Overlay" } + LOD 0 + + CGINCLUDE + #pragma target 3.0 + ENDCG + Blend SrcAlpha OneMinusSrcAlpha + Cull Front + ColorMask RGBA + ZWrite Off + ZTest Always + Stencil + { + Ref 222 + Comp NotEqual + Pass Zero + } + + + Pass + { + Name "Unlit" + //Tags { "LightMode"="ForwardBase" "PreviewType"="Skybox" } + CGPROGRAM + + + + #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX + //only defining to not throw compilation error over Unity 5.5 + #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) + #endif + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile_instancing + #include "UnityCG.cginc" + #include "UnityShaderVariables.cginc" + #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D + + + struct appdata + { + float4 vertex : POSITION; + float4 color : COLOR; + UNITY_VERTEX_INPUT_INSTANCE_ID + + }; + + struct v2f + { + float4 vertex : SV_POSITION; +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + float3 worldPos : TEXCOORD0; +#endif + UNITY_VERTEX_INPUT_INSTANCE_ID + UNITY_VERTEX_OUTPUT_STEREO + float4 ase_texcoord1 : TEXCOORD1; + }; + + uniform half _IsHeightFogShader; + uniform half _TITLE; + uniform half _HeightFogGlobal; + uniform int _TransparentQueue; + uniform half _IsStandardPipeline; + uniform half4 AHF_FogColorStart; + uniform half4 AHF_FogColorEnd; + UNITY_DECLARE_DEPTH_TEXTURE( _CameraDepthTexture ); + uniform float4 _CameraDepthTexture_TexelSize; + uniform half AHF_FogDistanceStart; + uniform half AHF_FogDistanceEnd; + uniform half AHF_FogDistanceFalloff; + uniform half AHF_FogColorDuo; + uniform half4 AHF_DirectionalColor; + uniform half3 AHF_DirectionalDir; + uniform half AHF_DirectionalIntensity; + uniform half AHF_DirectionalFalloff; + uniform half3 AHF_FogAxisOption; + uniform half AHF_FogHeightEnd; + uniform half AHF_FogHeightStart; + uniform half AHF_FogHeightFalloff; + uniform half AHF_FogLayersMode; + uniform half AHF_NoiseScale; + uniform half3 AHF_NoiseSpeed; + uniform half AHF_NoiseDistanceEnd; + uniform half AHF_NoiseIntensity; + uniform half AHF_NoiseModeBlend; + uniform half AHF_SkyboxFogHeight; + uniform half AHF_SkyboxFogFalloff; + uniform half AHF_SkyboxFogFill; + uniform half AHF_SkyboxFogIntensity; + uniform half AHF_FogIntensity; + float2 UnStereo( float2 UV ) + { + #if UNITY_SINGLE_PASS_STEREO + float4 scaleOffset = unity_StereoScaleOffset[ unity_StereoEyeIndex]; + UV.xy = (UV.xy - scaleOffset.zw) / scaleOffset.xy; + #endif + return UV; + } + + float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } + float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } + float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } + float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } + float snoise( float3 v ) + { + const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); + float3 i = floor( v + dot( v, C.yyy ) ); + float3 x0 = v - i + dot( i, C.xxx ); + float3 g = step( x0.yzx, x0.xyz ); + float3 l = 1.0 - g; + float3 i1 = min( g.xyz, l.zxy ); + float3 i2 = max( g.xyz, l.zxy ); + float3 x1 = x0 - i1 + C.xxx; + float3 x2 = x0 - i2 + C.yyy; + float3 x3 = x0 - 0.5; + i = mod3D289( i); + float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); + float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) + float4 x_ = floor( j / 7.0 ); + float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) + float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 h = 1.0 - abs( x ) - abs( y ); + float4 b0 = float4( x.xy, y.xy ); + float4 b1 = float4( x.zw, y.zw ); + float4 s0 = floor( b0 ) * 2.0 + 1.0; + float4 s1 = floor( b1 ) * 2.0 + 1.0; + float4 sh = -step( h, 0.0 ); + float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; + float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; + float3 g0 = float3( a0.xy, h.x ); + float3 g1 = float3( a0.zw, h.y ); + float3 g2 = float3( a1.xy, h.z ); + float3 g3 = float3( a1.zw, h.w ); + float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); + g0 *= norm.x; + g1 *= norm.y; + g2 *= norm.z; + g3 *= norm.w; + float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); + m = m* m; + m = m* m; + float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); + return 42.0 * dot( m, px); + } + + + + v2f vert ( appdata v ) + { + v2f o; + UNITY_SETUP_INSTANCE_ID(v); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); + UNITY_TRANSFER_INSTANCE_ID(v, o); + + float3 temp_cast_0 = (( _IsStandardPipeline * 0.0 )).xxx; + + float4 ase_clipPos = UnityObjectToClipPos(v.vertex); + float4 screenPos = ComputeScreenPos(ase_clipPos); + o.ase_texcoord1 = screenPos; + + float3 vertexValue = float3(0, 0, 0); + #if ASE_ABSOLUTE_VERTEX_POS + vertexValue = v.vertex.xyz; + #endif + vertexValue = temp_cast_0; + #if ASE_ABSOLUTE_VERTEX_POS + v.vertex.xyz = vertexValue; + #else + v.vertex.xyz += vertexValue; + #endif + o.vertex = UnityObjectToClipPos(v.vertex); + +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; +#endif + return o; + } + + fixed4 frag (v2f i ) : SV_Target + { + UNITY_SETUP_INSTANCE_ID(i); + UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); + fixed4 finalColor; +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + float3 WorldPosition = i.worldPos; +#endif + float4 screenPos = i.ase_texcoord1; + float4 ase_screenPosNorm = screenPos / screenPos.w; + ase_screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? ase_screenPosNorm.z : ase_screenPosNorm.z * 0.5 + 0.5; + float2 UV235_g1045 = ase_screenPosNorm.xy; + float2 localUnStereo235_g1045 = UnStereo( UV235_g1045 ); + float2 break248_g1045 = localUnStereo235_g1045; + float clampDepth227_g1045 = SAMPLE_DEPTH_TEXTURE( _CameraDepthTexture, ase_screenPosNorm.xy ); + #ifdef UNITY_REVERSED_Z + float staticSwitch250_g1045 = ( 1.0 - clampDepth227_g1045 ); + #else + float staticSwitch250_g1045 = clampDepth227_g1045; + #endif + float3 appendResult244_g1045 = (float3(break248_g1045.x , break248_g1045.y , staticSwitch250_g1045)); + float4 appendResult220_g1045 = (float4((appendResult244_g1045*2.0 + -1.0) , 1.0)); + float4 break229_g1045 = mul( unity_CameraInvProjection, appendResult220_g1045 ); + float3 appendResult237_g1045 = (float3(break229_g1045.x , break229_g1045.y , break229_g1045.z)); + float4 appendResult233_g1045 = (float4(( ( appendResult237_g1045 / break229_g1045.w ) * half3(1,1,-1) ) , 1.0)); + float4 break245_g1045 = mul( unity_CameraToWorld, appendResult233_g1045 ); + float3 appendResult239_g1045 = (float3(break245_g1045.x , break245_g1045.y , break245_g1045.z)); + float3 WorldPositionFromDepth253_g1045 = appendResult239_g1045; + float3 WorldPosition2_g1045 = WorldPositionFromDepth253_g1045; + float temp_output_7_0_g1047 = AHF_FogDistanceStart; + half FogDistanceMask12_g1045 = pow( abs( saturate( ( ( distance( WorldPosition2_g1045 , _WorldSpaceCameraPos ) - temp_output_7_0_g1047 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g1047 ) ) ) ) , AHF_FogDistanceFalloff ); + float3 lerpResult258_g1045 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g1045 - 0.5 ) ) * AHF_FogColorDuo )); + float3 normalizeResult318_g1045 = normalize( ( WorldPosition2_g1045 - _WorldSpaceCameraPos ) ); + float dotResult145_g1045 = dot( normalizeResult318_g1045 , AHF_DirectionalDir ); + half DirectionalMask30_g1045 = pow( abs( ( (dotResult145_g1045*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); + float3 lerpResult40_g1045 = lerp( lerpResult258_g1045 , (AHF_DirectionalColor).rgb , DirectionalMask30_g1045); + float3 temp_output_2_0_g1046 = lerpResult40_g1045; + float3 gammaToLinear3_g1046 = GammaToLinearSpace( temp_output_2_0_g1046 ); + #ifdef UNITY_COLORSPACE_GAMMA + float3 staticSwitch1_g1046 = temp_output_2_0_g1046; + #else + float3 staticSwitch1_g1046 = gammaToLinear3_g1046; + #endif + float3 temp_output_256_0_g1045 = staticSwitch1_g1046; + half3 AHF_FogAxisOption181_g1045 = AHF_FogAxisOption; + float3 break159_g1045 = ( WorldPosition2_g1045 * AHF_FogAxisOption181_g1045 ); + float temp_output_7_0_g1048 = AHF_FogHeightEnd; + half FogHeightMask16_g1045 = pow( abs( saturate( ( ( ( break159_g1045.x + break159_g1045.y + break159_g1045.z ) - temp_output_7_0_g1048 ) / ( AHF_FogHeightStart - temp_output_7_0_g1048 ) ) ) ) , AHF_FogHeightFalloff ); + float lerpResult328_g1045 = lerp( ( FogDistanceMask12_g1045 * FogHeightMask16_g1045 ) , saturate( ( FogDistanceMask12_g1045 + FogHeightMask16_g1045 ) ) , AHF_FogLayersMode); + float simplePerlin3D193_g1045 = snoise( ( ( WorldPosition2_g1045 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); + float temp_output_7_0_g1050 = AHF_NoiseDistanceEnd; + half NoiseDistanceMask7_g1045 = saturate( ( ( distance( WorldPosition2_g1045 , _WorldSpaceCameraPos ) - temp_output_7_0_g1050 ) / ( 0.0 - temp_output_7_0_g1050 ) ) ); + float lerpResult198_g1045 = lerp( 1.0 , (simplePerlin3D193_g1045*0.5 + 0.5) , ( NoiseDistanceMask7_g1045 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); + half NoiseSimplex3D24_g1045 = lerpResult198_g1045; + #if defined(AHF_NOISEMODE_OFF) + float staticSwitch42_g1045 = lerpResult328_g1045; + #elif defined(AHF_NOISEMODE_PROCEDURAL3D) + float staticSwitch42_g1045 = ( lerpResult328_g1045 * NoiseSimplex3D24_g1045 ); + #else + float staticSwitch42_g1045 = lerpResult328_g1045; + #endif + float3 normalizeResult169_g1045 = normalize( WorldPosition2_g1045 ); + float3 break170_g1045 = ( normalizeResult169_g1045 * AHF_FogAxisOption181_g1045 ); + float temp_output_7_0_g1049 = AHF_SkyboxFogHeight; + float saferPower309_g1045 = max( abs( saturate( ( ( abs( ( break170_g1045.x + break170_g1045.y + break170_g1045.z ) ) - temp_output_7_0_g1049 ) / ( 0.0 - temp_output_7_0_g1049 ) ) ) ) , 0.0001 ); + float lerpResult179_g1045 = lerp( pow( saferPower309_g1045 , AHF_SkyboxFogFalloff ) , 1.0 , AHF_SkyboxFogFill); + half SkyboxFogHeightMask108_g1045 = ( lerpResult179_g1045 * AHF_SkyboxFogIntensity ); + float clampDepth118_g1045 = SAMPLE_DEPTH_TEXTURE( _CameraDepthTexture, ase_screenPosNorm.xy ); + #ifdef UNITY_REVERSED_Z + float staticSwitch123_g1045 = clampDepth118_g1045; + #else + float staticSwitch123_g1045 = ( 1.0 - clampDepth118_g1045 ); + #endif + half SkyboxMask95_g1045 = ( 1.0 - ceil( staticSwitch123_g1045 ) ); + float lerpResult112_g1045 = lerp( staticSwitch42_g1045 , SkyboxFogHeightMask108_g1045 , SkyboxMask95_g1045); + float temp_output_43_0_g1045 = ( lerpResult112_g1045 * AHF_FogIntensity ); + float4 appendResult114_g1045 = (float4(temp_output_256_0_g1045 , temp_output_43_0_g1045)); + + + finalColor = appendResult114_g1045; + return finalColor; + } + ENDCG + } + } + + + +} +/*ASEBEGIN +Version=18103 +1927;1;1906;1020;5409.4;5525.235;2.429641;True;False +Node;AmplifyShaderEditor.RangedFloatNode;879;-3136,-4864;Half;False;Property;_HeightFogGlobal;_HeightFogGlobal;4;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.IntNode;891;-2656,-4864;Float;False;Property;_TransparentQueue;_TransparentQueue;6;1;[HideInInspector];Create;False;0;0;True;0;False;3000;0;0;1;INT;0 +Node;AmplifyShaderEditor.FunctionNode;1029;-3328,-4608;Inherit;False;Base;-1;;1045;13c50910e5b86de4097e1181ba121e0e;2,116,1,99,1;0;3;FLOAT4;113;FLOAT3;86;FLOAT;87 +Node;AmplifyShaderEditor.FunctionNode;915;-3328,-4480;Inherit;False;Is Pipeline;0;;1044;2b33d0c660fbdb24c98bea96428031b0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;885;-2912,-4864;Half;False;Property;_IsHeightFogShader;_IsHeightFogShader;5;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;892;-3328,-4864;Half;False;Property;_TITLE;< TITLE >;7;0;Create;True;0;0;True;1;StyledBanner(Height Fog Global);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;383;-3072,-4608;Float;False;True;-1;2;;0;1;Hidden/BOXOPHOBIC/Atmospherics/Height Fog Global;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;5;False;-1;10;False;-1;True;0;False;-1;0;False;-1;True;False;True;1;False;-1;True;True;True;True;True;0;False;-1;True;True;222;False;-1;255;False;-1;255;False;-1;6;False;-1;2;False;-1;0;False;-1;0;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;594;True;7;False;595;True;False;0;False;500;1000;False;500;True;2;RenderType=Overlay=RenderType;Queue=Overlay=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;2;LightMode=ForwardBase;PreviewType=Skybox;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 +Node;AmplifyShaderEditor.CommentaryNode;880;-3328,-4992;Inherit;False;919.8825;100;Drawers;0;;1,0.475862,0,1;0;0 +WireConnection;383;0;1029;113 +WireConnection;383;1;915;0 +ASEEND*/ +//CHKSM=BFDE70D7D1E42608460807DF4DA7EDF074083B59 \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta new file mode 100644 index 00000000..36bde76b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 3a7ef1b66bafb7a448a880ef76d2e6e6 +timeCreated: 1568125885 +licenseType: Store +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader new file mode 100644 index 00000000..30f012c8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader @@ -0,0 +1,294 @@ +// Made with Amplify Shader Editor +// Available at the Unity Asset Store - http://u3d.as/y3X +Shader "BOXOPHOBIC/Atmospherics/Height Fog Per Object" +{ + Properties + { + [HideInInspector]_HeightFogPerObject("_HeightFogPerObject", Float) = 1 + [HideInInspector]_IsStandardPipeline("_IsStandardPipeline", Float) = 0 + [HideInInspector]_IsHeightFogShader("_IsHeightFogShader", Float) = 1 + [HideInInspector]_TransparentQueue("_TransparentQueue", Int) = 3000 + [StyledBanner(Height Fog Per Object)]_TITLEE("< TITLEE >", Float) = 1 + [StyledCategory(Custom Alpha Inputs)]_CUSTOM("[ CUSTOM ]", Float) = 1 + _Color("Color", Color) = (1,1,1,1) + _MainTex("MainTex", 2D) = "white" {} + + } + + SubShader + { + + + Tags { "RenderType"="Transparent" "Queue"="Transparent" } + LOD 0 + + CGINCLUDE + #pragma target 3.0 + ENDCG + Blend SrcAlpha OneMinusSrcAlpha , One One + Cull Back + ColorMask RGBA + ZWrite Off + ZTest LEqual + + + + Pass + { + Name "Unlit" + //Tags { "LightMode"="ForwardBase" } + CGPROGRAM + + + + #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX + //only defining to not throw compilation error over Unity 5.5 + #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) + #endif + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile_instancing + #include "UnityCG.cginc" + #include "UnityShaderVariables.cginc" + #define ASE_NEEDS_FRAG_WORLD_POSITION + #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D + + + struct appdata + { + float4 vertex : POSITION; + float4 color : COLOR; + UNITY_VERTEX_INPUT_INSTANCE_ID + float4 ase_texcoord : TEXCOORD0; + }; + + struct v2f + { + float4 vertex : SV_POSITION; +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + float3 worldPos : TEXCOORD0; +#endif + UNITY_VERTEX_INPUT_INSTANCE_ID + UNITY_VERTEX_OUTPUT_STEREO + float4 ase_texcoord1 : TEXCOORD1; + }; + + uniform half _CUSTOM; + uniform half _HeightFogPerObject; + uniform half _IsHeightFogShader; + uniform half _TITLEE; + uniform int _TransparentQueue; + uniform half _IsStandardPipeline; + uniform half4 AHF_FogColorStart; + uniform half4 AHF_FogColorEnd; + uniform half AHF_FogDistanceStart; + uniform half AHF_FogDistanceEnd; + uniform half AHF_FogDistanceFalloff; + uniform half AHF_FogColorDuo; + uniform half4 AHF_DirectionalColor; + uniform half3 AHF_DirectionalDir; + uniform half AHF_DirectionalIntensity; + uniform half AHF_DirectionalFalloff; + uniform half3 AHF_FogAxisOption; + uniform half AHF_FogHeightEnd; + uniform half AHF_FogHeightStart; + uniform half AHF_FogHeightFalloff; + uniform half AHF_FogLayersMode; + uniform half AHF_NoiseScale; + uniform half3 AHF_NoiseSpeed; + uniform half AHF_NoiseDistanceEnd; + uniform half AHF_NoiseIntensity; + uniform half AHF_NoiseModeBlend; + uniform half AHF_FogIntensity; + uniform half4 _Color; + uniform sampler2D _MainTex; + uniform float4 _MainTex_ST; + float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } + float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } + float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } + float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } + float snoise( float3 v ) + { + const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); + float3 i = floor( v + dot( v, C.yyy ) ); + float3 x0 = v - i + dot( i, C.xxx ); + float3 g = step( x0.yzx, x0.xyz ); + float3 l = 1.0 - g; + float3 i1 = min( g.xyz, l.zxy ); + float3 i2 = max( g.xyz, l.zxy ); + float3 x1 = x0 - i1 + C.xxx; + float3 x2 = x0 - i2 + C.yyy; + float3 x3 = x0 - 0.5; + i = mod3D289( i); + float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); + float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) + float4 x_ = floor( j / 7.0 ); + float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) + float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 h = 1.0 - abs( x ) - abs( y ); + float4 b0 = float4( x.xy, y.xy ); + float4 b1 = float4( x.zw, y.zw ); + float4 s0 = floor( b0 ) * 2.0 + 1.0; + float4 s1 = floor( b1 ) * 2.0 + 1.0; + float4 sh = -step( h, 0.0 ); + float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; + float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; + float3 g0 = float3( a0.xy, h.x ); + float3 g1 = float3( a0.zw, h.y ); + float3 g2 = float3( a1.xy, h.z ); + float3 g3 = float3( a1.zw, h.w ); + float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); + g0 *= norm.x; + g1 *= norm.y; + g2 *= norm.z; + g3 *= norm.w; + float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); + m = m* m; + m = m* m; + float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); + return 42.0 * dot( m, px); + } + + + + v2f vert ( appdata v ) + { + v2f o; + UNITY_SETUP_INSTANCE_ID(v); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); + UNITY_TRANSFER_INSTANCE_ID(v, o); + + int CustomVertexOffset918 = 0; + float3 temp_cast_0 = (( CustomVertexOffset918 + ( _IsStandardPipeline * 0.0 ) )).xxx; + + o.ase_texcoord1.xy = v.ase_texcoord.xy; + + //setting value to unused interpolator channels and avoid initialization warnings + o.ase_texcoord1.zw = 0; + float3 vertexValue = float3(0, 0, 0); + #if ASE_ABSOLUTE_VERTEX_POS + vertexValue = v.vertex.xyz; + #endif + vertexValue = temp_cast_0; + #if ASE_ABSOLUTE_VERTEX_POS + v.vertex.xyz = vertexValue; + #else + v.vertex.xyz += vertexValue; + #endif + o.vertex = UnityObjectToClipPos(v.vertex); + +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; +#endif + return o; + } + + fixed4 frag (v2f i ) : SV_Target + { + UNITY_SETUP_INSTANCE_ID(i); + UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); + fixed4 finalColor; +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + float3 WorldPosition = i.worldPos; +#endif + float3 WorldPosition2_g771 = WorldPosition; + float temp_output_7_0_g860 = AHF_FogDistanceStart; + half FogDistanceMask12_g771 = pow( abs( saturate( ( ( distance( WorldPosition2_g771 , _WorldSpaceCameraPos ) - temp_output_7_0_g860 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g860 ) ) ) ) , AHF_FogDistanceFalloff ); + float3 lerpResult258_g771 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g771 - 0.5 ) ) * AHF_FogColorDuo )); + float3 normalizeResult318_g771 = normalize( ( WorldPosition2_g771 - _WorldSpaceCameraPos ) ); + float dotResult145_g771 = dot( normalizeResult318_g771 , AHF_DirectionalDir ); + half DirectionalMask30_g771 = pow( abs( ( (dotResult145_g771*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); + float3 lerpResult40_g771 = lerp( lerpResult258_g771 , (AHF_DirectionalColor).rgb , DirectionalMask30_g771); + float3 temp_output_2_0_g859 = lerpResult40_g771; + float3 gammaToLinear3_g859 = GammaToLinearSpace( temp_output_2_0_g859 ); + #ifdef UNITY_COLORSPACE_GAMMA + float3 staticSwitch1_g859 = temp_output_2_0_g859; + #else + float3 staticSwitch1_g859 = gammaToLinear3_g859; + #endif + float3 temp_output_256_0_g771 = staticSwitch1_g859; + half3 AHF_FogAxisOption181_g771 = AHF_FogAxisOption; + float3 break159_g771 = ( WorldPosition2_g771 * AHF_FogAxisOption181_g771 ); + float temp_output_7_0_g861 = AHF_FogHeightEnd; + half FogHeightMask16_g771 = pow( abs( saturate( ( ( ( break159_g771.x + break159_g771.y + break159_g771.z ) - temp_output_7_0_g861 ) / ( AHF_FogHeightStart - temp_output_7_0_g861 ) ) ) ) , AHF_FogHeightFalloff ); + float lerpResult328_g771 = lerp( ( FogDistanceMask12_g771 * FogHeightMask16_g771 ) , saturate( ( FogDistanceMask12_g771 + FogHeightMask16_g771 ) ) , AHF_FogLayersMode); + float simplePerlin3D193_g771 = snoise( ( ( WorldPosition2_g771 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); + float temp_output_7_0_g863 = AHF_NoiseDistanceEnd; + half NoiseDistanceMask7_g771 = saturate( ( ( distance( WorldPosition2_g771 , _WorldSpaceCameraPos ) - temp_output_7_0_g863 ) / ( 0.0 - temp_output_7_0_g863 ) ) ); + float lerpResult198_g771 = lerp( 1.0 , (simplePerlin3D193_g771*0.5 + 0.5) , ( NoiseDistanceMask7_g771 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); + half NoiseSimplex3D24_g771 = lerpResult198_g771; + #if defined(AHF_NOISEMODE_OFF) + float staticSwitch42_g771 = lerpResult328_g771; + #elif defined(AHF_NOISEMODE_PROCEDURAL3D) + float staticSwitch42_g771 = ( lerpResult328_g771 * NoiseSimplex3D24_g771 ); + #else + float staticSwitch42_g771 = lerpResult328_g771; + #endif + float temp_output_43_0_g771 = ( staticSwitch42_g771 * AHF_FogIntensity ); + float2 uv0_MainTex = i.ase_texcoord1.xy * _MainTex_ST.xy + _MainTex_ST.zw; + float temp_output_1_0_g753 = tex2D( _MainTex, uv0_MainTex ).a; + float temp_output_7_0_g752 = AHF_FogDistanceStart; + float lerpResult3_g753 = lerp( temp_output_1_0_g753 , ceil( temp_output_1_0_g753 ) , saturate( ( ( distance( WorldPosition , _WorldSpaceCameraPos ) - temp_output_7_0_g752 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g752 ) ) )); + half CustomAlphaInputs897 = ( _Color.a * lerpResult3_g753 ); + float4 appendResult384 = (float4(temp_output_256_0_g771 , ( temp_output_43_0_g771 * CustomAlphaInputs897 ))); + + + finalColor = appendResult384; + return finalColor; + } + ENDCG + } + } + + + +} +/*ASEBEGIN +Version=18103 +1927;1;1906;1020;4148.027;3949.353;1;True;False +Node;AmplifyShaderEditor.WorldPosInputsNode;943;-3328,-3584;Float;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 +Node;AmplifyShaderEditor.TextureCoordinatesNode;895;-3328,-3840;Inherit;False;0;892;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.SamplerNode;892;-3072,-3840;Inherit;True;Property;_MainTex;MainTex;10;0;Create;False;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;MipBias;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.FunctionNode;942;-3072,-3584;Inherit;False;Compute Fog Distance;-1;;751;a5f090963b8f9394a984ee752ce42488;0;1;13;FLOAT3;0,0,0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.FunctionNode;913;-2688,-3840;Inherit;False;Handle Tex Alpha;-1;;753;92f31391e7f50294c9c2d8747c81d6b6;0;2;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.ColorNode;894;-3328,-4096;Half;False;Property;_Color;Color;9;0;Create;False;0;0;False;0;False;1,1,1,1;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;896;-2304,-4096;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.RegisterLocalVarNode;897;-2144,-4096;Half;False;CustomAlphaInputs;-1;True;1;0;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.IntNode;919;-3328,-3200;Float;False;Constant;_Int0;Int 0;5;0;Create;True;0;0;False;0;False;0;0;0;1;INT;0 +Node;AmplifyShaderEditor.RegisterLocalVarNode;918;-3136,-3200;Half;False;CustomVertexOffset;-1;True;1;0;INT;0;False;1;INT;0 +Node;AmplifyShaderEditor.FunctionNode;944;-3328,-4736;Inherit;False;Base;-1;;771;13c50910e5b86de4097e1181ba121e0e;2,116,0,99,0;0;3;FLOAT4;113;FLOAT3;86;FLOAT;87 +Node;AmplifyShaderEditor.GetLocalVarNode;898;-3328,-4544;Inherit;False;897;CustomAlphaInputs;1;0;OBJECT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;938;-3008,-4608;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.FunctionNode;935;-2816,-4512;Inherit;False;Is Pipeline;1;;864;2b33d0c660fbdb24c98bea96428031b0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.GetLocalVarNode;920;-2816,-4608;Inherit;False;918;CustomVertexOffset;1;0;OBJECT;0;False;1;INT;0 +Node;AmplifyShaderEditor.RangedFloatNode;890;-2688,-5248;Half;False;Property;_IsHeightFogShader;_IsHeightFogShader;5;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;923;-3328,-5248;Half;False;Property;_TITLEE;< TITLEE >;7;0;Create;True;0;0;True;1;StyledBanner(Height Fog Per Object);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.IntNode;922;-2432,-5248;Float;False;Property;_TransparentQueue;_TransparentQueue;6;1;[HideInInspector];Create;False;0;0;True;0;False;3000;0;0;1;INT;0 +Node;AmplifyShaderEditor.RangedFloatNode;879;-2944,-5248;Half;False;Property;_HeightFogPerObject;_HeightFogPerObject;0;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;899;-3169,-5248;Half;False;Property;_CUSTOM;[ CUSTOM ];8;0;Create;True;0;0;True;1;StyledCategory(Custom Alpha Inputs);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.SimpleAddOpNode;936;-2512,-4592;Inherit;False;2;2;0;INT;0;False;1;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.DynamicAppendNode;384;-2816,-4736;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0 +Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;383;-2304,-4736;Float;False;True;-1;2;;0;1;BOXOPHOBIC/Atmospherics/Height Fog Per Object;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;4;1;False;-1;1;False;-1;True;0;False;-1;0;False;-1;True;False;True;0;False;-1;True;True;True;True;True;0;False;-1;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;594;True;0;False;595;True;False;10;True;890;10;True;890;True;2;RenderType=Transparent=RenderType;Queue=Transparent=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 +Node;AmplifyShaderEditor.CommentaryNode;916;-3328,-3328;Inherit;False;1409.549;100;Custom Vertex Offset / Add here your custom Vertex Offset;0;;0.684,1,0,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;891;-3328,-4224;Inherit;False;1418.51;100;Custom Alpha Inputs / Add here your custom Alpha Inputs;0;;0.684,1,0,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;939;-3328,-4864;Inherit;False;1405.154;100;Final Pass;0;;0.684,1,0,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;880;-3328,-5376;Inherit;False;1406.973;101;Drawers;0;;1,0.475862,0,1;0;0 +WireConnection;892;1;895;0 +WireConnection;942;13;943;0 +WireConnection;913;1;892;4 +WireConnection;913;2;942;0 +WireConnection;896;0;894;4 +WireConnection;896;1;913;0 +WireConnection;897;0;896;0 +WireConnection;918;0;919;0 +WireConnection;938;0;944;87 +WireConnection;938;1;898;0 +WireConnection;936;0;920;0 +WireConnection;936;1;935;0 +WireConnection;384;0;944;86 +WireConnection;384;3;938;0 +WireConnection;383;0;384;0 +WireConnection;383;1;936;0 +ASEEND*/ +//CHKSM=F74943620D06474AE029A1BD15340645926FE0B9 \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta new file mode 100644 index 00000000..f3ccd01b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 19dce7f705377aa41bc0a573347bbd27 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat new file mode 100644 index 00000000..f745a1b1 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat @@ -0,0 +1,62 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Height Fog Preset + m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: + - _DIRECTIONALL: 1 + - _DirectionalCustom: 0 + - _DirectionalFalloff: 2 + - _DirectionalIntensity: 1 + - _DirectionalMode: 0 + - _DirectionalModeBlend: 0 + - _FOGG: 1 + - _FogAxisMode: 1 + - _FogColorDuo: 0 + - _FogDistanceEnd: 100 + - _FogDistanceFalloff: 1 + - _FogDistanceStart: -100 + - _FogHeightEnd: 200 + - _FogHeightFalloff: 1 + - _FogHeightStart: 0 + - _FogIntensity: 1 + - _FogLayersMode: 0 + - _IsHeightFogPreset: 1 + - _IsHeightFogShader: 1 + - _IsStandardPipeline: 0 + - _NOISEE: 1 + - _NoiseDistanceEnd: 50 + - _NoiseIntensity: 1 + - _NoiseMode: 0 + - _NoiseModeBlend: 0 + - _NoiseScale: 30 + - _SKYBOXX: 1 + - _SkyboxFogFalloff: 1 + - _SkyboxFogFill: 1 + - _SkyboxFogHeight: 1 + - _SkyboxFogIntensity: 1 + - _TITLE: 1 + m_Colors: + - _DirectionalColor: {r: 1, g: 0.7793103, b: 0.5, a: 1} + - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} + - _DirectionalDir: {r: 0.7081007, g: 0.28231323, b: 0.6472192, a: 0} + - _FogAxisOption: {r: 0, g: 1, b: 0, a: 0} + - _FogColorEnd: {r: 0.8862745, g: 1.443137, b: 2, a: 1} + - _FogColorStart: {r: 1, g: 0, b: 0.5, a: 1} + - _NoiseSpeed: {r: 0.5, g: 0, b: 0.5, a: 0} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta new file mode 100644 index 00000000..0ee7b5b8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ca85a1519dc35be41b6251ab2147d038 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader new file mode 100644 index 00000000..1a6e8d00 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader @@ -0,0 +1,231 @@ +// Made with Amplify Shader Editor +// Available at the Unity Asset Store - http://u3d.as/y3X +Shader "BOXOPHOBIC/Atmospherics/Height Fog Preset" +{ + Properties + { + [HideInInspector]_IsStandardPipeline("_IsStandardPipeline", Float) = 0 + [HideInInspector]_IsHeightFogPreset("_IsHeightFogPreset", Float) = 1 + [HideInInspector]_IsHeightFogShader("_IsHeightFogShader", Float) = 1 + [StyledBanner(Height Fog Preset)]_TITLE("< TITLE >", Float) = 1 + [StyledCategory(Fog)]_FOGG("[ FOGG]", Float) = 1 + _FogIntensity("Fog Intensity", Range( 0 , 1)) = 1 + [Enum(X Axis,0,Y Axis,1,Z Axis,2)][Space(10)]_FogAxisMode("Fog Axis Mode", Float) = 1 + [Enum(Multiply Distance And Height,0,Additive Distance And Height,1)]_FogLayersMode("Fog Layers Mode", Float) = 0 + [HideInInspector]_FogAxisOption("_FogAxisOption", Vector) = (0,0,0,0) + [HDR][Space(10)]_FogColorStart("Fog Color Start", Color) = (0.4411765,0.722515,1,1) + [HDR]_FogColorEnd("Fog Color End", Color) = (0.8862745,1.443137,2,1) + _FogColorDuo("Fog Color Duo", Range( 0 , 1)) = 1 + [Space(10)]_FogDistanceStart("Fog Distance Start", Float) = -200 + _FogDistanceEnd("Fog Distance End", Float) = 200 + _FogDistanceFalloff("Fog Distance Falloff", Range( 1 , 8)) = 2 + [Space(10)]_FogHeightStart("Fog Height Start", Float) = 0 + _FogHeightEnd("Fog Height End", Float) = 200 + _FogHeightFalloff("Fog Height Falloff", Range( 1 , 8)) = 2 + [StyledCategory(Skybox)]_SKYBOXX("[ SKYBOXX ]", Float) = 1 + _SkyboxFogIntensity("Skybox Fog Intensity", Range( 0 , 1)) = 1 + _SkyboxFogHeight("Skybox Fog Height", Range( 0 , 1)) = 1 + _SkyboxFogFalloff("Skybox Fog Falloff", Range( 1 , 8)) = 1 + _SkyboxFogFill("Skybox Fog Fill", Range( 0 , 1)) = 1 + [StyledCategory(Directional)]_DIRECTIONALL("[ DIRECTIONALL ]", Float) = 1 + [Enum(Off,0,On,1)]_DirectionalMode("Directional Mode", Float) = 1 + _DirectionalIntensity("Directional Intensity", Range( 0 , 1)) = 1 + _DirectionalFalloff("Directional Falloff", Range( 1 , 8)) = 2 + [HDR]_DirectionalColor("Directional Color", Color) = (1,0.7793103,0.5,1) + [HideInInspector]_DirectionalDir("Directional Dir", Vector) = (0,0,0,0) + [StyledCategory(Noise)]_NOISEE("[ NOISEE ]", Float) = 1 + [Enum(Off,0,Procedural 3D,2)]_NoiseMode("Noise Mode", Float) = 2 + [HideInInspector]_NoiseModeBlend("_NoiseModeBlend", Float) = 1 + _NoiseIntensity("Noise Intensity", Range( 0 , 1)) = 1 + _NoiseDistanceEnd("Noise Distance End", Float) = 50 + _NoiseScale("Noise Scale", Float) = 30 + _NoiseSpeed("Noise Speed", Vector) = (0.5,0,0.5,0) + + } + + SubShader + { + + + Tags { "RenderType"="Overlay" "Queue"="Overlay" } + LOD 0 + + CGINCLUDE + #pragma target 3.0 + ENDCG + Blend SrcAlpha OneMinusSrcAlpha + Cull Off + ColorMask RGBA + ZWrite Off + ZTest Always + + + + Pass + { + Name "Unlit" + //Tags { "LightMode"="ForwardBase" } + CGPROGRAM + + + + #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX + //only defining to not throw compilation error over Unity 5.5 + #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) + #endif + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile_instancing + #include "UnityCG.cginc" + + + struct appdata + { + float4 vertex : POSITION; + float4 color : COLOR; + UNITY_VERTEX_INPUT_INSTANCE_ID + + }; + + struct v2f + { + float4 vertex : SV_POSITION; +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + float3 worldPos : TEXCOORD0; +#endif + UNITY_VERTEX_INPUT_INSTANCE_ID + UNITY_VERTEX_OUTPUT_STEREO + + }; + + uniform half _FogHeightEnd; + uniform half _FogHeightStart; + uniform half _NoiseScale; + uniform half _NoiseDistanceEnd; + uniform half _FogDistanceEnd; + uniform half _FogHeightFalloff; + uniform half _DirectionalIntensity; + uniform half _FogDistanceStart; + uniform half _NoiseModeBlend; + uniform half _SkyboxFogIntensity; + uniform half _FogLayersMode; + uniform half _SkyboxFogHeight; + uniform half _SkyboxFogFill; + uniform half _IsHeightFogPreset; + uniform half _FogDistanceFalloff; + uniform half _SkyboxFogFalloff; + uniform half _DirectionalFalloff; + uniform half _NoiseIntensity; + uniform half _NoiseMode; + uniform half _NOISEE; + uniform half4 _FogColorEnd; + uniform half _FOGG; + uniform half _FogColorDuo; + uniform half _SKYBOXX; + uniform half _DirectionalMode; + uniform half3 _NoiseSpeed; + uniform half _IsHeightFogShader; + uniform half _TITLE; + uniform half _DIRECTIONALL; + uniform half4 _DirectionalColor; + uniform half _FogIntensity; + uniform half _FogAxisMode; + uniform half4 _FogColorStart; + uniform float4 _FogAxisOption; + uniform half3 _DirectionalDir; + uniform half _IsStandardPipeline; + + + v2f vert ( appdata v ) + { + v2f o; + UNITY_SETUP_INSTANCE_ID(v); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); + UNITY_TRANSFER_INSTANCE_ID(v, o); + + float3 temp_cast_0 = (( _IsStandardPipeline * 0.0 )).xxx; + + float3 vertexValue = float3(0, 0, 0); + #if ASE_ABSOLUTE_VERTEX_POS + vertexValue = v.vertex.xyz; + #endif + vertexValue = temp_cast_0; + #if ASE_ABSOLUTE_VERTEX_POS + v.vertex.xyz = vertexValue; + #else + v.vertex.xyz += vertexValue; + #endif + o.vertex = UnityObjectToClipPos(v.vertex); + +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; +#endif + return o; + } + + fixed4 frag (v2f i ) : SV_Target + { + UNITY_SETUP_INSTANCE_ID(i); + UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); + fixed4 finalColor; +#ifdef ASE_NEEDS_FRAG_WORLD_POSITION + float3 WorldPosition = i.worldPos; +#endif + + + finalColor = fixed4(1,1,1,1); + return finalColor; + } + ENDCG + } + } + CustomEditor "HeightFogShaderGUI" + + +} +/*ASEBEGIN +Version=18103 +1927;1;1906;1020;3249.694;3596.392;1;True;False +Node;AmplifyShaderEditor.RangedFloatNode;627;-3024,-4864;Half;False;Property;_SKYBOXX;[ SKYBOXX ];21;0;Create;True;0;0;True;1;StyledCategory(Skybox);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;653;-2816,-3968;Half;False;Property;_FogColorDuo;Fog Color Duo;14;0;Create;True;0;0;True;0;False;1;0;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.Vector3Node;227;-3328,-2560;Half;False;Property;_NoiseSpeed;Noise Speed;38;0;Create;True;0;0;True;0;False;0.5,0,0.5;0.5,0,0.5;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 +Node;AmplifyShaderEditor.RangedFloatNode;640;-3328,-3072;Half;False;Property;_DirectionalMode;Directional Mode;27;1;[Enum];Create;True;2;Off;0;On;1;0;True;0;False;1;1;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;626;-3168,-4864;Half;False;Property;_FOGG;[ FOGG];7;0;Create;True;0;0;True;1;StyledCategory(Fog);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;629;-2640,-4864;Half;False;Property;_NOISEE;[ NOISEE ];32;0;Create;True;0;0;True;1;StyledCategory(Noise);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;632;-2480,-4864;Half;False;Property;_ADVANCEDD;[ ADVANCEDD ];39;0;Create;True;0;0;False;1;StyledCategory(Advanced);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.FunctionNode;646;-480,-4352;Inherit;False;Is Pipeline;0;;1;2b33d0c660fbdb24c98bea96428031b0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.ColorNode;648;-3072,-3968;Half;False;Property;_FogColorEnd;Fog Color End;13;1;[HDR];Create;True;0;0;True;0;False;0.8862745,1.443137,2,1;1,1.5,2,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.Vector4Node;655;-2432,-4224;Inherit;False;Property;_FogAxisOption;_FogAxisOption;11;1;[HideInInspector];Create;True;0;0;True;0;False;0,0,0,0;0,1,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.ColorNode;137;-3328,-3968;Half;False;Property;_FogColorStart;Fog Color Start;12;1;[HDR];Create;True;0;0;True;1;Space(10);False;0.4411765,0.722515,1,1;0.3538489,1,0,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.ColorNode;102;-2432,-3072;Half;False;Property;_DirectionalColor;Directional Color;30;1;[HDR];Create;True;0;0;True;0;False;1,0.7793103,0.5,1;1,0.75,0.5,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.Vector3Node;625;-1952,-3072;Half;False;Property;_DirectionalDir;Directional Dir;31;1;[HideInInspector];Create;True;0;0;True;0;False;0,0,0;0,0,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 +Node;AmplifyShaderEditor.RangedFloatNode;645;-3328,-4224;Half;False;Property;_FogAxisMode;Fog Axis Mode;9;1;[Enum];Create;True;3;X Axis;0;Y Axis;1;Z Axis;2;0;True;1;Space(10);False;1;1;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;558;-3328,-4864;Half;False;Property;_TITLE;< TITLE >;6;0;Create;True;0;0;True;1;StyledBanner(Height Fog Preset);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;643;-3104,-4736;Half;False;Property;_IsHeightFogShader;_IsHeightFogShader;5;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;278;-3328,-4352;Half;False;Property;_FogIntensity;Fog Intensity;8;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;628;-2848,-4864;Half;False;Property;_DIRECTIONALL;[ DIRECTIONALL ];26;0;Create;True;0;0;True;1;StyledCategory(Directional);False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;639;-3072,-2560;Half;False;Property;_NoiseMode;Noise Mode;33;1;[Enum];Create;True;2;Off;0;Procedural 3D;2;0;True;0;False;2;2;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;633;-3072,-3072;Half;False;Property;_DirectionalIntensity;Directional Intensity;28;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;650;-2816,-3584;Half;False;Property;_FogHeightFalloff;Fog Height Falloff;20;0;Create;True;0;0;True;0;False;2;3.41;1;8;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;635;-2224,-2560;Half;False;Property;_NoiseModeBlend;_NoiseModeBlend;34;1;[HideInInspector];Create;True;0;0;True;0;False;1;1;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;106;-3328,-3712;Half;False;Property;_FogDistanceStart;Fog Distance Start;15;0;Create;True;0;0;True;1;Space(10);False;-200;-200;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;107;-3072,-3712;Half;False;Property;_FogDistanceEnd;Fog Distance End;16;0;Create;True;0;0;True;0;False;200;0;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;103;-3328,-3584;Half;False;Property;_FogHeightStart;Fog Height Start;18;0;Create;True;0;0;True;1;Space(10);False;0;30;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;74;-3072,-3584;Half;False;Property;_FogHeightEnd;Fog Height End;19;0;Create;True;0;0;True;0;False;200;38.4;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;349;-2608,-2560;Half;False;Property;_NoiseDistanceEnd;Noise Distance End;36;0;Create;True;0;0;True;0;False;50;50;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;230;-2384,-2560;Half;False;Property;_NoiseScale;Noise Scale;37;0;Create;True;0;0;True;0;False;30;30;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;651;-2752,-3328;Half;False;Property;_SkyboxFogFalloff;Skybox Fog Falloff;24;0;Create;True;0;0;True;0;False;1;1;1;8;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;649;-2816,-3712;Half;False;Property;_FogDistanceFalloff;Fog Distance Falloff;17;0;Create;True;0;0;True;0;False;2;1;1;8;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;345;-2896,-2560;Half;False;Property;_NoiseIntensity;Noise Intensity;35;0;Create;True;0;0;True;0;False;1;0;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;654;-2784,-3072;Half;False;Property;_DirectionalFalloff;Directional Falloff;29;0;Create;True;0;0;True;0;False;2;1;1;8;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;644;-3328,-4736;Half;False;Property;_IsHeightFogPreset;_IsHeightFogPreset;4;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;657;-3072,-4224;Half;False;Property;_FogLayersMode;Fog Layers Mode;10;1;[Enum];Create;True;2;Multiply Distance And Height;0;Additive Distance And Height;1;0;True;0;False;0;1;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;656;-3328,-3328;Half;False;Property;_SkyboxFogIntensity;Skybox Fog Intensity;22;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;266;-2464,-3328;Half;False;Property;_SkyboxFogFill;Skybox Fog Fill;25;0;Create;True;0;0;True;0;False;1;0;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.RangedFloatNode;88;-3040,-3328;Half;False;Property;_SkyboxFogHeight;Skybox Fog Height;23;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 +Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;383;-320,-4352;Float;False;True;-1;2;HeightFogShaderGUI;0;1;BOXOPHOBIC/Atmospherics/Height Fog Preset;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;5;False;-1;10;False;-1;True;0;False;-1;0;False;-1;True;False;True;2;False;-1;True;True;True;True;True;0;False;-1;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;594;True;7;False;595;True;False;0;False;500;0;False;500;True;2;RenderType=Overlay=RenderType;Queue=Overlay=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 +Node;AmplifyShaderEditor.CommentaryNode;557;-3328,-4992;Inherit;False;1022.024;100;Drawers / Settings;0;;1,0.4980392,0,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;612;-3326,-4480;Inherit;False;3198.742;100;Props;0;;0.497,1,0,1;0;0 +WireConnection;383;1;646;0 +ASEEND*/ +//CHKSM=9EFA234C1F1A493196CE52E9554310373041C300 \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta new file mode 100644 index 00000000..19d529e5 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: a3a3bc8785681554d9558e2ea68f100e +timeCreated: 1567415769 +licenseType: Store +ShaderImporter: + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta new file mode 100644 index 00000000..d19fe164 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0f2529ec52a5fd6468161d93bd4440c7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef new file mode 100644 index 00000000..7ba3ccb0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef @@ -0,0 +1,14 @@ +{ + "name": "Boxophobic.AtmosphericHeightFog.Runtime", + "references": [ + "Boxophobic.Utils.Scripts" + ], + "optionalUnityReferences": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [] +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta new file mode 100644 index 00000000..849ed431 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 946ad27fa286e62409a42cca7d545b88 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs new file mode 100644 index 00000000..ba3b8379 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs @@ -0,0 +1,37 @@ +// Cristian Pop - https://boxophobic.com/ + +namespace AtmosphericHeightFog +{ + public enum FogMode + { + UseScriptSettings = 10, + UsePresetSettings = 15, + UseTimeOfDay = 20, + } + + public enum FogAxisMode + { + XAxis = 0, + YAxis = 1, + ZAxis = 2, + } + + public enum FogLayersMode + { + MultiplyDistanceAndHeight = 10, + AdditiveDistanceAndHeight = 20, + } + + public enum FogDirectionalMode + { + Off = 0, + On = 1 + } + + public enum FogNoiseMode + { + Off = 0, + Procedural3D = 3 + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta new file mode 100644 index 00000000..ff110f08 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5472a508dc786f44eac5926a86dba7ff +timeCreated: 1554699905 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs new file mode 100644 index 00000000..4850cbc8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs @@ -0,0 +1,439 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using Boxophobic.StyledGUI; +using UnityEngine.Serialization; + +namespace AtmosphericHeightFog +{ + [RequireComponent(typeof(MeshRenderer))] + [RequireComponent(typeof(MeshFilter))] + [ExecuteInEditMode] + public class HeightFogGlobal : StyledMonoBehaviour + { + [StyledBanner(0.55f, 0.7f, 1f, "Height Fog Global", "", "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.kfvqsi6kusw4")] + public bool styledBanner; + + [StyledCategory("Scene")] + public bool categoryScene; + + public Camera mainCamera; + public Light mainDirectional; + + [StyledCategory("Mode")] + public bool categoryMode; + + public FogMode fogMode = FogMode.UseScriptSettings; + + [StyledMessage("Info", "The Preset feature requires a material using the BOXOPHOBIC > Atmospherics > Fog Preset shader.", 10, 0)] + public bool messagePreset = false; + + [StyledMessage("Info", "The Time Of Day feature works by interpolating two Fog Preset materials using the BOXOPHOBIC > Atmospherics > Fog Preset shader. Please note that not all material properties can be interpolated properly!", 10, 0)] + public bool messageTimeOfDay = false; + + [Space(10)] + public Material presetMaterial; + + [Space(10)] + public Material presetDay; + public Material presetNight; + + [Space(10)] + [Range(0, 1)] + public float timeOfDay = 0; + + [StyledCategory("Fog")] + public bool categoryFog; + + [Range(0, 1)] + public float fogIntensity = 1; + + [Space(10)] + public FogAxisMode fogAxisMode = FogAxisMode.YAxis; + public FogLayersMode fogLayersMode = FogLayersMode.MultiplyDistanceAndHeight; + + [Space(10)] + [FormerlySerializedAs("fogColor")] + [ColorUsage(false, true)] + public Color fogColorStart = new Color(0.5f, 0.75f, 1.0f, 1.0f); + [ColorUsage(false, true)] + public Color fogColorEnd = new Color(0.75f, 1f, 1.25f, 1.0f); + [Range(0f, 1f)] + public float fogColorDuo = 0; + + [Space(10)] + public float fogDistanceStart = -100; + public float fogDistanceEnd = 100; + [Range(1, 8)] + public float fogDistanceFalloff = 1; + + [Space(10)] + public float fogHeightStart = 0; + public float fogHeightEnd = 100; + [Range(1f, 8f)] + public float fogHeightFalloff = 1; + + [StyledCategory("Skybox")] + public bool categorySkybox; + + [Range(0, 1)] + public float skyboxFogIntensity = 1; + [Range(0, 1)] + public float skyboxFogHeight = 1; + [Range(1, 8)] + public float skyboxFogFalloff = 1; + [Range(0, 1)] + public float skyboxFogFill = 0; + + [StyledCategory("Directional")] + public bool categoryDirectional; + + [Range(0, 1)] + public float directionalIntensity = 1; + [Range(1, 8)] + public float directionalFalloff = 1; + [ColorUsage(false, true)] + public Color directionalColor = new Color(1f, 0.75f, 0.5f, 1f); + + [StyledCategory("Noise")] + public bool categoryNoise; + + public FogNoiseMode noiseMode = FogNoiseMode.Procedural3D; + [Range(0, 1)] + public float noiseIntensity = 1; + public float noiseDistanceEnd = 50; + public float noiseScale = 30; + public Vector3 noiseSpeed = new Vector3(0.5f, 0f, 0.5f); + + [StyledCategory("Advanced")] + public bool categoryAdvanced; + + public bool manualPositionAndScale = false; + public int renderPriority = 1; + + [StyledSpace(5)] + public bool styledSpace0; + + Material localMaterial; + Material blendMaterial; + Material globalMaterial; + Material missingMaterial; + Material currentMaterial; + [HideInInspector] + public Material overrideMaterial; + [HideInInspector] + public float overrideCamToVolumeDistance = 1f; + [HideInInspector] + public float overrideVolumeDistanceFade = 0f; + + [HideInInspector] + public int version = 0; + + // Deprecated + [HideInInspector] + public FogDirectionalMode directionalMode = FogDirectionalMode.On; + + void Awake() + { + if (version < 180) + { + directionalIntensity = directionalIntensity * (int)directionalMode; + version = 180; + } + + gameObject.name = "Height Fog Global"; + + gameObject.transform.position = Vector3.zero; + gameObject.transform.rotation = Quaternion.identity; + + GetCamera(); + GetDirectional(); + + if (mainCamera != null) + { + if (mainCamera.depthTextureMode != DepthTextureMode.Depth || mainCamera.depthTextureMode != DepthTextureMode.DepthNormals) + { + mainCamera.depthTextureMode = DepthTextureMode.Depth; + } + } + else + { + Debug.Log("[Atmospheric Height Fog] Camera not found! Make sure you have a camera in the scene or your camera has the MainCamera tag!"); + } + + var sphereMeshGO = GameObject.CreatePrimitive(PrimitiveType.Sphere); + var sphereMesh = sphereMeshGO.GetComponent().sharedMesh; + DestroyImmediate(sphereMeshGO); + + gameObject.GetComponent().sharedMesh = sphereMesh; + + localMaterial = new Material(Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Preset")); + localMaterial.name = "Local"; + + overrideMaterial = new Material(localMaterial); + overrideMaterial.name = "Override"; + + blendMaterial = new Material(localMaterial); + blendMaterial.name = "Blend"; + + globalMaterial = new Material(Shader.Find("Hidden/BOXOPHOBIC/Atmospherics/Height Fog Global")); + globalMaterial.name = "Height Fog Global"; + + missingMaterial = Resources.Load("Height Fog Preset"); + + gameObject.GetComponent().sharedMaterial = globalMaterial; + } + + void OnEnable() + { + gameObject.GetComponent().enabled = true; + } + + void OnDisable() + { + gameObject.GetComponent().enabled = false; + Shader.SetGlobalFloat("AHF_FogIntensity", 0); + } + + void OnDestroy() + { + Shader.SetGlobalFloat("AHF_FogIntensity", 0); + } + + void Update() + { + if (mainCamera == null) + { + Debug.Log("[Atmospheric Height Fog] " + "Make sure you set scene camera tag to Main Camera for the fog to work!"); + return; + } + + if (!manualPositionAndScale) + { + SetFogSphereSize(); + SetFogSpherePosition(); + } + + currentMaterial = localMaterial; + + if (fogMode == FogMode.UseScriptSettings) + { + SetLocalMaterial(); + + messageTimeOfDay = false; + messagePreset = false; + } + else if (fogMode == FogMode.UsePresetSettings) + { + if (presetMaterial != null && presetMaterial.HasProperty("_IsHeightFogPreset")) + { + currentMaterial = presetMaterial; + messagePreset = false; + } + else + { + currentMaterial = missingMaterial; + messagePreset = true; + } + + messageTimeOfDay = false; + } + else if (fogMode == FogMode.UseTimeOfDay) + { + if (presetDay != null && presetDay.HasProperty("_IsHeightFogPreset") && presetNight != null && presetNight.HasProperty("_IsHeightFogPreset")) + { + currentMaterial.Lerp(presetDay, presetNight, timeOfDay); + messageTimeOfDay = false; + } + else + { + currentMaterial = missingMaterial; + messageTimeOfDay = true; + } + + messagePreset = false; + } + + if (mainDirectional != null) + { + currentMaterial.SetVector("_DirectionalDir", -mainDirectional.transform.forward); + } + else + { + currentMaterial.SetVector("_DirectionalDir", Vector4.zero); + } + + if (overrideCamToVolumeDistance > overrideVolumeDistanceFade) + { + blendMaterial.CopyPropertiesFromMaterial(currentMaterial); + } + else if (overrideCamToVolumeDistance < overrideVolumeDistanceFade) + { + var lerp = 1 - (overrideCamToVolumeDistance / overrideVolumeDistanceFade); + blendMaterial.Lerp(currentMaterial, overrideMaterial, lerp); + } + + SetGlobalMaterials(); + SetRenderQueue(); + } + + void GetCamera() + { + if (mainCamera == null) + { + mainCamera = Camera.main; + } + } + + void GetDirectional() + { + if (mainDirectional == null) + { + var allLights = FindObjectsOfType(); + var intensity = 0.0f; + + for (int i = 0; i < allLights.Length; i++) + { + if (allLights[i].type == LightType.Directional) + { + if (allLights[i].intensity > intensity) + { + mainDirectional = allLights[i]; + } + } + } + } + } + + void SetLocalMaterial() + { + localMaterial.SetFloat("_FogIntensity", fogIntensity); + + localMaterial.SetColor("_FogColorStart", fogColorStart); + localMaterial.SetColor("_FogColorEnd", fogColorEnd); + localMaterial.SetFloat("_FogColorDuo", fogColorDuo); + + localMaterial.SetFloat("_FogDistanceStart", fogDistanceStart); + localMaterial.SetFloat("_FogDistanceEnd", fogDistanceEnd); + localMaterial.SetFloat("_FogDistanceFalloff", fogDistanceFalloff); + + localMaterial.SetFloat("_FogHeightStart", fogHeightStart); + localMaterial.SetFloat("_FogHeightEnd", fogHeightEnd); + localMaterial.SetFloat("_FogHeightFalloff", fogHeightFalloff); + + localMaterial.SetFloat("_SkyboxFogIntensity", skyboxFogIntensity); + localMaterial.SetFloat("_SkyboxFogHeight", skyboxFogHeight); + localMaterial.SetFloat("_SkyboxFogFalloff", skyboxFogFalloff); + localMaterial.SetFloat("_SkyboxFogFill", skyboxFogFill); + + localMaterial.SetFloat("_DirectionalIntensity", directionalIntensity); + localMaterial.SetFloat("_DirectionalFalloff", directionalFalloff); + localMaterial.SetColor("_DirectionalColor", directionalColor); + + localMaterial.SetFloat("_NoiseIntensity", noiseIntensity); + localMaterial.SetFloat("_NoiseDistanceEnd", noiseDistanceEnd); + localMaterial.SetFloat("_NoiseScale", noiseScale); + localMaterial.SetVector("_NoiseSpeed", noiseSpeed); + + if (fogAxisMode == FogAxisMode.XAxis) + { + localMaterial.SetVector("_FogAxisOption", new Vector4(1, 0, 0, 0)); + } + else if (fogAxisMode == FogAxisMode.YAxis) + { + localMaterial.SetVector("_FogAxisOption", new Vector4(0, 1, 0, 0)); + } + else if (fogAxisMode == FogAxisMode.ZAxis) + { + localMaterial.SetVector("_FogAxisOption", new Vector4(0, 0, 1, 0)); + } + + if (fogLayersMode == FogLayersMode.MultiplyDistanceAndHeight) + { + localMaterial.SetFloat("_FogLayersMode", 0.0f); + } + else + { + localMaterial.SetFloat("_FogLayersMode", 1.0f); + } + + if (noiseMode == FogNoiseMode.Procedural3D) + { + localMaterial.SetFloat("_NoiseModeBlend", 1.0f); + } + else + { + localMaterial.SetFloat("_NoiseModeBlend", 0.0f); + } + } + + void SetGlobalMaterials() + { + if (blendMaterial.HasProperty("_IsHeightFogPreset") == false) + { + return; + } + + Shader.SetGlobalFloat("AHF_FogIntensity", blendMaterial.GetFloat("_FogIntensity")); + + Shader.SetGlobalVector("AHF_FogAxisOption", blendMaterial.GetVector("_FogAxisOption")); + Shader.SetGlobalFloat("AHF_FogLayersMode", blendMaterial.GetFloat("_FogLayersMode")); + + Shader.SetGlobalColor("AHF_FogColorStart", blendMaterial.GetColor("_FogColorStart")); + Shader.SetGlobalColor("AHF_FogColorEnd", blendMaterial.GetColor("_FogColorEnd")); + Shader.SetGlobalFloat("AHF_FogColorDuo", blendMaterial.GetFloat("_FogColorDuo")); + + Shader.SetGlobalFloat("AHF_FogDistanceStart", blendMaterial.GetFloat("_FogDistanceStart")); + Shader.SetGlobalFloat("AHF_FogDistanceEnd", blendMaterial.GetFloat("_FogDistanceEnd")); + Shader.SetGlobalFloat("AHF_FogDistanceFalloff", blendMaterial.GetFloat("_FogDistanceFalloff")); + + Shader.SetGlobalFloat("AHF_FogHeightStart", blendMaterial.GetFloat("_FogHeightStart")); + Shader.SetGlobalFloat("AHF_FogHeightEnd", blendMaterial.GetFloat("_FogHeightEnd")); + Shader.SetGlobalFloat("AHF_FogHeightFalloff", blendMaterial.GetFloat("_FogHeightFalloff")); + + Shader.SetGlobalFloat("AHF_SkyboxFogIntensity", blendMaterial.GetFloat("_SkyboxFogIntensity")); + Shader.SetGlobalFloat("AHF_SkyboxFogHeight", blendMaterial.GetFloat("_SkyboxFogHeight")); + Shader.SetGlobalFloat("AHF_SkyboxFogFalloff", blendMaterial.GetFloat("_SkyboxFogFalloff")); + Shader.SetGlobalFloat("AHF_SkyboxFogFill", blendMaterial.GetFloat("_SkyboxFogFill")); + + Shader.SetGlobalVector("AHF_DirectionalDir", blendMaterial.GetVector("_DirectionalDir")); + Shader.SetGlobalFloat("AHF_DirectionalIntensity", blendMaterial.GetFloat("_DirectionalIntensity")); + Shader.SetGlobalFloat("AHF_DirectionalFalloff", blendMaterial.GetFloat("_DirectionalFalloff")); + Shader.SetGlobalColor("AHF_DirectionalColor", blendMaterial.GetColor("_DirectionalColor")); + + Shader.SetGlobalFloat("AHF_NoiseModeBlend", blendMaterial.GetFloat("_NoiseModeBlend")); + Shader.SetGlobalFloat("AHF_NoiseIntensity", blendMaterial.GetFloat("_NoiseIntensity")); + Shader.SetGlobalFloat("AHF_NoiseDistanceEnd", blendMaterial.GetFloat("_NoiseDistanceEnd")); + Shader.SetGlobalFloat("AHF_NoiseScale", blendMaterial.GetFloat("_NoiseScale")); + Shader.SetGlobalVector("AHF_NoiseSpeed", blendMaterial.GetVector("_NoiseSpeed")); + + if (blendMaterial.GetFloat("_NoiseModeBlend") > 0) + { + Shader.DisableKeyword("AHF_NOISEMODE_OFF"); + Shader.EnableKeyword("AHF_NOISEMODE_PROCEDURAL3D"); + } + else + { + Shader.DisableKeyword("AHF_NOISEMODE_PROCEDURAL3D"); + Shader.EnableKeyword("AHF_NOISEMODE_OFF"); + } + } + + void SetFogSphereSize() + { + var cameraFar = mainCamera.farClipPlane - 1; + gameObject.transform.localScale = new Vector3(cameraFar, cameraFar, cameraFar); + } + + void SetFogSpherePosition() + { + transform.position = mainCamera.transform.position; + } + + void SetRenderQueue() + { + globalMaterial.renderQueue = 3000 + renderPriority; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta new file mode 100644 index 00000000..f03d0673 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d8023d2ae1fcb2948a39527720c2087b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 100 + icon: {fileID: 2800000, guid: 1ed6c69382334dd4e94337c8860e7116, type: 3} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs new file mode 100644 index 00000000..abbbefe4 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs @@ -0,0 +1,392 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using Boxophobic.StyledGUI; +using UnityEngine.Serialization; + +namespace AtmosphericHeightFog +{ + [ExecuteInEditMode] + [HelpURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.hd5jt8lucuqq")] + public class HeightFogOverride : StyledMonoBehaviour + { + [StyledBanner(0.55f, 0.7f, 1f, "Height Fog Override", "", "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.hd5jt8lucuqq")] + public bool styledBanner; + + [StyledMessage("Info", "The Height Fog Global object is missing from your scene! Please add it before using the Height Fog Override component!", 5, 0)] + public bool messageNoHeightFogGlobal = false; + + [StyledCategory("Volume")] + public bool categoryVolume; + + public float volumeDistanceFade = 3; + public bool volumeGizmoVisibility = true; + + [StyledCategory("Scene")] + public bool categoryScene; + + public Camera mainCamera; + public Light mainDirectional; + + [StyledCategory("Mode")] + public bool categoryMode; + + public FogMode fogMode = FogMode.UseScriptSettings; + + [StyledMessage("Info", "The Preset feature requires a material using the BOXOPHOBIC > Atmospherics > Fog Preset shader.", 10, 0)] + public bool messagePreset = false; + + [StyledMessage("Info", "The Time Of Day feature works by interpolating two Fog Preset materials using the BOXOPHOBIC > Atmospherics > Fog Preset shader. Please note that not all material properties can be interpolated properly!", 10, 0)] + public bool messageTimeOfDay = false; + + [Space(10)] + public Material presetMaterial; + + [Space(10)] + public Material presetDay; + public Material presetNight; + + [Space(10)] + [Range(0, 1)] + public float timeOfDay = 0; + + [StyledCategory("Fog")] + public bool categoryFog; + + [Range(0, 1)] + public float fogIntensity = 1; + + [Space(10)] + public FogAxisMode fogAxisMode = FogAxisMode.YAxis; + public FogLayersMode fogLayersMode = FogLayersMode.MultiplyDistanceAndHeight; + + [Space(10)] + [FormerlySerializedAs("fogColor")] + [ColorUsage(false, true)] + public Color fogColorStart = new Color(0.5f, 0.75f, 0.0f, 1.0f); + [ColorUsage(false, true)] + public Color fogColorEnd = new Color(0.75f, 1f, 0.0f, 1.0f); + [Range(0, 1)] + public float fogColorDuo = 0; + + [Space(10)] + public float fogDistanceStart = -100; + public float fogDistanceEnd = 100; + [Range(1, 8)] + public float fogDistanceFalloff = 1; + + [Space(10)] + public float fogHeightStart = 0; + public float fogHeightEnd = 100; + [Range(1f, 8f)] + public float fogHeightFalloff = 1; + + [StyledCategory("Skybox")] + public bool categorySkybox; + + [Range(0, 1)] + public float skyboxFogIntensity = 1; + [Range(0, 1)] + public float skyboxFogHeight = 1; + [Range(1, 8)] + public float skyboxFogFalloff = 1; + [Range(0, 1)] + public float skyboxFogFill = 0; + + [StyledCategory("Directional")] + public bool categoryDirectional; + + [Range(0, 1)] + public float directionalIntensity = 1; + [Range(1, 8)] + public float directionalFalloff = 1; + [ColorUsage(false, true)] + public Color directionalColor = new Color(1f, 0.75f, 0.5f, 1f); + + [StyledCategory("Noise")] + public bool categoryNoise; + + public FogNoiseMode noiseMode = FogNoiseMode.Procedural3D; + [Range(0, 1)] + public float noiseIntensity = 1; + public float noiseDistanceEnd = 50; + public float noiseScale = 30; + public Vector3 noiseSpeed = new Vector3(0.5f, 0f, 0.5f); + + [StyledSpace(5)] + public bool styledSpace0; + + Material localMaterial; + Material missingMaterial; + Material currentMaterial; + Collider volumeCollider; + HeightFogGlobal globalFog = null; + bool distanceSent = false; + + [HideInInspector] + public int version = 0; + + // Deprecated + [HideInInspector] + public FogDirectionalMode directionalMode = FogDirectionalMode.On; + + void Start() + { + if (version < 180) + { + directionalIntensity = directionalIntensity * (int)directionalMode; + version = 180; + } + + volumeCollider = GetComponent(); + + if (volumeCollider == null) + { + Debug.Log("[Atmospheric Height Fog] Please create override volumes from the GameObject menu > BOXOPHOBIC > Atmospheric Height Fog > Override!"); + DestroyImmediate(this); + } + + if (GameObject.Find("Height Fog Global") != null) + { + GameObject globalFogGO = GameObject.Find("Height Fog Global"); + globalFog = globalFogGO.GetComponent(); + + messageNoHeightFogGlobal = false; + } + else + { + messageNoHeightFogGlobal = true; + } + + GetDirectional(); + + localMaterial = new Material(Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Preset")); + localMaterial.name = "Local"; + + missingMaterial = Resources.Load("Height Fog Preset"); + + SetLocalMaterial(); + } + + void OnDisable() + { + if (globalFog != null) + { + globalFog.overrideCamToVolumeDistance = 1; + globalFog.overrideVolumeDistanceFade = 0; + } + } + + void OnDestroy() + { + if (globalFog != null) + { + globalFog.overrideCamToVolumeDistance = 1; + globalFog.overrideVolumeDistanceFade = 0; + } + } + + void Update() + { + GetCamera(); + + if (mainCamera == null || globalFog == null) + { + return; + } + + currentMaterial = localMaterial; + + if (fogMode == FogMode.UseScriptSettings) + { + SetLocalMaterial(); + + messageTimeOfDay = false; + messagePreset = false; + } + else if (fogMode == FogMode.UsePresetSettings) + { + if (presetMaterial != null && presetMaterial.HasProperty("_IsHeightFogPreset")) + { + currentMaterial = presetMaterial; + messagePreset = false; + } + else + { + currentMaterial = missingMaterial; + messagePreset = true; + } + + messageTimeOfDay = false; + } + else if (fogMode == FogMode.UseTimeOfDay) + { + if (presetDay != null && presetDay.HasProperty("_IsHeightFogPreset") && presetNight != null && presetNight.HasProperty("_IsHeightFogPreset")) + { + currentMaterial.Lerp(presetDay, presetNight, timeOfDay); + messageTimeOfDay = false; + } + else + { + currentMaterial = missingMaterial; + messageTimeOfDay = true; + } + + + messagePreset = false; + } + + if (mainDirectional != null) + { + currentMaterial.SetVector("_DirectionalDir", -mainDirectional.transform.forward); + } + else + { + currentMaterial.SetVector("_DirectionalDir", Vector4.zero); + } + + Vector3 camPos = mainCamera.transform.position; + Vector3 closestPos = volumeCollider.ClosestPoint(camPos); + + float dist = Vector3.Distance(camPos, closestPos); + + if (dist > volumeDistanceFade && distanceSent == false) + { + globalFog.overrideCamToVolumeDistance = Mathf.Infinity; + distanceSent = true; + } + else if (dist < volumeDistanceFade) + { + globalFog.overrideMaterial = currentMaterial; + globalFog.overrideCamToVolumeDistance = dist; + globalFog.overrideVolumeDistanceFade = volumeDistanceFade; + distanceSent = false; + } + } + + void OnDrawGizmos() + { + if (volumeCollider == null || !volumeGizmoVisibility) + { + return; + } + + var color = currentMaterial.GetColor("_FogColorStart"); + var mul = 2f; + + if (volumeCollider.GetType() == typeof(BoxCollider)) + { + var col = GetComponent(); + + Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 1.0f); + Gizmos.DrawWireCube(transform.position, new Vector3(transform.lossyScale.x * col.size.x, transform.lossyScale.y * col.size.y, transform.lossyScale.z * col.size.z)); + + Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 0.5f); + Gizmos.DrawWireCube(transform.position, new Vector3(transform.lossyScale.x * col.size.x + (volumeDistanceFade * 2), transform.lossyScale.y * col.size.y + (volumeDistanceFade * 2), transform.lossyScale.z * col.size.z + (volumeDistanceFade * 2))); + + } + else + { + var col = GetComponent(); + var scale = Mathf.Max(Mathf.Max(gameObject.transform.localScale.x, gameObject.transform.localScale.y), gameObject.transform.localScale.z); + + Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 1.0f); + Gizmos.DrawWireSphere(transform.position, col.radius * scale); + + Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 0.5f); + Gizmos.DrawWireSphere(transform.position, col.radius * scale + volumeDistanceFade); + } + } + + void GetCamera() + { + if (mainCamera == null) + { + mainCamera = Camera.main; + } + } + + void GetDirectional() + { + if (mainDirectional == null) + { + var allLights = FindObjectsOfType(); + var intensity = 0.0f; + + for (int i = 0; i < allLights.Length; i++) + { + if (allLights[i].type == LightType.Directional) + { + if (allLights[i].intensity > intensity) + { + mainDirectional = allLights[i]; + } + } + } + } + } + + void SetLocalMaterial() + { + localMaterial.SetFloat("_FogIntensity", fogIntensity); + + localMaterial.SetColor("_FogColorStart", fogColorStart); + localMaterial.SetColor("_FogColorEnd", fogColorEnd); + localMaterial.SetFloat("_FogColorDuo", fogColorDuo); + + localMaterial.SetFloat("_FogDistanceStart", fogDistanceStart); + localMaterial.SetFloat("_FogDistanceEnd", fogDistanceEnd); + localMaterial.SetFloat("_FogDistanceFalloff", fogDistanceFalloff); + + localMaterial.SetFloat("_FogHeightStart", fogHeightStart); + localMaterial.SetFloat("_FogHeightEnd", fogHeightEnd); + localMaterial.SetFloat("_FogHeightFalloff", fogHeightFalloff); + + localMaterial.SetFloat("_SkyboxFogIntensity", skyboxFogIntensity); + localMaterial.SetFloat("_SkyboxFogHeight", skyboxFogHeight); + localMaterial.SetFloat("_SkyboxFogFalloff", skyboxFogFalloff); + localMaterial.SetFloat("_SkyboxFogFill", skyboxFogFill); + + localMaterial.SetFloat("_DirectionalIntensity", directionalIntensity); + localMaterial.SetFloat("_DirectionalFalloff", directionalFalloff); + localMaterial.SetColor("_DirectionalColor", directionalColor); + + localMaterial.SetFloat("_NoiseIntensity", noiseIntensity); + localMaterial.SetFloat("_NoiseDistanceEnd", noiseDistanceEnd); + localMaterial.SetFloat("_NoiseScale", noiseScale); + localMaterial.SetVector("_NoiseSpeed", noiseSpeed); + + if (fogAxisMode == FogAxisMode.XAxis) + { + localMaterial.SetVector("_FogAxisOption", new Vector4(1, 0, 0, 0)); + } + else if (fogAxisMode == FogAxisMode.YAxis) + { + localMaterial.SetVector("_FogAxisOption", new Vector4(0, 1, 0, 0)); + } + else if (fogAxisMode == FogAxisMode.ZAxis) + { + localMaterial.SetVector("_FogAxisOption", new Vector4(0, 0, 1, 0)); + } + + if (fogLayersMode == FogLayersMode.MultiplyDistanceAndHeight) + { + localMaterial.SetFloat("_FogLayersMode", 0.0f); + } + else + { + localMaterial.SetFloat("_FogLayersMode", 1.0f); + } + + if (noiseMode == FogNoiseMode.Procedural3D) + { + localMaterial.SetFloat("_NoiseModeBlend", 1.0f); + } + else + { + localMaterial.SetFloat("_NoiseModeBlend", 0.0f); + } + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta new file mode 100644 index 00000000..86ea5b0e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: ac1c26670b7bd6a47ac695141473ab42 +timeCreated: 1568146209 +licenseType: Store +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: 500f3eaec95c62949b969478343b29d4, type: 3} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs new file mode 100644 index 00000000..6a014d97 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs @@ -0,0 +1,186 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using Boxophobic; +using Boxophobic.StyledGUI; +#if UNITY_EDITOR +using UnityEditor; +#endif + +namespace AtmosphericHeightFog +{ + [ExecuteInEditMode] + [DisallowMultipleComponent] + [HelpURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.pzat2b29j9a0")] + public class HeightFogPerObject : StyledMonoBehaviour + { + [StyledBanner(0.474f, 0.709f, 0.901f, "Height Fog Per Object", "", "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.pzat2b29j9a0")] + public bool styledBanner; + + [StyledMessage("Info", "The Object does not have a Mesh Renderer!", 5, 5)] + public bool messageNoRenderer = false; + + [StyledMessage("Info", "Objects using multiple materials are not supported!", 5, 5)] + public bool messageMultiMaterials = false; + + [StyledMessage("Info", "The Object does not have a Material assigned!", 5, 5)] + public bool messageNoMaterial = false; + + [StyledMessage("Info", "Please note that the Height Fog Per Object option will not work for all transparent objects. Available in Play mode only. Please read the documentation for more!", 0, 0)] + public bool messageTransparencySupport = true; + + [StyledCategory("Settings")] + public bool categoryMaterial; + + public Material customFogMaterial = null; + + [StyledMessage("Info", "The is not a valid Height Fog material! Please assign the correct shader first!", 5, 0)] + public bool messageInvalidFogMaterial = false; + + [StyledSpace(5)] + public bool styledSpace0; + + int transparencyRenderQueue = 3002; + + Material originalMaterial; + Material instanceMaterial; + Material transparencyMaterial; + + GameObject transparencyGO; + + void Awake() + { + if (GameObjectIsInvalid()) + { + return; + } + +#if UNITY_EDITOR + if (Application.isPlaying == false) + { + GameObjectDisableBathingFlag(); + return; + } +#endif + + transparencyGO = new GameObject(gameObject.name + " (Height Fog Object)"); + + transparencyGO.transform.parent = gameObject.transform; + transparencyGO.transform.localPosition = Vector3.zero; + transparencyGO.transform.localRotation = Quaternion.identity; + transparencyGO.transform.localScale = Vector3.one; + + transparencyGO.AddComponent(); + transparencyGO.AddComponent(); + + transparencyGO.GetComponent().sharedMesh = gameObject.GetComponent().sharedMesh; + + Material originalMaterial = gameObject.GetComponent().sharedMaterial; + + instanceMaterial = new Material(originalMaterial); + instanceMaterial.name = originalMaterial.name + " (Instance)"; + //instanceMaterial.SetOverrideTag("DisableBatching", "True"); + + if (customFogMaterial == null) + { + transparencyMaterial = new Material(instanceMaterial); + transparencyMaterial.shader = Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Per Object"); + transparencyMaterial.name = originalMaterial.name + " (Generic Fog)"; + } + else if (customFogMaterial != null) + { + if (customFogMaterial.HasProperty("_IsHeightFogShader")) + { + transparencyMaterial = customFogMaterial; + transparencyMaterial.name = originalMaterial.name + " (Custom Fog)"; + } + else + { + transparencyMaterial = new Material(instanceMaterial); + transparencyMaterial.shader = Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Per Object"); + transparencyMaterial.name = originalMaterial.name + " (Generic Fog)"; + } + } + + if (transparencyMaterial.HasProperty("_IsStandardPipeline")) + { + transparencyRenderQueue = 3002; + } + else + { + transparencyRenderQueue = 3102; + } + + instanceMaterial.renderQueue = transparencyRenderQueue; + transparencyMaterial.renderQueue = transparencyRenderQueue + 1; + + gameObject.GetComponent().material = instanceMaterial; + transparencyGO.GetComponent().material = transparencyMaterial; + + } +#if UNITY_EDITOR + void Update() + { + if (Application.isPlaying == true) + { + return; + } + + if (gameObject.isStatic) + { + GameObjectDisableBathingFlag(); + } + + if (customFogMaterial == null) + { + messageInvalidFogMaterial = false; + } + else if (customFogMaterial != null) + { + if (customFogMaterial.HasProperty("_IsHeightFogShader") == false) + { + messageInvalidFogMaterial = true; + } + else + { + messageInvalidFogMaterial = false; + } + } + } +#endif + + bool GameObjectIsInvalid() + { + bool invalid = false; + + if (gameObject.GetComponent() == null) + { + messageNoRenderer = true; + invalid = true; + } + + else if (gameObject.GetComponent().sharedMaterials.Length > 1) + { + messageMultiMaterials = true; + invalid = true; + } + + else if (gameObject.GetComponent().sharedMaterial == null) + { + messageNoMaterial = true; + invalid = true; + } + + return invalid; + } + +#if UNITY_EDITOR + void GameObjectDisableBathingFlag() + { + StaticEditorFlags flags = GameObjectUtility.GetStaticEditorFlags(gameObject); + flags = flags & ~(StaticEditorFlags.BatchingStatic); + GameObjectUtility.SetStaticEditorFlags(gameObject, flags); + } +#endif + } +} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta new file mode 100644 index 00000000..8e2a36c7 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 002595e91f609a246845cbf8a32fd288 +timeCreated: 1568222395 +licenseType: Store +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: -333 + icon: {fileID: 2800000, guid: e5ce702f9a95f4f42a9ebd790113406a, type: 3} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta new file mode 100644 index 00000000..ab39d080 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 38b7dce3fd7e1af418e30778e52cfc89 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader new file mode 100644 index 00000000..a30f1675 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader @@ -0,0 +1,280 @@ +// Made with Amplify Shader Editor +// Available at the Unity Asset Store - http://u3d.as/y3X +Shader "UI/Default (Height Fog Support)" +{ + Properties + { + [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} + _Color ("Tint", Color) = (1,1,1,1) + + _StencilComp ("Stencil Comparison", Float) = 8 + _Stencil ("Stencil ID", Float) = 0 + _StencilOp ("Stencil Operation", Float) = 0 + _StencilWriteMask ("Stencil Write Mask", Float) = 255 + _StencilReadMask ("Stencil Read Mask", Float) = 255 + + _ColorMask ("Color Mask", Float) = 15 + + [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 + [HideInInspector] _texcoord( "", 2D ) = "white" {} + + } + + SubShader + { + LOD 0 + + Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" "CanUseSpriteAtlas"="True" } + + Stencil + { + Ref [_Stencil] + ReadMask [_StencilReadMask] + WriteMask [_StencilWriteMask] + CompFront [_StencilComp] + PassFront [_StencilOp] + FailFront Keep + ZFailFront Keep + CompBack Always + PassBack Keep + FailBack Keep + ZFailBack Keep + } + + + Cull Off + Lighting Off + ZWrite Off + ZTest [unity_GUIZTestMode] + Blend SrcAlpha OneMinusSrcAlpha + ColorMask [_ColorMask] + + + Pass + { + Name "Default" + CGPROGRAM + + #pragma vertex vert + #pragma fragment frag + #pragma target 3.0 + + #include "UnityCG.cginc" + #include "UnityUI.cginc" + + #pragma multi_compile __ UNITY_UI_CLIP_RECT + #pragma multi_compile __ UNITY_UI_ALPHACLIP + + #include "UnityShaderVariables.cginc" + #define ASE_NEEDS_FRAG_COLOR + #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D + + + struct appdata_t + { + float4 vertex : POSITION; + float4 color : COLOR; + float2 texcoord : TEXCOORD0; + UNITY_VERTEX_INPUT_INSTANCE_ID + + }; + + struct v2f + { + float4 vertex : SV_POSITION; + fixed4 color : COLOR; + half2 texcoord : TEXCOORD0; + float4 worldPosition : TEXCOORD1; + UNITY_VERTEX_INPUT_INSTANCE_ID + UNITY_VERTEX_OUTPUT_STEREO + float4 ase_texcoord2 : TEXCOORD2; + }; + + uniform fixed4 _Color; + uniform fixed4 _TextureSampleAdd; + uniform float4 _ClipRect; + uniform sampler2D _MainTex; + uniform float4 _MainTex_ST; + uniform half4 AHF_FogColorStart; + uniform half4 AHF_FogColorEnd; + uniform half AHF_FogDistanceStart; + uniform half AHF_FogDistanceEnd; + uniform half AHF_FogDistanceFalloff; + uniform half AHF_FogColorDuo; + uniform half4 AHF_DirectionalColor; + uniform half3 AHF_DirectionalDir; + uniform half AHF_DirectionalIntensity; + uniform half AHF_DirectionalFalloff; + uniform half3 AHF_FogAxisOption; + uniform half AHF_FogHeightEnd; + uniform half AHF_FogHeightStart; + uniform half AHF_FogHeightFalloff; + uniform half AHF_FogLayersMode; + uniform half AHF_NoiseScale; + uniform half3 AHF_NoiseSpeed; + uniform half AHF_NoiseDistanceEnd; + uniform half AHF_NoiseIntensity; + uniform half AHF_NoiseModeBlend; + uniform half AHF_FogIntensity; + float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } + float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } + float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } + float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } + float snoise( float3 v ) + { + const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); + float3 i = floor( v + dot( v, C.yyy ) ); + float3 x0 = v - i + dot( i, C.xxx ); + float3 g = step( x0.yzx, x0.xyz ); + float3 l = 1.0 - g; + float3 i1 = min( g.xyz, l.zxy ); + float3 i2 = max( g.xyz, l.zxy ); + float3 x1 = x0 - i1 + C.xxx; + float3 x2 = x0 - i2 + C.yyy; + float3 x3 = x0 - 0.5; + i = mod3D289( i); + float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); + float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) + float4 x_ = floor( j / 7.0 ); + float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) + float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 h = 1.0 - abs( x ) - abs( y ); + float4 b0 = float4( x.xy, y.xy ); + float4 b1 = float4( x.zw, y.zw ); + float4 s0 = floor( b0 ) * 2.0 + 1.0; + float4 s1 = floor( b1 ) * 2.0 + 1.0; + float4 sh = -step( h, 0.0 ); + float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; + float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; + float3 g0 = float3( a0.xy, h.x ); + float3 g1 = float3( a0.zw, h.y ); + float3 g2 = float3( a1.xy, h.z ); + float3 g3 = float3( a1.zw, h.w ); + float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); + g0 *= norm.x; + g1 *= norm.y; + g2 *= norm.z; + g3 *= norm.w; + float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); + m = m* m; + m = m* m; + float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); + return 42.0 * dot( m, px); + } + + + + v2f vert( appdata_t IN ) + { + v2f OUT; + UNITY_SETUP_INSTANCE_ID( IN ); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); + UNITY_TRANSFER_INSTANCE_ID(IN, OUT); + OUT.worldPosition = IN.vertex; + float3 ase_worldPos = mul(unity_ObjectToWorld, IN.vertex).xyz; + OUT.ase_texcoord2.xyz = ase_worldPos; + + + //setting value to unused interpolator channels and avoid initialization warnings + OUT.ase_texcoord2.w = 0; + + OUT.worldPosition.xyz += float3( 0, 0, 0 ) ; + OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); + + OUT.texcoord = IN.texcoord; + + OUT.color = IN.color * _Color; + return OUT; + } + + fixed4 frag(v2f IN ) : SV_Target + { + float2 uv_MainTex = IN.texcoord.xy * _MainTex_ST.xy + _MainTex_ST.zw; + float4 temp_output_4_0 = ( IN.color * ( tex2D( _MainTex, uv_MainTex ) + _TextureSampleAdd ) ); + float3 ase_worldPos = IN.ase_texcoord2.xyz; + float3 WorldPosition2_g874 = ase_worldPos; + float temp_output_7_0_g876 = AHF_FogDistanceStart; + half FogDistanceMask12_g874 = pow( abs( saturate( ( ( distance( WorldPosition2_g874 , _WorldSpaceCameraPos ) - temp_output_7_0_g876 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g876 ) ) ) ) , AHF_FogDistanceFalloff ); + float3 lerpResult258_g874 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g874 - 0.5 ) ) * AHF_FogColorDuo )); + float3 normalizeResult318_g874 = normalize( ( WorldPosition2_g874 - _WorldSpaceCameraPos ) ); + float dotResult145_g874 = dot( normalizeResult318_g874 , AHF_DirectionalDir ); + half DirectionalMask30_g874 = pow( abs( ( (dotResult145_g874*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); + float3 lerpResult40_g874 = lerp( lerpResult258_g874 , (AHF_DirectionalColor).rgb , DirectionalMask30_g874); + float3 temp_output_2_0_g875 = lerpResult40_g874; + float3 gammaToLinear3_g875 = GammaToLinearSpace( temp_output_2_0_g875 ); + #ifdef UNITY_COLORSPACE_GAMMA + float3 staticSwitch1_g875 = temp_output_2_0_g875; + #else + float3 staticSwitch1_g875 = gammaToLinear3_g875; + #endif + float3 temp_output_256_0_g874 = staticSwitch1_g875; + float3 temp_output_92_86_g873 = temp_output_256_0_g874; + half3 AHF_FogAxisOption181_g874 = AHF_FogAxisOption; + float3 break159_g874 = ( WorldPosition2_g874 * AHF_FogAxisOption181_g874 ); + float temp_output_7_0_g877 = AHF_FogHeightEnd; + half FogHeightMask16_g874 = pow( abs( saturate( ( ( ( break159_g874.x + break159_g874.y + break159_g874.z ) - temp_output_7_0_g877 ) / ( AHF_FogHeightStart - temp_output_7_0_g877 ) ) ) ) , AHF_FogHeightFalloff ); + float lerpResult328_g874 = lerp( ( FogDistanceMask12_g874 * FogHeightMask16_g874 ) , saturate( ( FogDistanceMask12_g874 + FogHeightMask16_g874 ) ) , AHF_FogLayersMode); + float simplePerlin3D193_g874 = snoise( ( ( WorldPosition2_g874 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); + float temp_output_7_0_g879 = AHF_NoiseDistanceEnd; + half NoiseDistanceMask7_g874 = saturate( ( ( distance( WorldPosition2_g874 , _WorldSpaceCameraPos ) - temp_output_7_0_g879 ) / ( 0.0 - temp_output_7_0_g879 ) ) ); + float lerpResult198_g874 = lerp( 1.0 , (simplePerlin3D193_g874*0.5 + 0.5) , ( NoiseDistanceMask7_g874 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); + half NoiseSimplex3D24_g874 = lerpResult198_g874; + #if defined(AHF_NOISEMODE_OFF) + float staticSwitch42_g874 = lerpResult328_g874; + #elif defined(AHF_NOISEMODE_PROCEDURAL3D) + float staticSwitch42_g874 = ( lerpResult328_g874 * NoiseSimplex3D24_g874 ); + #else + float staticSwitch42_g874 = lerpResult328_g874; + #endif + float temp_output_43_0_g874 = ( staticSwitch42_g874 * AHF_FogIntensity ); + float temp_output_92_87_g873 = temp_output_43_0_g874; + float3 lerpResult82_g873 = lerp( (temp_output_4_0).rgb , temp_output_92_86_g873 , temp_output_92_87_g873); + float4 appendResult9 = (float4(lerpResult82_g873 , (temp_output_4_0).a)); + + half4 color = appendResult9; + + #ifdef UNITY_UI_CLIP_RECT + color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); + #endif + + #ifdef UNITY_UI_ALPHACLIP + clip (color.a - 0.001); + #endif + + return color; + } + ENDCG + } + } + + + +} +/*ASEBEGIN +Version=18103 +1927;1;1906;1020;359.1003;561.1945;1;True;False +Node;AmplifyShaderEditor.TemplateShaderPropertyNode;2;-512,0;Inherit;False;0;0;_MainTex;Shader;0;5;SAMPLER2D;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.SamplerNode;3;-320,0;Inherit;True;Property;_TextureSample0;Texture Sample 0;0;0;Create;True;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.TemplateShaderPropertyNode;11;-320,192;Inherit;False;0;0;_TextureSampleAdd;Pass;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.VertexColorNode;12;-512,-256;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.SimpleAddOpNode;10;64,64;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;1;COLOR;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;4;256,-256;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0 +Node;AmplifyShaderEditor.SwizzleNode;6;448,-256;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0 +Node;AmplifyShaderEditor.FunctionNode;21;640,-256;Inherit;False;Apply Height Fog;-1;;873;950890317d4f36a48a68d150cdab0168;0;1;81;FLOAT3;0,0,0;False;3;FLOAT3;85;FLOAT3;86;FLOAT;87 +Node;AmplifyShaderEditor.SwizzleNode;7;448,-160;Inherit;False;FLOAT;3;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.DynamicAppendNode;9;896,-256;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0 +Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1;1088,-256;Float;False;True;-1;2;;0;4;UI/Default (Height Fog Support);5056123faa0c79b47ab6ad7e8bf059a4;True;Default;0;0;Default;2;True;2;5;False;-1;10;False;-1;0;1;False;-1;0;False;-1;False;False;True;2;False;-1;True;True;True;True;True;0;True;-9;True;True;0;True;-5;255;True;-8;255;True;-7;0;True;-4;0;True;-6;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;-1;True;0;True;-11;False;True;5;Queue=Transparent=Queue=0;IgnoreProjector=True;RenderType=Transparent=RenderType;PreviewType=Plane;CanUseSpriteAtlas=True;False;0;False;False;False;False;False;False;False;False;False;False;True;2;0;;0;0;Standard;0;0;1;True;False;;0 +WireConnection;3;0;2;0 +WireConnection;10;0;3;0 +WireConnection;10;1;11;0 +WireConnection;4;0;12;0 +WireConnection;4;1;10;0 +WireConnection;6;0;4;0 +WireConnection;21;81;6;0 +WireConnection;7;0;4;0 +WireConnection;9;0;21;85 +WireConnection;9;3;7;0 +WireConnection;1;0;9;0 +ASEEND*/ +//CHKSM=49D35CE9F5579F0E10E33D6935C93B9E757590B8 \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta new file mode 100644 index 00000000..902f0505 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: d2c008f025f10e84e840af15703382d8 +timeCreated: 1570703163 +licenseType: Store +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta new file mode 100644 index 00000000..4c2393e4 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c5760eeeac06ea9459834f69ca51ab32 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta new file mode 100644 index 00000000..af19c562 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3231928b0b9f9ed409c298cebe7ed44f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim new file mode 100644 index 00000000..ec89ee4f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim @@ -0,0 +1,205 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!74 &7400000 +AnimationClip: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Camera + serializedVersion: 6 + m_Legacy: 0 + m_Compressed: 0 + m_UseHighQualityCurve: 1 + m_RotationCurves: [] + m_CompressedRotationCurves: [] + m_EulerCurves: [] + m_PositionCurves: + - curve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: {x: 0, y: 6, z: 50} + inSlope: {x: 0, y: 0, z: 0} + outSlope: {x: 0, y: 0, z: 0} + tangentMode: 0 + weightedMode: 0 + inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} + outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} + - serializedVersion: 3 + time: 10 + value: {x: 0, y: 6, z: 0} + inSlope: {x: 0, y: 0, z: 0} + outSlope: {x: 0, y: 0, z: 0} + tangentMode: 0 + weightedMode: 0 + inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} + outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} + - serializedVersion: 3 + time: 20 + value: {x: 0, y: 6, z: 50} + inSlope: {x: 0, y: 0, z: 0} + outSlope: {x: 0, y: 0, z: 0} + tangentMode: 0 + weightedMode: 0 + inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} + outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + path: + m_ScaleCurves: [] + m_FloatCurves: [] + m_PPtrCurves: [] + m_SampleRate: 60 + m_WrapMode: 0 + m_Bounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 0, y: 0, z: 0} + m_ClipBindingConstant: + genericBindings: + - serializedVersion: 2 + path: 0 + attribute: 1 + script: {fileID: 0} + typeID: 4 + customType: 0 + isPPtrCurve: 0 + pptrCurveMapping: [] + m_AnimationClipSettings: + serializedVersion: 2 + m_AdditiveReferencePoseClip: {fileID: 0} + m_AdditiveReferencePoseTime: 0 + m_StartTime: 0 + m_StopTime: 20 + m_OrientationOffsetY: 0 + m_Level: 0 + m_CycleOffset: 0 + m_HasAdditiveReferencePose: 0 + m_LoopTime: 1 + m_LoopBlend: 0 + m_LoopBlendOrientation: 0 + m_LoopBlendPositionY: 0 + m_LoopBlendPositionXZ: 0 + m_KeepOriginalOrientation: 0 + m_KeepOriginalPositionY: 1 + m_KeepOriginalPositionXZ: 0 + m_HeightFromFeet: 0 + m_Mirror: 0 + m_EditorCurves: + - curve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 10 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 20 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + attribute: m_LocalPosition.x + path: + classID: 4 + script: {fileID: 0} + - curve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 6 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 10 + value: 6 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 20 + value: 6 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + attribute: m_LocalPosition.y + path: + classID: 4 + script: {fileID: 0} + - curve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 50 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 10 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 34 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 20 + value: 50 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + attribute: m_LocalPosition.z + path: + classID: 4 + script: {fileID: 0} + m_EulerEditorCurves: [] + m_HasGenericRootTransform: 1 + m_HasMotionFloatCurves: 0 + m_Events: [] diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta new file mode 100644 index 00000000..5350d11b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 108c26ec30b8e8b42b9e7aa780026eae +timeCreated: 1568786396 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 7400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller new file mode 100644 index 00000000..ec5a219e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller @@ -0,0 +1,69 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!91 &9100000 +AnimatorController: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Camera + serializedVersion: 5 + m_AnimatorParameters: [] + m_AnimatorLayers: + - serializedVersion: 5 + m_Name: Base Layer + m_StateMachine: {fileID: 1107479061325518332} + m_Mask: {fileID: 0} + m_Motions: [] + m_Behaviours: [] + m_BlendingMode: 0 + m_SyncedLayerIndex: -1 + m_DefaultWeight: 0 + m_IKPass: 0 + m_SyncedLayerAffectsTiming: 0 + m_Controller: {fileID: 9100000} +--- !u!1102 &1102609981999840310 +AnimatorState: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Camera + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: [] + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 108c26ec30b8e8b42b9e7aa780026eae, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!1107 &1107479061325518332 +AnimatorStateMachine: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Base Layer + m_ChildStates: + - serializedVersion: 1 + m_State: {fileID: 1102609981999840310} + m_Position: {x: 200, y: 0, z: 0} + m_ChildStateMachines: [] + m_AnyStateTransitions: [] + m_EntryTransitions: [] + m_StateMachineTransitions: {} + m_StateMachineBehaviours: [] + m_AnyStatePosition: {x: 0, y: 0, z: 0} + m_EntryPosition: {x: 50, y: 120, z: 0} + m_ExitPosition: {x: 800, y: 120, z: 0} + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} + m_DefaultState: {fileID: 1102609981999840310} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta new file mode 100644 index 00000000..bb442ef1 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: f5eddefa026b1434493aa203d06b90c6 +timeCreated: 1568786397 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 9100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity new file mode 100644 index 00000000..80210926 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity @@ -0,0 +1,2276 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 2100000, guid: 6d8d2073385f92643b96552c9e56c090, type: 2} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 811676578} + m_IndirectSpecularColor: {r: 0.17983824, g: 0.22003311, b: 0.27692237, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 10 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &11233352 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 11233356} + - component: {fileID: 11233355} + - component: {fileID: 11233354} + - component: {fileID: 11233353} + m_Layer: 0 + m_Name: Cube (13) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &11233353 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 11233352} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &11233354 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 11233352} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &11233355 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 11233352} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &11233356 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 11233352} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -3.6899996, y: 3.6, z: 10.63} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &72749734 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 72749738} + - component: {fileID: 72749737} + - component: {fileID: 72749736} + - component: {fileID: 72749735} + m_Layer: 0 + m_Name: Cube (12) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &72749735 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 72749734} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &72749736 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 72749734} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &72749737 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 72749734} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &72749738 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 72749734} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 9.610001, y: 2.03, z: -2.6899996} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &198716445 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 198716449} + - component: {fileID: 198716448} + - component: {fileID: 198716447} + - component: {fileID: 198716446} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &198716446 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 198716445} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &198716447 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 198716445} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &198716448 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 198716445} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &198716449 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 198716445} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -2.6199994, y: 3.6, z: 3.1500006} + m_LocalScale: {x: 1.6679407, y: 28.277355, z: 1.6098938} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &209300865 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 209300869} + - component: {fileID: 209300868} + - component: {fileID: 209300867} + - component: {fileID: 209300866} + m_Layer: 0 + m_Name: Cube (7) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &209300866 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 209300865} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &209300867 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 209300865} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &209300868 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 209300865} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &209300869 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 209300865} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 3.4300003, y: 3.6, z: 6.450001} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 10 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &215077020 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 215077024} + - component: {fileID: 215077023} + - component: {fileID: 215077022} + - component: {fileID: 215077021} + m_Layer: 0 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &215077021 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 215077020} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!64 &215077022 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 215077020} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &215077023 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 215077020} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &215077024 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 215077020} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 500, y: 500, z: 500} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &254091901 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 254091905} + - component: {fileID: 254091904} + - component: {fileID: 254091903} + - component: {fileID: 254091902} + m_Layer: 0 + m_Name: Cube (11) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &254091902 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 254091901} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &254091903 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 254091901} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &254091904 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 254091901} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &254091905 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 254091901} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 8.01, y: 3.6, z: -10.0199995} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!21 &491257104 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Local + m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: + - _DIRECTIONALL: 1 + - _DirectionalCustom: 0 + - _DirectionalIntensity: 1 + - _DirectionalMode: 1 + - _DirectionalModeBlend: 1 + - _FOGG: 1 + - _FogAxisMode: 1 + - _FogColorDuo: 1 + - _FogDistanceEnd: 60 + - _FogDistanceFalloff: 1 + - _FogDistanceStart: -60 + - _FogHeightEnd: 15 + - _FogHeightFalloff: 1 + - _FogHeightStart: 0 + - _FogIntensity: 1 + - _HeightFogData: 1 + - _IsHeightFogShader: 1 + - _IsStandardPipeline: 0 + - _NOISEE: 1 + - _NoiseDistanceEnd: 30 + - _NoiseIntensity: 1 + - _NoiseMode: 2 + - _NoiseModeBlend: 1 + - _NoiseScale: 30 + - _SKYBOXX: 1 + - _SkyboxFogFalloff: 1 + - _SkyboxFogFill: 0 + - _SkyboxFogHeight: 1 + - _TITLE: 1 + m_Colors: + - _DirectionalColor: {r: 1, g: 0.53189665, b: 0.25, a: 1} + - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} + - _FogColorEnd: {r: 0.8862745, g: 1.1921569, b: 1.4980392, a: 1} + - _FogColorStart: {r: 0, g: 0.58431387, b: 1, a: 1} + - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} +--- !u!1 &554100114 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 554100118} + - component: {fileID: 554100117} + - component: {fileID: 554100116} + - component: {fileID: 554100115} + m_Layer: 0 + m_Name: Cube (4) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &554100115 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554100114} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &554100116 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554100114} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &554100117 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554100114} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &554100118 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554100114} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -11.4, y: 0.58, z: 2.09} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 7 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!21 &687821929 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Height Fog Global + m_Shader: {fileID: 4800000, guid: 3a7ef1b66bafb7a448a880ef76d2e6e6, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3001 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: + - _HeightFogGlobal: 1 + - _IsHeightFogShader: 1 + - _IsStandardPipeline: 0 + - _TITLE: 1 + - _TransparentQueue: 3000 + m_Colors: [] +--- !u!1 &811676577 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 811676579} + - component: {fileID: 811676578} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &811676578 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 811676577} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 1, g: 0.6825929, b: 0.19117647, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &811676579 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 811676577} + m_LocalRotation: {x: 0.0858581, y: 0.58688194, z: -0.11686627, w: 0.7965804} + m_LocalPosition: {x: 0, y: 18.07, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 15.9, y: 72.05, z: -5.0950003} +--- !u!1 &888984248 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 888984249} + - component: {fileID: 888984251} + - component: {fileID: 888984250} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &888984249 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 888984248} + m_LocalRotation: {x: 0, y: 0.92387956, z: 0, w: 0.38268343} + m_LocalPosition: {x: 0, y: 0, z: 4.78} + m_LocalScale: {x: 0.031017363, y: 0.031017363, z: 0.31017363} + m_Children: [] + m_Father: {fileID: 1214462678} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 135, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 19.18, y: 5.21} + m_SizeDelta: {x: 600, y: 500} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &888984250 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 888984248} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 2100000, guid: ee4604e1a289ca3469987c3c71dc9092, type: 2} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 100 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 300 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: 'UI Shader + + Height Fog + + Support' +--- !u!222 &888984251 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 888984248} + m_CullTransparentMesh: 0 +--- !u!1 &900392376 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 900392377} + - component: {fileID: 900392380} + - component: {fileID: 900392379} + - component: {fileID: 900392378} + m_Layer: 0 + m_Name: Transparent ASE (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &900392377 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 900392376} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -5.13, y: 2.85, z: 6.75} + m_LocalScale: {x: 5.75, y: 5.75, z: 5.75} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 12 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &900392378 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 900392376} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 9631af4dab7dbe2439ad275ffd006a31, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &900392379 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 900392376} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &900392380 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 900392376} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!21 &900805762 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Blend + m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: + - _DIRECTIONALL: 1 + - _DirectionalCustom: 0 + - _DirectionalIntensity: 1 + - _DirectionalMode: 1 + - _DirectionalModeBlend: 1 + - _FOGG: 1 + - _FogAxisMode: 1 + - _FogColorDuo: 1 + - _FogDistanceEnd: 60 + - _FogDistanceFalloff: 1 + - _FogDistanceStart: -60 + - _FogHeightEnd: 15 + - _FogHeightFalloff: 1 + - _FogHeightStart: 0 + - _FogIntensity: 1 + - _HeightFogData: 1 + - _IsHeightFogShader: 1 + - _IsStandardPipeline: 0 + - _NOISEE: 1 + - _NoiseDistanceEnd: 30 + - _NoiseIntensity: 1 + - _NoiseMode: 2 + - _NoiseModeBlend: 1 + - _NoiseScale: 30 + - _SKYBOXX: 1 + - _SkyboxFogFalloff: 1 + - _SkyboxFogFill: 0 + - _SkyboxFogHeight: 1 + - _TITLE: 1 + m_Colors: + - _DirectionalColor: {r: 1, g: 0.53189665, b: 0.25, a: 1} + - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} + - _FogColorEnd: {r: 0.8862745, g: 1.1921569, b: 1.4980392, a: 1} + - _FogColorStart: {r: 0, g: 0.58431387, b: 1, a: 1} + - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} +--- !u!1 &1026953692 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1026953693} + - component: {fileID: 1026953696} + - component: {fileID: 1026953695} + - component: {fileID: 1026953694} + m_Layer: 0 + m_Name: Cube (14) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1026953693 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1026953692} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -11.3, y: 3.6, z: -27.5} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 14 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &1026953694 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1026953692} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1026953695 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1026953692} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1026953696 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1026953692} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &1093170038 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1093170042} + - component: {fileID: 1093170041} + - component: {fileID: 1093170040} + - component: {fileID: 1093170039} + m_Layer: 0 + m_Name: Transparent ASE + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1093170039 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1093170038} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 9631af4dab7dbe2439ad275ffd006a31, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1093170040 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1093170038} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1093170041 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1093170038} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1093170042 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1093170038} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 6.38, y: 11.64, z: 3.38} + m_LocalScale: {x: 3.5170665, y: 3.5170665, z: 3.5170665} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 11 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1151496509 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1151496510} + m_Layer: 0 + m_Name: Environment + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1151496510 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1151496509} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 215077024} + - {fileID: 1725981033} + - {fileID: 254091905} + - {fileID: 72749738} + - {fileID: 11233356} + - {fileID: 198716449} + - {fileID: 1624396186} + - {fileID: 554100118} + - {fileID: 1682881881} + - {fileID: 1193642133} + - {fileID: 209300869} + - {fileID: 1093170042} + - {fileID: 900392377} + - {fileID: 2079128176} + - {fileID: 1026953693} + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1193642129 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1193642133} + - component: {fileID: 1193642132} + - component: {fileID: 1193642131} + - component: {fileID: 1193642130} + m_Layer: 0 + m_Name: Cube (6) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1193642130 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193642129} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1193642131 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193642129} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1193642132 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193642129} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1193642133 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193642129} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -5.24, y: 3.6, z: -8.26} + m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1214462674 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1214462678} + - component: {fileID: 1214462677} + - component: {fileID: 1214462676} + - component: {fileID: 1214462675} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1214462675 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1214462674} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &1214462676 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1214462674} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 +--- !u!223 &1214462677 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1214462674} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 2 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &1214462678 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1214462674} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 888984249} + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 500, y: 500} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1624396182 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1624396186} + - component: {fileID: 1624396185} + - component: {fileID: 1624396184} + - component: {fileID: 1624396183} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1624396183 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1624396182} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1624396184 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1624396182} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1624396185 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1624396182} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1624396186 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1624396182} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.34, y: 3.6, z: -3.42} + m_LocalScale: {x: 1.6679407, y: 19.921856, z: 1.6098938} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1682881877 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1682881881} + - component: {fileID: 1682881880} + - component: {fileID: 1682881879} + - component: {fileID: 1682881878} + m_Layer: 0 + m_Name: Cube (5) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1682881878 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1682881877} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1682881879 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1682881877} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1682881880 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1682881877} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1682881881 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1682881877} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -10.5199995, y: 3.6, z: -4.7799993} + m_LocalScale: {x: 1.1465, y: 21.848833, z: 1.1066} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1725981029 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1725981033} + - component: {fileID: 1725981032} + - component: {fileID: 1725981031} + - component: {fileID: 1725981030} + m_Layer: 0 + m_Name: Cube (3) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &1725981030 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1725981029} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &1725981031 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1725981029} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1725981032 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1725981029} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1725981033 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1725981029} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 1.9900007, y: 3.6, z: 0.45000076} + m_LocalScale: {x: 1.6679407, y: 24.81707, z: 1.6098938} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1790950446 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1790950450} + - component: {fileID: 1790950449} + - component: {fileID: 1790950448} + - component: {fileID: 1790950447} + m_Layer: 0 + m_Name: Height Fog Global + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1790950447 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1790950446} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d8023d2ae1fcb2948a39527720c2087b, type: 3} + m_Name: + m_EditorClassIdentifier: + styledBanner: 0 + categoryFog: 0 + fogIntensity: 1 + fogAxisMode: 1 + fogColorStart: {r: 0, g: 0.58431387, b: 1, a: 1} + fogColorEnd: {r: 0.8862745, g: 1.1921569, b: 1.4980392, a: 1} + fogColorDuo: 1 + fogDistanceStart: -60 + fogDistanceEnd: 60 + fogDistanceFalloff: 1 + fogHeightStart: 0 + fogHeightEnd: 15 + fogHeightFalloff: 1 + categorySkybox: 0 + skyboxFogHeight: 1 + skyboxFogFalloff: 1 + skyboxFogFill: 0 + categoryDirectional: 0 + directionalMode: 1 + directionalIntensity: 1 + directionalColor: {r: 1, g: 0.53189665, b: 0.25, a: 1} + directionalCustom: {fileID: 0} + categoryNoise: 0 + noiseMode: 3 + noiseIntensity: 1 + noiseDistanceEnd: 30 + noiseScale: 30 + noiseSpeed: {x: 0.5, y: 0.5, z: 0} + styledSpace0: 0 + localMaterial: {fileID: 491257104} + overrideMaterial: {fileID: 2043602251} + blendMaterial: {fileID: 900805762} + heightFogMaterial: {fileID: 687821929} + overrideCamToVolumeDistance: Infinity + overrideVolumeDistanceFade: 0 + updater: 0 +--- !u!23 &1790950448 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1790950446} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 687821929} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &1790950449 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1790950446} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1790950450 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1790950446} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 6, z: 50} + m_LocalScale: {x: 999, y: 999, z: 999} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1937196289 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1937196294} + - component: {fileID: 1937196293} + - component: {fileID: 1937196290} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!95 &1937196290 +Animator: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1937196289} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: f5eddefa026b1434493aa203d06b90c6, type: 2} + m_CullingMode: 0 + m_UpdateMode: 0 + m_ApplyRootMotion: 0 + m_LinearVelocityBlending: 0 + m_WarningMessage: + m_HasTransformHierarchy: 1 + m_AllowConstantClipSamplingOptimization: 1 + m_KeepAnimatorControllerStateOnDisable: 0 +--- !u!20 &1937196293 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1937196289} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_GateFitMode: 2 + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: 1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 1 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1937196294 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1937196289} + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0, y: 6, z: 50} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!21 &2043602251 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Override + m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: [] + m_Floats: + - _DIRECTIONALL: 1 + - _DirectionalCustom: 0 + - _DirectionalIntensity: 1 + - _DirectionalMode: 1 + - _DirectionalModeBlend: 1 + - _FOGG: 1 + - _FogAxisMode: 1 + - _FogColorDuo: 1 + - _FogDistanceEnd: 200 + - _FogDistanceFalloff: 1 + - _FogDistanceStart: -200 + - _FogHeightEnd: 200 + - _FogHeightFalloff: 8 + - _FogHeightStart: 0 + - _FogIntensity: 1 + - _HeightFogData: 1 + - _IsHeightFogShader: 1 + - _IsStandardPipeline: 0 + - _NOISEE: 1 + - _NoiseDistanceEnd: 30 + - _NoiseIntensity: 0.5 + - _NoiseMode: 2 + - _NoiseModeBlend: 1 + - _NoiseScale: 10 + - _SKYBOXX: 1 + - _SkyboxFogFalloff: 1 + - _SkyboxFogFill: 0 + - _SkyboxFogHeight: 1 + - _TITLE: 1 + m_Colors: + - _DirectionalColor: {r: 1, g: 0.7793103, b: 0.5, a: 1} + - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} + - _FogColorEnd: {r: 0.8862745, g: 1.443137, b: 2, a: 1} + - _FogColorStart: {r: 0.4411765, g: 0.722515, b: 1, a: 1} + - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} +--- !u!1 &2067033081 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2067033084} + - component: {fileID: 2067033083} + - component: {fileID: 2067033082} + m_Layer: 0 + m_Name: Height Fog Override + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2067033082 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2067033081} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac1c26670b7bd6a47ac695141473ab42, type: 3} + m_Name: + m_EditorClassIdentifier: + styledBanner: 0 + messageNoHeightFogGlobal: 0 + categoryVolume: 0 + volumeDistanceFade: 15 + volumeVisibility: 0.1 + categoryFog: 0 + fogIntensity: 1 + fogAxisMode: 1 + fogColorStart: {r: 0, g: 0.35294116, b: 0.060851935, a: 1} + fogColorEnd: {r: 0.942268, g: 1.7633113, b: 0.39092276, a: 1} + fogColorDuo: 1 + fogDistanceStart: -60 + fogDistanceEnd: 60 + fogDistanceFalloff: 1 + fogHeightStart: 0 + fogHeightEnd: 15 + fogHeightFalloff: 1 + categorySkybox: 0 + skyboxFogHeight: 1 + skyboxFogFalloff: 1 + skyboxFogFill: 0 + categoryDirectional: 0 + directionalMode: 1 + directionalIntensity: 1 + directionalColor: {r: 0.52045554, g: 0.74264705, b: 0.098291524, a: 1} + directionalCustom: {fileID: 0} + categoryNoise: 0 + noiseMode: 3 + noiseIntensity: 0.5 + noiseDistanceEnd: 30 + noiseScale: 30 + noiseSpeed: {x: 0.5, y: 0.5, z: 0} + styledSpace0: 0 +--- !u!65 &2067033083 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2067033081} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!4 &2067033084 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2067033081} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 5, z: 0} + m_LocalScale: {x: 20, y: 20, z: 20} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2079128175 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2079128176} + - component: {fileID: 2079128179} + - component: {fileID: 2079128178} + - component: {fileID: 2079128177} + m_Layer: 0 + m_Name: Transparent ASE (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2079128176 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2079128175} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -7.18, y: 26.04, z: -7.62} + m_LocalScale: {x: 2.2562332, y: 2.2562332, z: 2.2562332} + m_Children: [] + m_Father: {fileID: 1151496510} + m_RootOrder: 13 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &2079128177 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2079128175} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 9631af4dab7dbe2439ad275ffd006a31, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!65 &2079128178 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2079128175} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &2079128179 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2079128175} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta new file mode 100644 index 00000000..4a32bc99 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f80728662e0cdea4a847e4f4f3da57a0 +timeCreated: 1563966344 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta new file mode 100644 index 00000000..670dfbf0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 496d2b674ed8cba47930705b858c62aa +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat new file mode 100644 index 00000000..7d97fc97 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Opaque + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.33823532, g: 0.33823532, b: 0.33823532, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta new file mode 100644 index 00000000..eea56213 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: da2b744cf761f024ea0f901ee75b6615 +timeCreated: 1559733106 +licenseType: Store +NativeFormatImporter: + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat new file mode 100644 index 00000000..ebc843cd --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat @@ -0,0 +1,83 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Skybox + m_Shader: {fileID: 106, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: _SUNDISK_HIGH_QUALITY + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _AtmosphereThickness: 1 + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Exposure: 1.3 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SunDisk: 2 + - _SunSize: 0.05 + - _SunSizeConvergence: 2.14 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _GroundColor: {r: 0.36899996, g: 0.34899998, b: 0.34099993, a: 1} + - _SkyTint: {r: 0.5, g: 0.5, b: 0.5, a: 1} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta new file mode 100644 index 00000000..86dd661a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6d8d2073385f92643b96552c9e56c090 +timeCreated: 1568788827 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat new file mode 100644 index 00000000..dc0a09cc --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Transparent ASE + m_Shader: {fileID: 4800000, guid: 69494530c2d06154dba377bc2a61be81, type: 3} + m_ShaderKeywords: AHF_ENABLED_OFF + m_LightmapFlags: 0 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3002 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _TextureSample0: + m_Texture: {fileID: 2800000, guid: b6ce79c1592bcb446ad9975f1591316f, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _texcoord: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Float6: 0.5 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _NoiseIntensity: 0.01 + - _NoiseScale: 0.5 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UVSec: 0 + - _UseUIAlphaClip: 0 + - _VertexIntensity: 0.03 + - _ZWrite: 1 + - __dirty: 0 + m_Colors: + - _Color: {r: 2.670157, g: 2.142577, b: 0, a: 1} + - _Color2: {r: 1, g: 0, b: 0, a: 0} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _NoiseSpeed: {r: 1, g: 1, b: 0, a: 0} + - _Vector0: {r: 0.5, g: 0.5, b: 0, a: 0} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta new file mode 100644 index 00000000..28d76c7a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 9631af4dab7dbe2439ad275ffd006a31 +timeCreated: 1570693391 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat new file mode 100644 index 00000000..5daad951 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat @@ -0,0 +1,102 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Transparent + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION + m_LightmapFlags: 1 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: + RenderType: Transparent + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 4, y: 2} + m_Offset: {x: 0, y: 0} + - _FourthTex: + m_Texture: {fileID: 2800000, guid: e0f922c44762291498cc62e0917609be, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 4, y: 2} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SecondTex: + m_Texture: {fileID: 2800000, guid: 03a7d169469c1af41bb03241a7b7e23d, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ThirdTex: + m_Texture: {fileID: 2800000, guid: c3512c25766a40245ac94c6b1722d76e, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _texcoord: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BranchPhase: 0 + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 10 + - _EdgeFlutter: 1 + - _GlossMapScale: 1 + - _Glossiness: 0.8 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 3 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _PrimaryFactor: 0 + - _SecondaryFactor: 0 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _TessValue: 15 + - _UVSec: 0 + - _ZWrite: 0 + - __dirty: 0 + m_Colors: + - _Color: {r: 0.5724138, g: 1, b: 0, a: 0.903} + - _EmissionColor: {r: 0.28620684, g: 0.5, b: 0, a: 1} + - _TreeInstanceColor: {r: 0, g: 0, b: 0, a: 0} + - _TreeInstanceScale: {r: 0, g: 0, b: 0, a: 0} + - _TreeOffset: {r: 0, g: 5, b: 0, a: 0} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta new file mode 100644 index 00000000..932c61ad --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 4a565fdd79313e949971df9e4647b75e +timeCreated: 1559733106 +licenseType: Store +NativeFormatImporter: + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat new file mode 100644 index 00000000..19b365df --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: UI + m_Shader: {fileID: 4800000, guid: d2c008f025f10e84e840af15703382d8, type: 3} + m_ShaderKeywords: AHF_ENABLED_OFF + m_LightmapFlags: 0 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3002 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _TextureSample0: + m_Texture: {fileID: 2800000, guid: b6ce79c1592bcb446ad9975f1591316f, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _texcoord: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Float6: 0.5 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _NoiseIntensity: 0.01 + - _NoiseScale: 0.5 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UVSec: 0 + - _UseUIAlphaClip: 0 + - _VertexIntensity: 0.06 + - _ZWrite: 1 + - __dirty: 0 + m_Colors: + - _Color: {r: 0, g: 0, b: 0, a: 1} + - _Color2: {r: 1, g: 0, b: 0, a: 0} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} + - _Vector0: {r: 0.5, g: 0.5, b: 0, a: 0} diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta new file mode 100644 index 00000000..151fbd01 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: ee4604e1a289ca3469987c3c71dc9092 +timeCreated: 1570693391 +licenseType: Store +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta new file mode 100644 index 00000000..fbb694de --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 43d668848791a024bbf14daff73a9656 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader new file mode 100644 index 00000000..a9c5f358 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader @@ -0,0 +1,262 @@ +// Made with Amplify Shader Editor +// Available at the Unity Asset Store - http://u3d.as/y3X +Shader "Custom/My Transparent Shader" +{ + Properties + { + [HDR]_Color("Color", Color) = (1,0,0,0) + [Space(10)]_NoiseIntensity("Noise Intensity", Range( 0 , 0.2)) = 0 + _NoiseScale("Noise Scale", Float) = 6 + _NoiseSpeed("Noise Speed", Vector) = (0.5,0.5,0,0) + _VertexIntensity("Vertex Intensity", Range( 0 , 0.2)) = 0 + [HideInInspector] __dirty( "", Int ) = 1 + } + + SubShader + { + Tags{ "RenderType" = "Transparent" "Queue" = "Transparent+0" "IgnoreProjector" = "True" "ForceNoShadowCasting" = "True" "IsEmissive" = "true" } + Cull Back + GrabPass{ } + CGPROGRAM + #include "UnityShaderVariables.cginc" + #include "UnityCG.cginc" + #pragma target 3.0 + #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D + #if defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED) + #define ASE_DECLARE_SCREENSPACE_TEXTURE(tex) UNITY_DECLARE_SCREENSPACE_TEXTURE(tex); + #else + #define ASE_DECLARE_SCREENSPACE_TEXTURE(tex) UNITY_DECLARE_SCREENSPACE_TEXTURE(tex) + #endif + #pragma surface surf Standard alpha:fade keepalpha noshadow novertexlights nolightmap nodynlightmap nodirlightmap nofog nometa vertex:vertexDataFunc + struct Input + { + float3 worldPos; + float4 screenPos; + float3 worldNormal; + }; + + uniform half _NoiseScale; + uniform half3 _NoiseSpeed; + uniform float _VertexIntensity; + uniform float4 _Color; + ASE_DECLARE_SCREENSPACE_TEXTURE( _GrabTexture ) + uniform float _NoiseIntensity; + uniform half4 AHF_FogColorStart; + uniform half4 AHF_FogColorEnd; + uniform half AHF_FogDistanceStart; + uniform half AHF_FogDistanceEnd; + uniform half AHF_FogDistanceFalloff; + uniform half AHF_FogColorDuo; + uniform half4 AHF_DirectionalColor; + uniform half3 AHF_DirectionalDir; + uniform half AHF_DirectionalIntensity; + uniform half AHF_DirectionalFalloff; + uniform half3 AHF_FogAxisOption; + uniform half AHF_FogHeightEnd; + uniform half AHF_FogHeightStart; + uniform half AHF_FogHeightFalloff; + uniform half AHF_FogLayersMode; + uniform half AHF_NoiseScale; + uniform half3 AHF_NoiseSpeed; + uniform half AHF_NoiseDistanceEnd; + uniform half AHF_NoiseIntensity; + uniform half AHF_NoiseModeBlend; + uniform half AHF_FogIntensity; + + + float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } + + float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } + + float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } + + float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } + + float snoise( float3 v ) + { + const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); + float3 i = floor( v + dot( v, C.yyy ) ); + float3 x0 = v - i + dot( i, C.xxx ); + float3 g = step( x0.yzx, x0.xyz ); + float3 l = 1.0 - g; + float3 i1 = min( g.xyz, l.zxy ); + float3 i2 = max( g.xyz, l.zxy ); + float3 x1 = x0 - i1 + C.xxx; + float3 x2 = x0 - i2 + C.yyy; + float3 x3 = x0 - 0.5; + i = mod3D289( i); + float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); + float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) + float4 x_ = floor( j / 7.0 ); + float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) + float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; + float4 h = 1.0 - abs( x ) - abs( y ); + float4 b0 = float4( x.xy, y.xy ); + float4 b1 = float4( x.zw, y.zw ); + float4 s0 = floor( b0 ) * 2.0 + 1.0; + float4 s1 = floor( b1 ) * 2.0 + 1.0; + float4 sh = -step( h, 0.0 ); + float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; + float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; + float3 g0 = float3( a0.xy, h.x ); + float3 g1 = float3( a0.zw, h.y ); + float3 g2 = float3( a1.xy, h.z ); + float3 g3 = float3( a1.zw, h.w ); + float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); + g0 *= norm.x; + g1 *= norm.y; + g2 *= norm.z; + g3 *= norm.w; + float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); + m = m* m; + m = m* m; + float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); + return 42.0 * dot( m, px); + } + + + inline float4 ASE_ComputeGrabScreenPos( float4 pos ) + { + #if UNITY_UV_STARTS_AT_TOP + float scale = -1.0; + #else + float scale = 1.0; + #endif + float4 o = pos; + o.y = pos.w * 0.5f; + o.y = ( pos.y - o.y ) * _ProjectionParams.x * scale + o.y; + return o; + } + + + void vertexDataFunc( inout appdata_full v, out Input o ) + { + UNITY_INITIALIZE_OUTPUT( Input, o ); + float3 ase_worldPos = mul( unity_ObjectToWorld, v.vertex ); + float simplePerlin3D27 = snoise( ( ( ase_worldPos * _NoiseScale ) + ( -_NoiseSpeed * _Time.y ) ) ); + float3 ase_vertexNormal = v.normal.xyz; + v.vertex.xyz += ( ( simplePerlin3D27 * _VertexIntensity ) * ase_vertexNormal ); + } + + void surf( Input i , inout SurfaceOutputStandard o ) + { + float3 ase_worldPos = i.worldPos; + float simplePerlin3D27 = snoise( ( ( ase_worldPos * _NoiseScale ) + ( -_NoiseSpeed * _Time.y ) ) ); + float4 ase_screenPos = float4( i.screenPos.xyz , i.screenPos.w + 0.00000000001 ); + float4 ase_grabScreenPos = ASE_ComputeGrabScreenPos( ase_screenPos ); + float4 ase_grabScreenPosNorm = ase_grabScreenPos / ase_grabScreenPos.w; + float4 screenColor22 = UNITY_SAMPLE_SCREENSPACE_TEXTURE(_GrabTexture,( ( _NoiseIntensity * simplePerlin3D27 ) + ase_grabScreenPosNorm ).xy); + o.Albedo = saturate( ( _Color * screenColor22 ) ).rgb; + float3 WorldPosition2_g836 = ase_worldPos; + float temp_output_7_0_g860 = AHF_FogDistanceStart; + half FogDistanceMask12_g836 = pow( abs( saturate( ( ( distance( WorldPosition2_g836 , _WorldSpaceCameraPos ) - temp_output_7_0_g860 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g860 ) ) ) ) , AHF_FogDistanceFalloff ); + float3 lerpResult258_g836 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g836 - 0.5 ) ) * AHF_FogColorDuo )); + float3 normalizeResult318_g836 = normalize( ( WorldPosition2_g836 - _WorldSpaceCameraPos ) ); + float dotResult145_g836 = dot( normalizeResult318_g836 , AHF_DirectionalDir ); + half DirectionalMask30_g836 = pow( abs( ( (dotResult145_g836*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); + float3 lerpResult40_g836 = lerp( lerpResult258_g836 , (AHF_DirectionalColor).rgb , DirectionalMask30_g836); + float3 temp_output_2_0_g859 = lerpResult40_g836; + float3 gammaToLinear3_g859 = GammaToLinearSpace( temp_output_2_0_g859 ); + #ifdef UNITY_COLORSPACE_GAMMA + float3 staticSwitch1_g859 = temp_output_2_0_g859; + #else + float3 staticSwitch1_g859 = gammaToLinear3_g859; + #endif + float3 temp_output_256_0_g836 = staticSwitch1_g859; + float3 temp_output_92_86_g681 = temp_output_256_0_g836; + half3 AHF_FogAxisOption181_g836 = AHF_FogAxisOption; + float3 break159_g836 = ( WorldPosition2_g836 * AHF_FogAxisOption181_g836 ); + float temp_output_7_0_g861 = AHF_FogHeightEnd; + half FogHeightMask16_g836 = pow( abs( saturate( ( ( ( break159_g836.x + break159_g836.y + break159_g836.z ) - temp_output_7_0_g861 ) / ( AHF_FogHeightStart - temp_output_7_0_g861 ) ) ) ) , AHF_FogHeightFalloff ); + float lerpResult328_g836 = lerp( ( FogDistanceMask12_g836 * FogHeightMask16_g836 ) , saturate( ( FogDistanceMask12_g836 + FogHeightMask16_g836 ) ) , AHF_FogLayersMode); + float simplePerlin3D193_g836 = snoise( ( ( WorldPosition2_g836 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); + float temp_output_7_0_g863 = AHF_NoiseDistanceEnd; + half NoiseDistanceMask7_g836 = saturate( ( ( distance( WorldPosition2_g836 , _WorldSpaceCameraPos ) - temp_output_7_0_g863 ) / ( 0.0 - temp_output_7_0_g863 ) ) ); + float lerpResult198_g836 = lerp( 1.0 , (simplePerlin3D193_g836*0.5 + 0.5) , ( NoiseDistanceMask7_g836 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); + half NoiseSimplex3D24_g836 = lerpResult198_g836; + #if defined(AHF_NOISEMODE_OFF) + float staticSwitch42_g836 = lerpResult328_g836; + #elif defined(AHF_NOISEMODE_PROCEDURAL3D) + float staticSwitch42_g836 = ( lerpResult328_g836 * NoiseSimplex3D24_g836 ); + #else + float staticSwitch42_g836 = lerpResult328_g836; + #endif + float temp_output_43_0_g836 = ( staticSwitch42_g836 * AHF_FogIntensity ); + float temp_output_92_87_g681 = temp_output_43_0_g836; + float3 lerpResult82_g681 = lerp( float3( 0,0,0 ) , temp_output_92_86_g681 , temp_output_92_87_g681); + o.Emission = lerpResult82_g681; + o.Smoothness = 0.8; + float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) ); + float3 ase_worldNormal = i.worldNormal; + float fresnelNdotV79 = dot( ase_worldNormal, ase_worldViewDir ); + float fresnelNode79 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV79, 5.0 ) ); + o.Alpha = saturate( ( 1.0 - fresnelNode79 ) ); + } + + ENDCG + } +} +/*ASEBEGIN +Version=18103 +1927;1;1906;1020;3380.803;521.1696;3.741465;True;False +Node;AmplifyShaderEditor.Vector3Node;30;-1280,1664;Half;False;Property;_NoiseSpeed;Noise Speed;3;0;Create;True;0;0;False;0;False;0.5,0.5,0;0.5,0.5,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 +Node;AmplifyShaderEditor.WorldPosInputsNode;39;-1280,1280;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 +Node;AmplifyShaderEditor.RangedFloatNode;32;-1280,1440;Half;False;Property;_NoiseScale;Noise Scale;2;0;Create;True;0;0;False;0;False;6;1.5;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.SimpleTimeNode;31;-1280,1824;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0 +Node;AmplifyShaderEditor.NegateNode;36;-1088,1664;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;35;-960,1344;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;37;-960,1664;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0 +Node;AmplifyShaderEditor.SimpleAddOpNode;33;-768,1536;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0 +Node;AmplifyShaderEditor.RangedFloatNode;41;0,1024;Inherit;False;Property;_NoiseIntensity;Noise Intensity;1;0;Create;True;0;0;False;1;Space(10);False;0;0.103;0;0.2;0;1;FLOAT;0 +Node;AmplifyShaderEditor.NoiseGeneratorNode;27;-640,1536;Inherit;False;Simplex3D;False;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;1;False;1;FLOAT;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;40;288,1024;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.GrabScreenPosition;23;256,1152;Inherit;False;0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.SimpleAddOpNode;24;448,1024;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0 +Node;AmplifyShaderEditor.FresnelNode;79;1408,1664;Inherit;False;Standard;WorldNormal;ViewDir;False;False;5;0;FLOAT3;0,0,1;False;4;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;5;False;1;FLOAT;0 +Node;AmplifyShaderEditor.ScreenColorNode;22;640,1152;Inherit;False;Global;_GrabScreen0;Grab Screen 0;1;0;Create;True;0;0;False;0;False;Object;-1;False;False;1;0;FLOAT2;0,0;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.RangedFloatNode;50;0,1728;Inherit;False;Property;_VertexIntensity;Vertex Intensity;4;0;Create;True;0;0;False;0;False;0;0.103;0;0.2;0;1;FLOAT;0 +Node;AmplifyShaderEditor.ColorNode;5;640,896;Inherit;False;Property;_Color;Color;0;1;[HDR];Create;True;0;0;False;0;False;1,0,0,0;1,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;44;896,896;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;45;384,1664;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.NormalVertexDataNode;49;384,1792;Inherit;False;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 +Node;AmplifyShaderEditor.OneMinusNode;80;1664,1664;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.SaturateNode;81;1824,1664;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 +Node;AmplifyShaderEditor.SimpleMultiplyOpNode;48;704,1664;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0 +Node;AmplifyShaderEditor.FunctionNode;78;1408,1056;Inherit;False;Apply Height Fog;-1;;681;950890317d4f36a48a68d150cdab0168;0;1;81;FLOAT3;0,0,0;False;3;FLOAT3;85;FLOAT3;86;FLOAT;87 +Node;AmplifyShaderEditor.SaturateNode;82;1056,896;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0 +Node;AmplifyShaderEditor.RangedFloatNode;55;1408,1280;Inherit;False;Constant;_Float6;Float 6;5;0;Create;True;0;0;False;0;False;0.8;0;0;0;0;1;FLOAT;0 +Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;2048,896;Float;False;True;-1;2;;0;0;Standard;Custom/My Transparent Shader;False;False;False;False;False;True;True;True;True;True;True;False;False;False;True;True;False;False;False;False;False;Back;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Transparent;0.5;True;False;0;False;Transparent;;Transparent;All;14;all;True;True;True;True;0;False;-1;False;0;False;-1;255;False;-1;255;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;False;2;15;10;25;False;0.5;False;2;5;False;-1;10;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;-1;-1;-1;-1;0;False;0;0;False;-1;-1;0;False;-1;0;0;0;False;0.1;False;-1;0;False;-1;16;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT;0;False;9;FLOAT;0;False;10;FLOAT;0;False;13;FLOAT3;0,0,0;False;11;FLOAT3;0,0,0;False;12;FLOAT3;0,0,0;False;14;FLOAT4;0,0,0,0;False;15;FLOAT3;0,0,0;False;0 +Node;AmplifyShaderEditor.CommentaryNode;83;1408,1536;Inherit;False;588.5403;100;Edge Opacity;0;;1,1,1,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;51;-1280,1152;Inherit;False;832.0697;100;Noise;0;;1,1,1,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;76;0,768;Inherit;False;1182;100;Grab Screen Color;0;;1,1,1,1;0;0 +Node;AmplifyShaderEditor.CommentaryNode;54;0,1536;Inherit;False;826.2407;100;Vertex Animaton;0;;1,1,1,1;0;0 +WireConnection;36;0;30;0 +WireConnection;35;0;39;0 +WireConnection;35;1;32;0 +WireConnection;37;0;36;0 +WireConnection;37;1;31;0 +WireConnection;33;0;35;0 +WireConnection;33;1;37;0 +WireConnection;27;0;33;0 +WireConnection;40;0;41;0 +WireConnection;40;1;27;0 +WireConnection;24;0;40;0 +WireConnection;24;1;23;0 +WireConnection;22;0;24;0 +WireConnection;44;0;5;0 +WireConnection;44;1;22;0 +WireConnection;45;0;27;0 +WireConnection;45;1;50;0 +WireConnection;80;0;79;0 +WireConnection;81;0;80;0 +WireConnection;48;0;45;0 +WireConnection;48;1;49;0 +WireConnection;82;0;44;0 +WireConnection;0;0;82;0 +WireConnection;0;2;78;85 +WireConnection;0;4;55;0 +WireConnection;0;9;81;0 +WireConnection;0;11;48;0 +ASEEND*/ +//CHKSM=8E0F65C35DF7DC42365527BD2E094A48B3C2BB20 \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta new file mode 100644 index 00000000..c830bbc7 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 69494530c2d06154dba377bc2a61be81 +timeCreated: 1570695643 +licenseType: Store +ShaderImporter: + externalObjects: {} + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/User.meta b/Assets/Art/BOXOPHOBIC/User.meta new file mode 100644 index 00000000..2f8f3126 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/User.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b7d458fadeeacb34ea6fd83f18f024a4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/User/User.pdf b/Assets/Art/BOXOPHOBIC/User/User.pdf new file mode 100644 index 00000000..55b587fb Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/User/User.pdf differ diff --git a/Assets/Art/BOXOPHOBIC/User/User.pdf.meta b/Assets/Art/BOXOPHOBIC/User/User.pdf.meta new file mode 100644 index 00000000..0d480888 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/User/User.pdf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 983558b57a284d84bbc541f947bc5139 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils.meta b/Assets/Art/BOXOPHOBIC/Utils.meta new file mode 100644 index 00000000..808c1e8b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3ed8ac36c42fa8a45a6f62ff10d5b287 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor.meta new file mode 100644 index 00000000..d307ca47 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6a27ef5e38a3d75469ae0bbc56f885b3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef b/Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef new file mode 100644 index 00000000..a15acddb --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef @@ -0,0 +1,16 @@ +{ + "name": "Boxophobic.Utils.Editor", + "references": [ + "Boxophobic.Utils.Scripts" + ], + "optionalUnityReferences": [], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [] +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta new file mode 100644 index 00000000..90e25f0e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 10f1dd4cfd6afb54da274d7d818bd8f6 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants.meta new file mode 100644 index 00000000..317a31f8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f975f7f073569654bb9318215ba4cd73 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs new file mode 100644 index 00000000..7580a347 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs @@ -0,0 +1,138 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.Constants +{ + public static class CONSTANT + { + public static Texture2D LogoImage + { + get + { + return Resources.Load("Boxophobic - Logo") as Texture2D; + } + } + + public static Texture2D BannerImageBegin + { + get + { + return Resources.Load("Boxophobic - BannerBegin") as Texture2D; + } + } + + public static Texture2D BannerImageMiddle + { + get + { + return Resources.Load("Boxophobic - BannerMiddle") as Texture2D; + } + } + + public static Texture2D BannerImageEnd + { + get + { + return Resources.Load("Boxophobic - BannerEnd") as Texture2D; + } + } + + public static Texture2D CategoryImageBegin + { + get + { + return Resources.Load("Boxophobic - CategoryBegin") as Texture2D; + } + } + + public static Texture2D CategoryImageMiddle + { + get + { + return Resources.Load("Boxophobic - CategoryMiddle") as Texture2D; + } + } + + public static Texture2D CategoryImageEnd + { + get + { + return Resources.Load("Boxophobic - CategoryEnd") as Texture2D; + } + } + + public static Texture2D IconEdit + { + get + { + return Resources.Load("Boxophobic - IconEdit") as Texture2D; + } + } + + public static Texture2D IconHelp + { + get + { + return Resources.Load("Boxophobic - IconHelp") as Texture2D; + } + } + + public static Color ColorDarkGray + { + get + { + return new Color(0.27f, 0.27f, 0.27f); + } + } + + public static Color ColorLightGray + { + get + { + return new Color(0.83f, 0.83f, 0.83f); + } + } + + public static GUIStyle TitleStyle + { + get + { + GUIStyle guiStyle = new GUIStyle + { + richText = true, + alignment = TextAnchor.MiddleCenter + }; + + return guiStyle; + } + } + + public static GUIStyle BoldTextStyle + { + get + { + GUIStyle guiStyle = new GUIStyle(); + + Color color; + + if (EditorGUIUtility.isProSkin) + { + color = new Color(0.87f, 0.87f, 0.87f); + } + else + { + color = new Color(0.27f, 0.27f, 0.27f); + } + + guiStyle.normal.textColor = color; + guiStyle.alignment = TextAnchor.MiddleCenter; + guiStyle.fontStyle = FontStyle.Bold; + + return guiStyle; + } + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta new file mode 100644 index 00000000..578f0665 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0cf8ff3bbc97374f88272f686fb80e5 +timeCreated: 1541442079 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta new file mode 100644 index 00000000..e9b98bba --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3ddf9a50ab07a4e469766a6d18a98031 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs new file mode 100644 index 00000000..fb1c3b85 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs @@ -0,0 +1,71 @@ +// Cristian Pop - https://boxophobic.com/ + +using System.Globalization; +using UnityEditor; + +namespace Boxophobic.Utils +{ + public partial class SettingsUtils + { + public static string LoadSettingsData(string settingsPath, string defaultData) + { + var settings = AssetDatabase.LoadAssetAtPath(settingsPath); + + if (settings != null) + { + return settings.data; + } + else + { + return defaultData; + } + } + + public static int LoadSettingsData(string settingsPath, int defaultData) + { + var settings = AssetDatabase.LoadAssetAtPath(settingsPath); + + if (settings != null) + { + int value; + + if (int.TryParse(settings.data, out value)) + { + return value; + } + else + { + return defaultData; + } + } + else + { + return defaultData; + } + } + + public static float LoadSettingsData(string settingsPath, float defaultData) + { + var settings = AssetDatabase.LoadAssetAtPath(settingsPath); + + if (settings != null) + { + float value; + + if (float.TryParse(settings.data, out value)) + { + return float.Parse(settings.data, CultureInfo.InvariantCulture); + } + else + { + return defaultData; + } + } + else + { + return defaultData; + } + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta new file mode 100644 index 00000000..41d9fe28 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90057ce590a8bd148ab59e018f35d9cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs new file mode 100644 index 00000000..5e9dcf7f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs @@ -0,0 +1,71 @@ +// Cristian Pop - https://boxophobic.com/ + +using System.IO; +using UnityEditor; +using UnityEngine; + +namespace Boxophobic.Utils +{ + public partial class SettingsUtils + { + public static void SaveSettingsData(string settingsPath, string data) + { + CreateFileIfMissing(settingsPath); + + var settings = AssetDatabase.LoadAssetAtPath(settingsPath); + + settings.data = data; + + SaveFile(settingsPath); + } + + public static void SaveSettingsData(string settingsPath, int data) + { + CreateFileIfMissing(settingsPath); + + var settings = AssetDatabase.LoadAssetAtPath(settingsPath); + + settings.data = data.ToString(); + + SaveFile(settingsPath); + } + + public static void SaveSettingsData(string settingsPath, float data) + { + CreateFileIfMissing(settingsPath); + + var settings = AssetDatabase.LoadAssetAtPath(settingsPath); + + settings.data = data.ToString(); + + SaveFile(settingsPath); + } + + private static void CreateFileIfMissing(string settingsPath) + { + if (File.Exists(settingsPath) == false) + { + var directory = Path.GetDirectoryName(settingsPath); + + if (Directory.Exists(directory) == false) + { + Directory.CreateDirectory(directory); + AssetDatabase.Refresh(); + } + + AssetDatabase.CreateAsset(ScriptableObject.CreateInstance(), settingsPath); + AssetDatabase.Refresh(); + } + } + + private static void SaveFile(string settingsPath) + { + var file = AssetDatabase.LoadAssetAtPath(settingsPath); + + EditorUtility.SetDirty(file); + AssetDatabase.SaveAssets(); + AssetDatabase.Refresh(); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta new file mode 100644 index 00000000..753e92ed --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7afe5a6ac49829c408df7e64761e822d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI.meta new file mode 100644 index 00000000..9144e9d9 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a1230a2a75d21048917b14c34140601 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs new file mode 100644 index 00000000..0d3476c5 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs @@ -0,0 +1,64 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + public partial class StyledGUI + { + public static void DrawInspectorBanner(Color bannerColor, string bannerText, string helpURL) + { + GUILayout.Space(20); + + var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); + var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40); + var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40); + var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40); + var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30); + + Color guiColor; + + if (EditorGUIUtility.isProSkin) + { + bannerColor = new Color(bannerColor.r, bannerColor.g, bannerColor.b, 1f); + } + else + { + bannerColor = CONSTANT.ColorLightGray; + } + + if (bannerColor.r + bannerColor.g + bannerColor.b <= 1.5f) + { + guiColor = CONSTANT.ColorLightGray; + } + else + { + guiColor = CONSTANT.ColorDarkGray; + } + + GUI.color = bannerColor; + + GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); + +#if UNITY_2019_3_OR_NEWER + GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); +#else + GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); +#endif + GUI.color = guiColor; + + if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter })) + { + Application.OpenURL(helpURL); + } + + GUI.color = Color.white; + GUILayout.Space(10); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta new file mode 100644 index 00000000..b8754bf1 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1525d4228f26951498e86e425363f3f0 +timeCreated: 1542661236 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs new file mode 100644 index 00000000..f0b66fe3 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs @@ -0,0 +1,46 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + public partial class StyledGUI + { + public static void DrawInspectorCategory(Rect position, string bannerText) + { + var categoryFullRect = new Rect(position.position.x, position.position.y + 10, position.width, position.height); + var categoryBeginRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, 10, 20); + var categoryMiddleRect = new Rect(categoryFullRect.position.x + 10, categoryFullRect.position.y, categoryFullRect.xMax - 32, 20); + var categoryEndRect = new Rect(categoryFullRect.xMax - 10, categoryFullRect.position.y, 10, 20); + var titleRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, categoryFullRect.width, 18); + + if (EditorGUIUtility.isProSkin) + { + GUI.color = CONSTANT.ColorDarkGray; + } + else + { + GUI.color = CONSTANT.ColorLightGray; + } + + //Workaround for flickering images in CustomInspector with Attribute + GUIStyle styleB = new GUIStyle(); + styleB.normal.background = CONSTANT.CategoryImageBegin; + EditorGUI.LabelField(categoryBeginRect, GUIContent.none, styleB); + + GUIStyle styleM = new GUIStyle(); + styleM.normal.background = CONSTANT.CategoryImageMiddle; + EditorGUI.LabelField(categoryMiddleRect, GUIContent.none, styleM); + + GUIStyle styleE = new GUIStyle(); + styleE.normal.background = CONSTANT.CategoryImageEnd; + EditorGUI.LabelField(categoryEndRect, GUIContent.none, styleE); + + GUI.color = Color.white; + GUI.Label(titleRect, bannerText, CONSTANT.BoldTextStyle); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta new file mode 100644 index 00000000..567c6b15 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87b94a9c1333f074e8c24cd5a2fe1d73 +timeCreated: 1542661236 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs new file mode 100644 index 00000000..85a50d27 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs @@ -0,0 +1,64 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + public partial class StyledGUI + { + public static void DrawWindowBanner(Color bannerColor, string bannerText, string helpURL) + { + GUILayout.Space(20); + + var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); + var bannerBeginRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, 20, 40); + var bannerMiddleRect = new Rect(bannerFullRect.position.x + 40, bannerFullRect.position.y, bannerFullRect.xMax - 75, 40); + var bannerEndRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y, 20, 40); + var iconRect = new Rect(bannerFullRect.xMax - 53, bannerFullRect.position.y + 5, 30, 30); + + Color guiColor; + + if (EditorGUIUtility.isProSkin) + { + bannerColor = new Color(bannerColor.r, bannerColor.g, bannerColor.b, 1f); + } + else + { + bannerColor = CONSTANT.ColorLightGray; + } + + if (bannerColor.r + bannerColor.g + bannerColor.b <= 1.5) + { + guiColor = CONSTANT.ColorLightGray; + } + else + { + guiColor = CONSTANT.ColorDarkGray; + } + + GUI.color = bannerColor; + + GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); + + GUI.color = guiColor; + +#if UNITY_2019_3_OR_NEWER + GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); +#else + GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); +#endif + if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter })) + { + Application.OpenURL(helpURL); + } + + GUI.color = Color.white; + GUILayout.Space(20); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta new file mode 100644 index 00000000..6978d25a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd0ddca94871d9a4586a143a83184806 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs new file mode 100644 index 00000000..8950ff7b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs @@ -0,0 +1,48 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + public partial class StyledGUI + { + public static void DrawWindowCategory(string bannerText) + { + var position = GUILayoutUtility.GetRect(0, 0, 40, 0); + + var categoryFullRect = new Rect(position.position.x, position.position.y + 10, position.width, position.height); + var categoryBeginRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, 10, 20); + var categoryMiddleRect = new Rect(categoryFullRect.position.x + 10, categoryFullRect.position.y, categoryFullRect.xMax - 41, 20); + var categoryEndRect = new Rect(categoryFullRect.xMax - 13, categoryFullRect.position.y, 10, 20); + var titleRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, categoryFullRect.width, 18); + + if (EditorGUIUtility.isProSkin) + { + GUI.color = CONSTANT.ColorDarkGray; + } + else + { + GUI.color = CONSTANT.ColorLightGray; + } + + //Workaround for flickering images in CustomInspector with Attribute + GUIStyle styleB = new GUIStyle(); + styleB.normal.background = CONSTANT.CategoryImageBegin; + EditorGUI.LabelField(categoryBeginRect, GUIContent.none, styleB); + + GUIStyle styleM = new GUIStyle(); + styleM.normal.background = CONSTANT.CategoryImageMiddle; + EditorGUI.LabelField(categoryMiddleRect, GUIContent.none, styleM); + + GUIStyle styleE = new GUIStyle(); + styleE.normal.background = CONSTANT.CategoryImageEnd; + EditorGUI.LabelField(categoryEndRect, GUIContent.none, styleE); + + GUI.color = Color.white; + GUI.Label(titleRect, bannerText, CONSTANT.BoldTextStyle); + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta new file mode 100644 index 00000000..514bf87e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aac99d6d81f90e54cabd822770c11875 +timeCreated: 1542661236 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector.meta new file mode 100644 index 00000000..78def35b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 05282c25086dbbf4eb12cbe3cf6f16fc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs new file mode 100644 index 00000000..133574e8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs @@ -0,0 +1,83 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledBanner))] + public class StyledBannerAttributeDrawer : PropertyDrawer + { + StyledBanner a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledBanner)attribute; + + DrawBanner(); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + + void DrawBanner() + { + GUILayout.Space(a.spaceTop); + + var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); + var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40); + var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40); + var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40); + var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30); + + Color bannerColor; + Color guiColor; + + if (EditorGUIUtility.isProSkin) + { + if (a.colorR < 0) + { + bannerColor = CONSTANT.ColorDarkGray; + guiColor = CONSTANT.ColorLightGray; + + } + else + { + bannerColor = new Color(a.colorR, a.colorG, a.colorB, 1f); + guiColor = CONSTANT.ColorDarkGray; + } + } + else + { + bannerColor = CONSTANT.ColorLightGray; + guiColor = CONSTANT.ColorDarkGray; + } + + GUI.color = bannerColor; + + GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); + +#if UNITY_2019_3_OR_NEWER + GUI.Label(bannerFullRect, "" + a.title + " " + a.subtitle + "", CONSTANT.TitleStyle); +#else + GUI.Label(bannerFullRect, "" + a.title + " " + a.subtitle + "", CONSTANT.TitleStyle); +#endif + GUI.color = guiColor; + + if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter })) + { + Application.OpenURL(a.helpURL); + } + + GUI.color = Color.white; + + GUILayout.Space(a.spaceBottom); + } + } + +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta new file mode 100644 index 00000000..f856a02b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a832b9f47ccef214e81c89efe6bf31dd +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs new file mode 100644 index 00000000..7814d2cc --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs @@ -0,0 +1,33 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledButton))] + public class StyledButtonAttributeDrawer : PropertyDrawer + { + StyledButton a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledButton)attribute; + + GUILayout.Space(a.Top); + + if (GUILayout.Button(a.Text)) + { + property.boolValue = true; + } + + GUILayout.Space(a.Down); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta new file mode 100644 index 00000000..c78a77d0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1d35dbbb9b6c214aa892d7b240de3df +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs new file mode 100644 index 00000000..96516911 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs @@ -0,0 +1,28 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledCategory))] + public class StyledCategoryAttributeDrawer : PropertyDrawer + { + StyledCategory a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledCategory)attribute; + + GUI.enabled = true; + + StyledGUI.DrawInspectorCategory(position, a.category); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return 40; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta new file mode 100644 index 00000000..ac2a05e9 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb59d41716ab6114cb7cf03a5695083b +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs new file mode 100644 index 00000000..1f1d2e40 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs @@ -0,0 +1,25 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledIndent))] + public class StyledIndentAttributeDrawer : PropertyDrawer + { + StyledIndent a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledIndent)attribute; + + EditorGUI.indentLevel = a.indent; + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta new file mode 100644 index 00000000..04574795 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea3f7407f69f900468d4b60de570e49d +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs new file mode 100644 index 00000000..1f31e352 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs @@ -0,0 +1,55 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledInteractive))] + public class StyledInteractiveAttributeDrawer : PropertyDrawer + { + StyledInteractive a; + + private int Value; + private string Keywork; + public int Type; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledInteractive)attribute; + + Value = a.value; + Keywork = a.keyword; + Type = a.type; + + if (Type == 0) + { + if (property.intValue == Value) + { + GUI.enabled = true; + } + else + { + GUI.enabled = false; + } + } + else if (Type == 1) + { + if (Keywork == "ON") + { + GUI.enabled = true; + } + else if (Keywork == "OFF") + { + GUI.enabled = false; + } + } + + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta new file mode 100644 index 00000000..e9262191 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80229de18cd73624b8181a9db49a304f +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs new file mode 100644 index 00000000..c2b02d6c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs @@ -0,0 +1,52 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledMessage))] + public class StyledMessageAttributeDrawer : PropertyDrawer + { + StyledMessage a; + + bool show; + MessageType messageType; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + show = property.boolValue; + + if (show) + { + a = (StyledMessage)attribute; + + if (a.Type == "None") + { + messageType = MessageType.None; + } + else if (a.Type == "Info") + { + messageType = MessageType.Info; + } + else if (a.Type == "Warning") + { + messageType = MessageType.Warning; + } + else if (a.Type == "Error") + { + messageType = MessageType.Error; + } + + GUILayout.Space(a.Top); + EditorGUILayout.HelpBox(a.Message, messageType); + GUILayout.Space(a.Down); + } + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta new file mode 100644 index 00000000..f207a760 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2734a300c1fbfb8499fe8a71e9b109e7 +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs new file mode 100644 index 00000000..bcf8bbdb --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs @@ -0,0 +1,36 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledPopupArray))] + public class StyledPopupArrayAttributeDrawer : PropertyDrawer + { + StyledPopupArray a; + private int index = 0; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledPopupArray)attribute; + + var arrProp = property.serializedObject.FindProperty(a.array); + + var arr = new string[arrProp.arraySize]; + + for (int i = 0; i < arrProp.arraySize; i++) + { + arr[i] = arrProp.GetArrayElementAtIndex(i).stringValue; + } + + index = EditorGUILayout.Popup(property.displayName, index, arr); + property.intValue = index; + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta new file mode 100644 index 00000000..d7549d51 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf9745e7c3c176c4395dbd644b463703 +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs new file mode 100644 index 00000000..0b2d4d4a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs @@ -0,0 +1,40 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledPopupLayers))] + public class StyledPopupLayersAttributeDrawer : PropertyDrawer + { + private int index; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + index = property.intValue; + + string[] allLayers = new string[32]; + + for (int i = 0; i < 32; i++) + { + if (LayerMask.LayerToName(i).Length < 1) + { + allLayers[i] = "Missing"; + } + else + { + allLayers[i] = LayerMask.LayerToName(i); + } + } + + index = EditorGUILayout.Popup(property.displayName, index, allLayers); + property.intValue = index; + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta new file mode 100644 index 00000000..cf036463 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b351b243374f2d948a9e9943abe174bf +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs new file mode 100644 index 00000000..9af9807b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs @@ -0,0 +1,71 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledRangeOptions))] + public class StyledRangeOptionsAttributeDrawer : PropertyDrawer + { + StyledRangeOptions a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledRangeOptions)attribute; + + GUIStyle styleMid = new GUIStyle(); + styleMid.alignment = TextAnchor.MiddleCenter; + styleMid.normal.textColor = Color.gray; + styleMid.fontSize = 7; + + if (a.displayLabel.Length > 0) + { + EditorGUI.PropertyField(position, property, label, true); + GUILayout.Space(5); + } + + GUILayout.BeginHorizontal(); + GUILayout.Space(8); + property.floatValue = GUILayout.HorizontalSlider(property.floatValue, a.min, a.max); + property.floatValue = Mathf.Clamp(property.floatValue, a.min, a.max); + property.floatValue = Mathf.Round(property.floatValue * 1000f) / 1000f; + GUILayout.Space(8); + GUILayout.EndHorizontal(); + +#if UNITY_2019_3_OR_NEWER + GUILayout.Space(15); +#endif + GUILayout.BeginHorizontal(); + + int maxWidth = 20; + +#if UNITY_2019_3_OR_NEWER + maxWidth = 28; +#endif + for (int i = 0; i < a.options.Length - 1; i++) + { + GUILayout.Label(a.options[i], styleMid, GUILayout.Width(maxWidth)); + GUILayout.Label("", styleMid); + } + + GUILayout.Label(a.options[a.options.Length - 1], styleMid, GUILayout.Width(maxWidth)); + GUILayout.EndHorizontal(); + + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + a = (StyledRangeOptions)attribute; + + if (a.displayLabel.Length > 0) + { + return 18; + } + else + { + return -2; + } + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta new file mode 100644 index 00000000..c76f9c35 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5681c6e5862ae545ba9b00a5b813250 +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs new file mode 100644 index 00000000..267fe54f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs @@ -0,0 +1,25 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledSpace))] + public class StyledSpaceAttributeDrawer : PropertyDrawer + { + StyledSpace a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledSpace)attribute; + + GUILayout.Space(a.space); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta new file mode 100644 index 00000000..b5e5c875 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db0457065a494f34aa3b619f240d8bda +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs new file mode 100644 index 00000000..3850da2e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs @@ -0,0 +1,45 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledText))] + public class StyledTextAttributeDrawer : PropertyDrawer + { + StyledText a; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + a = (StyledText)attribute; + + GUIStyle styleLabel = new GUIStyle(EditorStyles.label) + { + richText = true, + wordWrap = true + }; + + styleLabel.alignment = a.alignment; + + GUILayout.Space(a.top); + + if (a.disabled == true) + { + GUI.enabled = false; + } + + GUILayout.Label(property.stringValue, styleLabel); + + GUI.enabled = true; + + GUILayout.Space(a.down); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta new file mode 100644 index 00000000..9aa5faee --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aeec2ac650d2d8f40aa3b9e0cb807db5 +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs new file mode 100644 index 00000000..b95184aa --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs @@ -0,0 +1,22 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomPropertyDrawer(typeof(StyledTexturePreview))] + public class StyledTexturePreviewAttributeDrawer : PropertyDrawer + { + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + var rect = GUILayoutUtility.GetRect(0, 0, Screen.width, 0); + GUI.DrawTexture(rect, (Texture)property.objectReferenceValue, ScaleMode.StretchToFill, false); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta new file mode 100644 index 00000000..75c7f333 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8daad1bc4051084ca6204e12dc0890d +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta new file mode 100644 index 00000000..6c2aa7ba --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 72d0e5549e090634c9f3ff5e896c3e93 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs new file mode 100644 index 00000000..fe4e53d6 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs @@ -0,0 +1,95 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using Boxophobic.Constants; + +namespace Boxophobic.StyledGUI +{ + public class StyledBannerDrawer : MaterialPropertyDrawer + { + public string title; + public string subtitle; + + public StyledBannerDrawer(string title, string subtitle) + { + this.title = title; + this.subtitle = subtitle; + } + + public StyledBannerDrawer(string title) + { + this.title = title; + this.subtitle = ""; + } + + public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor materialEditor) + { + //EditorGUI.DrawRect(position, new Color(0, 1, 0, 0.05f)); + + Material material = materialEditor.target as Material; + + DrawBanner(material.shader); + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + + void DrawBanner(Shader shader) + { + GUILayout.Space(10); + + var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); + var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40); + var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40); + var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40); + //var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30); + + Color bannerColor; + Color guiColor; + + if (EditorGUIUtility.isProSkin) + { + bannerColor = CONSTANT.ColorDarkGray; + guiColor = CONSTANT.ColorLightGray; + } + else + { + bannerColor = CONSTANT.ColorLightGray; + guiColor = CONSTANT.ColorDarkGray; + } + + GUI.color = bannerColor; + + GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); + GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); + +#if UNITY_2019_3_OR_NEWER + GUI.Label(bannerFullRect, "" + title + "" + " " + subtitle + "", CONSTANT.TitleStyle); +#else + GUI.Label(bannerFullRect, "" + title + " " + subtitle + "", CONSTANT.TitleStyle); +#endif + +// GUI.color = guiColor; + +//#if AMPLIFY_SHADER_EDITOR +// if (GUI.Button(iconRect, CONSTANT.IconEdit, new GUIStyle { alignment = TextAnchor.MiddleCenter })) +// { +// AmplifyShaderEditor.AmplifyShaderEditorWindow.ConvertShaderToASE(Shader.Find(shader.name)); +// } +//#else +// if (GUI.Button(iconRect, CONSTANT.IconEdit, new GUIStyle { alignment = TextAnchor.MiddleCenter })) +// { +// AssetDatabase.OpenAsset(Shader.Find(shader.name), 1); +// } +//#endif + + GUI.color = Color.white; + + GUILayout.Space(10); + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta new file mode 100644 index 00000000..636d5946 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 864d8c89c5d2ef240b0c51f15c5211e2 +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs new file mode 100644 index 00000000..4c1a46ae --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs @@ -0,0 +1,71 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledButtonDrawer : MaterialPropertyDrawer + { + public string text; + public string target = ""; + public float value = 1; + public float top; + public float down; + + public StyledButtonDrawer(string text) + { + this.text = text; + this.value = 1; + this.top = 0; + this.down = 0; + } + + public StyledButtonDrawer(string text, float value, float top, float down) + { + this.text = text; + this.value = value; + this.top = top; + this.down = down; + } + + public StyledButtonDrawer(string text, string target, float value, float top, float down) + { + this.text = text; + this.target = target; + this.value = value; + this.top = top; + this.down = down; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + Material material = materialEditor.target as Material; + + GUILayout.Space(top); + + if (GUILayout.Button(text)) + { + if (target == "") + { + prop.floatValue = value; + } + else + { + if (material.HasProperty(target)) + { + material.SetFloat(target, value); + } + } + } + + GUILayout.Space(down); + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta new file mode 100644 index 00000000..20f8fd51 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b40d7a397aa055b46a1651ee9f9bdd03 +timeCreated: 1542224092 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs new file mode 100644 index 00000000..640cfed7 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs @@ -0,0 +1,45 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledCategoryDrawer : MaterialPropertyDrawer + { + public string category; + + public StyledCategoryDrawer(string category) + { + this.category = category; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materiaEditor) + { + if (prop.floatValue < 0) + { + GUI.enabled = true; + EditorGUI.indentLevel = 0; + } + else + { + GUI.enabled = true; + EditorGUI.indentLevel = 0; + StyledGUI.DrawInspectorCategory(position, category); + } + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + if (prop.floatValue < 0) + { + return -2; + } + else + { + return 40; + } + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta new file mode 100644 index 00000000..e853f827 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b5715cd99e4a2e4c91d69653d31dad9 +timeCreated: 1542224092 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs new file mode 100644 index 00000000..c3b6afeb --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs @@ -0,0 +1,93 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledDiffusionMaterialDrawer : MaterialPropertyDrawer + { + public string propName; + //GUIStyle styleCenteredHelpBox; + + public StyledDiffusionMaterialDrawer(string propName) + { + this.propName = propName; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + //SetGUIStyles(); + + Material material = materialEditor.target as Material; + + UnityEngine.Object materialAsset = null; + + GUILayout.Space(5); + + if (material.GetInt(propName) == 0) + { + EditorGUILayout.HelpBox("Diffusion profile values not set! Due to the current HDRP architecture the diffusion profiles are not directly supported. You will need to create an HDRP Lit material and assign a Diffusion Profile to it, drag this HDRP material to the " + label + " slot to allow the profile values to be copied to the material. The HDRP material will not be saved to the property field! Please refer to the documentation for more information.", MessageType.Warning); + } + else + { + EditorGUILayout.HelpBox("Diffusion profile values set! Due to the current HDRP architecture the diffusion profiles are not directly supported. You will need to create an HDRP Lit material and assign a Diffusion Profile to it, drag this HDRP material to the " + label + " slot to allow the profile values to be copied to the material. The HDRP material will not be saved to the property field! Please refer to the documentation for more information.", MessageType.Info); + } + + GUILayout.Space(10); + + materialAsset = (Material)EditorGUILayout.ObjectField(label, materialAsset, typeof(Material), false); + + Material materialObject = AssetDatabase.LoadAssetAtPath(AssetDatabase.GetAssetPath(materialAsset)); + + if (materialAsset != null) + { + if (materialObject.HasProperty("_DiffusionProfileAsset") && materialObject.HasProperty("_DiffusionProfileHash")) + { + var diffusionProfileAsset = materialObject.GetVector("_DiffusionProfileAsset"); + var diffusionProfileHash = materialObject.GetFloat("_DiffusionProfileHash"); + + if (diffusionProfileAsset.x != 0 && diffusionProfileHash != 0) + { + material.SetVector(propName + "_asset", diffusionProfileAsset); + material.SetFloat(propName, diffusionProfileHash); + + Debug.Log("Diffusion Profile settings copied from " + materialObject.name + "!"); + + materialAsset = null; + } + else + { + material.SetVector(propName + "_asset", Vector4.zero); + material.SetFloat(propName, 0.0f); + + Debug.Log("Diffusion Profile settings set to None because " + materialObject.name + " has no Diffusion Profile asset!"); + + materialAsset = null; + } + } + else + { + Debug.Log("The Material used to copy the Diffusion Profile does not a valid Diffusion Profile!"); + } + } + + //EditorGUI.HelpBox(new Rect(position.x, position.y + top, position.width, position.height), message, mType); + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + + //void SetGUIStyles() + //{ + // styleCenteredHelpBox = new GUIStyle(GUI.skin.GetStyle("HelpBox")) + // { + // alignment = TextAnchor.MiddleCenter, + // }; + + //} + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta new file mode 100644 index 00000000..d01d4c28 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f13faeb510c3cb54ba5d051ecaad26e3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs new file mode 100644 index 00000000..0905c5a0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs @@ -0,0 +1,30 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledIndentDrawer : MaterialPropertyDrawer + { + public float indent; + + public StyledIndentDrawer(float indent) + { + this.indent = indent; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + //Material material = materialEditor.target as Material; + + EditorGUI.indentLevel = (int)indent; + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta new file mode 100644 index 00000000..2b9a0ba3 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae4fb3d8081065c47860724ea515c97c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs new file mode 100644 index 00000000..3f321cbe --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs @@ -0,0 +1,92 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledInteractiveDrawer : MaterialPropertyDrawer + { + public string keyword; + public float value1 = -1f; + public float value2 = -1f; + public float value3 = -1f; + + protected int type; + + public StyledInteractiveDrawer(string k) + { + type = 0; + keyword = k; + } + + public StyledInteractiveDrawer(string k, float v1) + { + type = 1; + keyword = k; + value1 = v1; + } + + public StyledInteractiveDrawer(string k, float v1, float v2) + { + type = 1; + keyword = k; + value1 = v1; + value2 = v2; + } + + public StyledInteractiveDrawer(string k, float v1, float v2, float v3) + { + type = 1; + keyword = k; + value1 = v1; + value2 = v2; + value3 = v3; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + Material material = materialEditor.target as Material; + + if (type == 1) + { + if (material.HasProperty(keyword)) + { + if (value1 == material.GetFloat(keyword) || value2 == material.GetFloat(keyword) || value3 == material.GetFloat(keyword)) + { + GUI.enabled = true; + } + else + { + GUI.enabled = false; + } + } + } + else if (type == 0) + { + if (keyword == "ON") + { + GUI.enabled = true; + } + else if (keyword == "OFF") + { + GUI.enabled = false; + } + else if (material.IsKeywordEnabled(keyword)) + { + GUI.enabled = true; + } + else + { + GUI.enabled = false; + } + } + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta new file mode 100644 index 00000000..c0f32f8b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cc33d297d20daa40a9b09fbb8e59502 +timeCreated: 1544039105 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs new file mode 100644 index 00000000..de9414a4 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs @@ -0,0 +1,90 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledMessageDrawer : MaterialPropertyDrawer + { + public string type; + public string message; + public string keyword; + public float value; + public float top; + public float down; + + MessageType mType; + + public StyledMessageDrawer(string t, string m, float top, float down) + { + type = t; + message = m; + keyword = null; + + this.top = top; + this.down = down; + } + + public StyledMessageDrawer(string t, string m, string k, float v, float top, float down) + { + type = t; + message = m; + keyword = k; + value = v; + + this.top = top; + this.down = down; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + Material material = materialEditor.target as Material; + + if (type == "None") + { + mType = MessageType.None; + } + else if (type == "Info") + { + mType = MessageType.Info; + } + else if (type == "Warning") + { + mType = MessageType.Warning; + } + else if (type == "Error") + { + mType = MessageType.Error; + } + + if (keyword != null) + { + if (material.HasProperty(keyword)) + { + if (material.GetFloat(keyword) == value) + { + GUILayout.Space(top); + //EditorGUI.DrawRect(new Rect(position.x, position.y + Top, position.width, position.height), new Color(1,0,0,0.3f)); + EditorGUILayout.HelpBox(message, mType); + //EditorGUI.HelpBox(new Rect(position.x, position.y + top, position.width, position.height), message, mType); + GUILayout.Space(down); + + } + } + } + else + { + GUILayout.Space(top); + EditorGUILayout.HelpBox(message, mType); + GUILayout.Space(down); + } + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta new file mode 100644 index 00000000..74e720bc --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d01ce91280120de49b931b40f9e16f6b +timeCreated: 1542224092 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs new file mode 100644 index 00000000..24a38b3c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs @@ -0,0 +1,31 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + public class StyledSpaceDrawer : MaterialPropertyDrawer + { + public float space; + + public StyledSpaceDrawer(float space) + { + this.space = space; + } + + public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor materialEditor) + { + //EditorGUI.DrawRect(position, new Color(0, 1, 0, 0.05f)); + + //Material material = materialEditor.target as Material; + + GUILayout.Space(space); + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta new file mode 100644 index 00000000..05335608 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f2f57e67392e5b41af1a4cecc3a6c04 +timeCreated: 1544998323 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs new file mode 100644 index 00000000..88e07a48 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs @@ -0,0 +1,99 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledTextDrawer : MaterialPropertyDrawer + { + public string text = ""; + public string alignment = "Center"; + public string font = "Normal"; + public string disabled = ""; + public float size = 11; + public float top = 0; + public float down = 0; + + public StyledTextDrawer(string text) + { + this.text = text; + } + + public StyledTextDrawer(string text, string alignment, string font, string disabled, float size) + { + this.text = text; + this.alignment = alignment; + this.font = font; + this.disabled = disabled; + this.size = size; + } + + public StyledTextDrawer(string text, string alignment, string font, string disabled, float size, float top, float down) + { + this.text = text; + this.alignment = alignment; + this.font = font; + this.disabled = disabled; + this.size = size; + this.top = top; + this.down = down; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + //Material material = materialEditor.target as Material; + + GUIStyle styleLabel = new GUIStyle(EditorStyles.label) + { + richText = true, + alignment = TextAnchor.MiddleCenter, + wordWrap = true + }; + + GUILayout.Space(top); + + if (alignment == "Center") + { + styleLabel.alignment = TextAnchor.MiddleCenter; + + } + else if (alignment == "Left") + { + styleLabel.alignment = TextAnchor.MiddleCenter; + } + else if (alignment == "Left") + { + styleLabel.alignment = TextAnchor.MiddleCenter; + } + + if (font == "Bold") + { + styleLabel.fontStyle = FontStyle.Bold; + } + else + { + styleLabel.fontStyle = FontStyle.Normal; + } + + styleLabel.fontSize = (int)size; + + if (disabled == "Disabled") + { + GUI.enabled = false; + } + + GUILayout.Label(text, styleLabel); + + GUI.enabled = true; + + GUILayout.Space(down); + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta new file mode 100644 index 00000000..35f119db --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e137daebc2f7e0c4aa0ee5c5b140e8fd +timeCreated: 1542224092 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs new file mode 100644 index 00000000..79fb4543 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs @@ -0,0 +1,80 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; +using UnityEditor; +using System; + +namespace Boxophobic.StyledGUI +{ + public class StyledToggleDrawer : MaterialPropertyDrawer + { + public float width = 0; + + public StyledToggleDrawer() + { + + } + + public StyledToggleDrawer(float width) + { + this.width = width; + } + + public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) + { + Material material = materialEditor.target as Material; + + if (width == 0) + { + bool toggle = false; + + if (prop.floatValue > 0.5f) + { + toggle = true; + } + + toggle = EditorGUILayout.Toggle(label, toggle); + + if (toggle) + { + prop.floatValue = 1; + } + else + { + prop.floatValue = 0; + } + } + else + { + GUILayout.BeginHorizontal(); + + GUILayout.Label(label); + + bool toggle = false; + + if (prop.floatValue > 0.5f) + { + toggle = true; + } + + toggle = GUILayout.Toggle(toggle, "", GUILayout.Width(width)); + + if (toggle) + { + prop.floatValue = 1; + } + else + { + prop.floatValue = 0; + } + + GUILayout.EndHorizontal(); + } + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return -2; + } + } +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta new file mode 100644 index 00000000..33897f35 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5699c954b5c9184199293b4ede31d57 +timeCreated: 1542224092 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono.meta new file mode 100644 index 00000000..ba24786c --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a8b42c332908fba438ec7ea14b4dded1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs new file mode 100644 index 00000000..db30921f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs @@ -0,0 +1,20 @@ +//#if UNITY_EDITOR +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomEditor(typeof(StyledMonoBehaviour), true)] + [CanEditMultipleObjects] + public class StyledMonoBehaviourEditor : Editor + { + public override void OnInspectorGUI() + { + serializedObject.Update(); + EditorGUI.BeginChangeCheck(); + DrawPropertiesExcluding(serializedObject, "m_Script"); + if (EditorGUI.EndChangeCheck()) + serializedObject.ApplyModifiedProperties(); + } + } +} +//#endif \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta new file mode 100644 index 00000000..f60827ff --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 29c1ac24df072a744a4bdc6a209772bf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs new file mode 100644 index 00000000..accb83f3 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs @@ -0,0 +1,20 @@ +//#if UNITY_EDITOR +using UnityEditor; + +namespace Boxophobic.StyledGUI +{ + [CustomEditor(typeof(StyledScriptableObject), true)] + [CanEditMultipleObjects] + public class StyledScriptableObjectEditor : Editor + { + public override void OnInspectorGUI() + { + serializedObject.Update(); + EditorGUI.BeginChangeCheck(); + DrawPropertiesExcluding(serializedObject, "m_Script"); + if (EditorGUI.EndChangeCheck()) + serializedObject.ApplyModifiedProperties(); + } + } +} +//#endif \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta new file mode 100644 index 00000000..cfff437a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a0e1a0aaab33f341b20d7d940fe0a06 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources.meta new file mode 100644 index 00000000..338cbff7 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b1b58aafa2fedeb429de4a748510a6dd +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd new file mode 100644 index 00000000..3a11e16c Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta new file mode 100644 index 00000000..5afae7a9 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: 9515108b8376ad7418e8138858201b72 +timeCreated: 1541620736 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd new file mode 100644 index 00000000..11e86fae Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta new file mode 100644 index 00000000..555c0480 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: 0dd3fbd5475976a4aa96298afc680d17 +timeCreated: 1541620736 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd new file mode 100644 index 00000000..6812f385 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta new file mode 100644 index 00000000..562e206e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: e3767adfa5dac5544830cd097ef6c09f +timeCreated: 1541620736 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd new file mode 100644 index 00000000..912c5e03 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta new file mode 100644 index 00000000..610069f3 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: 97ec2262fb592f94a9569e156ea65d7b +timeCreated: 1542342551 +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: 64 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 64 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Android + maxTextureSize: 64 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd new file mode 100644 index 00000000..9e7eaa46 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta new file mode 100644 index 00000000..0f4a7cc1 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: e1c856352cf5b9b479ddb80c85c84cd5 +timeCreated: 1542342551 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd new file mode 100644 index 00000000..22c27f3c Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta new file mode 100644 index 00000000..b7a9d923 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: 106fc33e3a3dab34f89693e3ed333fa2 +timeCreated: 1542342551 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd new file mode 100644 index 00000000..dee07097 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta new file mode 100644 index 00000000..42feeb98 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: cf593cb3310b7784a8f0967b8ba89b02 +timeCreated: 1542656899 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd new file mode 100644 index 00000000..bee573fe Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta new file mode 100644 index 00000000..e0ee307e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta @@ -0,0 +1,84 @@ +fileFormatVersion: 2 +guid: b676a215be26cba488e51c0dda84e72d +timeCreated: 1542663379 +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: Android + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png new file mode 100644 index 00000000..fda1f8a5 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta new file mode 100644 index 00000000..b6e68c9a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 4ebb9926546381046a4271ece54ce919 +timeCreated: 1522739004 +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: 32 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 32 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Android + maxTextureSize: 32 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: WebGL + maxTextureSize: 32 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts.meta new file mode 100644 index 00000000..cb717a97 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 182523467462c8843927ea3a1521f7ba +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef b/Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef new file mode 100644 index 00000000..3354f295 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef @@ -0,0 +1,13 @@ +{ + "name": "Boxophobic.Utils.Scripts", + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta new file mode 100644 index 00000000..b8b8edd0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 825ad574da7360d4e8aea558f272972e +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta new file mode 100644 index 00000000..0388e113 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5d173e32f35ece04fb0dbcecc74ba8f9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs new file mode 100644 index 00000000..43557f87 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs @@ -0,0 +1,13 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.Utils +{ + [CreateAssetMenu(fileName = "Data", menuName = "BOXOPHOBIC/Settings Data")] + public class SettingsData : ScriptableObject + { + [Space] + public string data = ""; + } +} \ No newline at end of file diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta new file mode 100644 index 00000000..97109cf8 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 93308045fbb3c5e42ba5ccb66d848632 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta new file mode 100644 index 00000000..63020842 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 552b22f2a2991434caae4055e7f687b8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs new file mode 100644 index 00000000..568b1d85 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledBanner : PropertyAttribute + { + public float colorR; + public float colorG; + public float colorB; + public string title; + public string subtitle; + public int spaceTop; + public int spaceBottom; + public string helpURL; + + public StyledBanner(string title, string subtitle, string helpURL) + { + this.spaceTop = 10; + this.spaceBottom = 10; + this.colorR = -1; + this.title = title; + this.subtitle = subtitle; + this.helpURL = helpURL; + } + + public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, string helpURL) + { + this.spaceTop = 10; + this.spaceBottom = 10; + this.colorR = colorR; + this.colorG = colorG; + this.colorB = colorB; + this.title = title; + this.subtitle = subtitle; + this.helpURL = helpURL; + } + + public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, int spaceTop, int spaceBottom, string helpURL) + { + this.colorR = colorR; + this.colorG = colorG; + this.colorB = colorB; + this.title = title; + this.subtitle = subtitle; + this.spaceTop = spaceTop; + this.spaceBottom = spaceBottom; + this.helpURL = helpURL; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta new file mode 100644 index 00000000..17d5e7c6 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb089d68a8e4634390e299256c8eec7 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs new file mode 100644 index 00000000..36092480 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs @@ -0,0 +1,28 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledButton : PropertyAttribute + { + public string Text = ""; + public float Top = 0; + public float Down = 0; + + public StyledButton(string Text, string Message) + { + this.Text = Text; + this.Top = 0; + this.Down = 0; + } + + public StyledButton(string Text, float Top, float Down) + { + this.Text = Text; + this.Top = Top; + this.Down = Down; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta new file mode 100644 index 00000000..ec11104d --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c167590d9d480e438111f555c3a9d09 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs new file mode 100644 index 00000000..927b43c2 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs @@ -0,0 +1,15 @@ +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledCategory : PropertyAttribute + { + public string category; + + public StyledCategory(string category) + { + this.category = category; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta new file mode 100644 index 00000000..ed349a6f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6dfd994aa3f6b3944a0bd6effc2b3102 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs new file mode 100644 index 00000000..94015d40 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs @@ -0,0 +1,17 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledIndent : PropertyAttribute + { + public int indent; + + public StyledIndent(int indent) + { + this.indent = indent; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta new file mode 100644 index 00000000..709de96b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fd0e43229939f8b45bd79345e699dfcd +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs new file mode 100644 index 00000000..8fd73a33 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs @@ -0,0 +1,27 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledInteractive : PropertyAttribute + { + public int value; + public string keyword; + public int type; + + public StyledInteractive(int v) + { + type = 0; + value = v; + } + + public StyledInteractive(string k) + { + type = 1; + keyword = k; + } + } + +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta new file mode 100644 index 00000000..9cd49244 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 388415cfa9bb69041a8281bc567acec5 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs new file mode 100644 index 00000000..f75624e0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs @@ -0,0 +1,31 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledMessage : PropertyAttribute + { + public string Type; + public string Message; + public float Top; + public float Down; + + public StyledMessage(string Type, string Message) + { + this.Type = Type; + this.Message = Message; + this.Top = 0; + this.Down = 0; + } + + public StyledMessage(string Type, string Message, float Top, float Down) + { + this.Type = Type; + this.Message = Message; + this.Top = Top; + this.Down = Down; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta new file mode 100644 index 00000000..969be37a --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab1d3117b9da8d7429e5ac70bd016772 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs new file mode 100644 index 00000000..a3fb1557 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs @@ -0,0 +1,17 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledPopupArray : PropertyAttribute + { + public string array; + + public StyledPopupArray(string array) + { + this.array = array; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta new file mode 100644 index 00000000..f2221378 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b32866cb35dd534c8ed7dda217b547e +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs new file mode 100644 index 00000000..01b59171 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs @@ -0,0 +1,11 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledPopupLayers : PropertyAttribute + { + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta new file mode 100644 index 00000000..fa65de81 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0859d05e88a639846b09d3b97fe33c7b +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs new file mode 100644 index 00000000..81ca43ea --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs @@ -0,0 +1,24 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledRangeOptions : PropertyAttribute + { + public float min; + public float max; + public string displayLabel; + public string[] options; + + public StyledRangeOptions(float min, float max, string displayLabel, string[] options) + { + this.min = min; + this.max = max; + this.displayLabel = displayLabel; + + this.options = options; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta new file mode 100644 index 00000000..cd0009d0 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 896f8a6be3053ff4a8f322a960986af1 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs new file mode 100644 index 00000000..ec2fef0e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs @@ -0,0 +1,15 @@ +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledSpace : PropertyAttribute + { + public int space; + + public StyledSpace(int space) + { + this.space = space; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta new file mode 100644 index 00000000..2d2d8d7e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e11186e2ccd8bf44d9d8699902268c99 +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs new file mode 100644 index 00000000..7c53619d --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs @@ -0,0 +1,34 @@ +// Cristian Pop - https://boxophobic.com/ + +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledText : PropertyAttribute + { + public string text = ""; + public TextAnchor alignment = TextAnchor.MiddleCenter; + public bool disabled = false; + public float top = 0; + public float down = 0; + + public StyledText() + { + } + + public StyledText(TextAnchor alignment, bool disabled) + { + this.alignment = alignment; + this.disabled = disabled; + } + + public StyledText(TextAnchor alignment, bool disabled, float top, float down) + { + this.alignment = alignment; + this.disabled = disabled; + this.top = top; + this.down = down; + } + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta new file mode 100644 index 00000000..20160153 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df9ee7b5ab129dd4991f424a8d93430b +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs new file mode 100644 index 00000000..c0a30531 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs @@ -0,0 +1,9 @@ +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledTexturePreview : PropertyAttribute + { + } +} + diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta new file mode 100644 index 00000000..9d5a8c0f --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b33fc29a1077eff40880c4d54b57136c +timeCreated: 1544997099 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono.meta new file mode 100644 index 00000000..8717be17 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3c68b6da1ed7bfe45aae9f6790b168d6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs new file mode 100644 index 00000000..be59139e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs @@ -0,0 +1,7 @@ +using UnityEngine; +using Boxophobic.StyledGUI; + +public class StyledMonoBehaviour : MonoBehaviour +{ + +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta new file mode 100644 index 00000000..f856e01b --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0003a5bea05764747b05fa096a075848 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs new file mode 100644 index 00000000..7515e5a6 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs @@ -0,0 +1,7 @@ +using UnityEngine; +using Boxophobic.StyledGUI; + +public class StyledScriptableObject: ScriptableObject +{ + +} diff --git a/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta new file mode 100644 index 00000000..ac3c576e --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 528a63c4c58b58a4ca3927eec830c596 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art/BOXOPHOBIC/Utils/Utils.pdf b/Assets/Art/BOXOPHOBIC/Utils/Utils.pdf new file mode 100644 index 00000000..16960da2 Binary files /dev/null and b/Assets/Art/BOXOPHOBIC/Utils/Utils.pdf differ diff --git a/Assets/Art/BOXOPHOBIC/Utils/Utils.pdf.meta b/Assets/Art/BOXOPHOBIC/Utils/Utils.pdf.meta new file mode 100644 index 00000000..0dd274c3 --- /dev/null +++ b/Assets/Art/BOXOPHOBIC/Utils/Utils.pdf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0aca0e2d06b26544681357ef98393b10 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/BOXOPHOBIC.meta b/Assets/BOXOPHOBIC.meta deleted file mode 100644 index 1bc51115..00000000 --- a/Assets/BOXOPHOBIC.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c912d62e24840054c81d1a6a589c2071 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog.meta deleted file mode 100644 index b5693f9d..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d89d660f213219343aeb4f0c3d596811 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf deleted file mode 100644 index 926c9553..00000000 Binary files a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta deleted file mode 100644 index 9140163a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Atmospheric Height Fog.pdf.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b7924a99ee14ecc44a9137b83b73ad3f -timeCreated: 1568812262 -licenseType: Store -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core.meta deleted file mode 100644 index 2ce4ec25..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 71fc976a35787c84092559b2f9c21709 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta deleted file mode 100644 index a1d7afe2..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8b364f989697ee14e942a1afe15ccb64 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef deleted file mode 100644 index ce3bc90c..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "Boxophobic.AtmosphericHeightFog.Editor", - "references": [ - "Boxophobic.Utils.Editor", - "Boxophobic.Utils.Scripts", - "Boxophobic.AtmosphericHeightFog.Runtime" - ], - "optionalUnityReferences": [], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [] -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta deleted file mode 100644 index 58c4c7ea..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Boxophobic.AtmosphericHeightFog.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 154764cb075aa0b4eb8b88ba5ca2617f -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs deleted file mode 100644 index bc273fca..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEditor; -using UnityEditor.SceneManagement; -using UnityEngine; - -namespace AtmosphericHeightFog -{ - public class HeightFogCreate - { - [MenuItem("GameObject/BOXOPHOBIC/Atmospheric Height Fog/Global", false, 9)] - static void CreateGlobalVolume() - { - if (GameObject.Find("Height Fog Global") != null) - { - Debug.Log("[Atmospheric Height Fog] " + "Height Fog Global is already added to your scene!"); - return; - } - - GameObject go = new GameObject(); - go.name = "Height Fog Global"; - go.AddComponent(); - - if (Selection.activeGameObject != null) - { - go.transform.parent = Selection.activeGameObject.transform; - } - - Selection.activeGameObject = go; - - EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); - } - - [MenuItem("GameObject/BOXOPHOBIC/Atmospheric Height Fog/Override Volume (Box)", false, 10)] - static void CreateOverrideBoxVolume() - { - if (GameObject.Find("Height Fog Global") == null) - { - Debug.Log("[Atmospheric Height Fog] " + "Height Fog Global must be added to the scene first!"); - return; - } - - GameObject go = new GameObject(); - go.name = "Height Fog Override (Box)"; - go.AddComponent(); - go.GetComponent().isTrigger = true; - go.AddComponent(); - - var sceneCamera = SceneView.lastActiveSceneView.camera; - - if (sceneCamera != null) - { - go.transform.position = sceneCamera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 10f)); - } - else - { - go.transform.localPosition = Vector3.zero; - go.transform.localEulerAngles = Vector3.zero; - go.transform.localScale = Vector3.one; - } - - if (Selection.activeGameObject != null) - { - go.transform.parent = Selection.activeGameObject.transform; - } - - Selection.activeGameObject = go; - - EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); - } - - [MenuItem("GameObject/BOXOPHOBIC/Atmospheric Height Fog/Override Volume (Sphere)", false, 11)] - static void CreateOverrideSphereVolume() - { - if (GameObject.Find("Height Fog Global") == null) - { - Debug.Log("[Atmospheric Height Fog] " + "Height Fog Global must be added to the scene first!"); - return; - } - - GameObject go = new GameObject(); - go.name = "Height Fog Override (Sphere)"; - go.AddComponent(); - go.GetComponent().isTrigger = true; - go.AddComponent(); - - var sceneCamera = SceneView.lastActiveSceneView.camera; - - if (sceneCamera != null) - { - go.transform.position = sceneCamera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 10f)); - } - else - { - go.transform.localPosition = Vector3.zero; - go.transform.localEulerAngles = Vector3.zero; - go.transform.localScale = Vector3.one; - } - - if (Selection.activeGameObject != null) - { - go.transform.parent = Selection.activeGameObject.transform; - } - - Selection.activeGameObject = go; - - EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta deleted file mode 100644 index 5fd3fa0f..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogCreate.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 272a11163456c6647affb81b9e5f31a4 -timeCreated: 1573480983 -licenseType: Store -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs deleted file mode 100644 index 65ff14aa..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEditor; - -namespace AtmosphericHeightFog -{ - [CanEditMultipleObjects] - [CustomEditor(typeof(HeightFogGlobal))] - public class HeightFogGlobalInspector : Editor - { - readonly string[] scriptMode = { "m_Script", "presetMaterial", "presetDay", "presetNight", "timeOfDay" }; - readonly string[] presetMode = { "m_Script", "presetDay", "presetNight", "timeOfDay", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; - readonly string[] timeOfDayMode = { "m_Script", "presetMaterial", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; - HeightFogGlobal targetScript; - - void OnEnable() - { - targetScript = (HeightFogGlobal)target; - } - - public override void OnInspectorGUI() - { - DrawInspector(); - } - - void DrawInspector() - { - string[] exclude = scriptMode; - - if (targetScript.fogMode == FogMode.UsePresetSettings) - { - exclude = presetMode; - } - else if (targetScript.fogMode == FogMode.UseTimeOfDay) - { - exclude = timeOfDayMode; - } - - serializedObject.Update(); - - DrawPropertiesExcluding(serializedObject, exclude); - - serializedObject.ApplyModifiedProperties(); - } - } -} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta deleted file mode 100644 index 9dee906a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogGlobalInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5742a0fb70ce25846bc3269f9cdcf0cc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs deleted file mode 100644 index 624b8446..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.StyledGUI; -using Boxophobic.Utils; -using System.IO; - -namespace AtmosphericHeightFog -{ - public class HeightFogHub : EditorWindow - { -#if UNITY_2019_3_OR_NEWER - const int GUI_HEIGHT = 18; -#else - const int GUI_HEIGHT = 14; -#endif - - string folderAsset = "Assets/BOXOPHOBIC/Atmospheric Height Fog"; - - string[] pipelinePaths; - string[] pipelineOptions; - string pipelinesPath; - int pipelineIndex; - - int assetVersion; - string bannerVersion; - - GUIStyle stylePopup; - - Color bannerColor; - string bannerText; - string helpURL; - static HeightFogHub window; - //Vector2 scrollPosition = Vector2.zero; - - [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Hub", false, 1000)] - public static void ShowWindow() - { - window = GetWindow(false, "Atmospheric Height Fog", true); - window.minSize = new Vector2(389, 220); - } - - void OnEnable() - { - bannerColor = new Color(0.55f, 0.7f, 1f); - bannerText = "Atmospheric Height Fog"; - helpURL = "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.hbq3w8ae720x"; - - //Safer search, there might be many user folders - string[] searchFolders; - - searchFolders = AssetDatabase.FindAssets("Atmospheric Height Fog"); - - for (int i = 0; i < searchFolders.Length; i++) - { - if (AssetDatabase.GUIDToAssetPath(searchFolders[i]).EndsWith("Atmospheric Height Fog.pdf")) - { - folderAsset = AssetDatabase.GUIDToAssetPath(searchFolders[i]); - folderAsset = folderAsset.Replace("/Atmospheric Height Fog.pdf", ""); - } - } - - pipelinesPath = folderAsset + "/Core/Pipelines"; - - GetPackages(); - - assetVersion = SettingsUtils.LoadSettingsData(folderAsset + "/Core/Editor/Version.asset", -99); - bannerVersion = assetVersion.ToString(); - bannerVersion = bannerVersion.Insert(1, "."); - bannerVersion = bannerVersion.Insert(3, "."); - - bannerColor = new Color(0.55f, 0.7f, 1f); - bannerText = "Atmospheric Height Fog " + bannerVersion; - } - - void OnGUI() - { - SetGUIStyles(); - - StyledGUI.DrawWindowBanner(bannerColor, bannerText, helpURL); - - GUILayout.BeginHorizontal(); - GUILayout.Space(20); - - GUILayout.BeginVertical(); - - //scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, false, GUILayout.Width(this.position.width - 28), GUILayout.Height(this.position.height - 80)); - - EditorGUILayout.HelpBox("Click the Import Render Pipeline to switch to another render pipeline. For Universal Render Pipeline, follow the instructions below to enable the fog rendering!", MessageType.Info, true); - - if (pipelineOptions[pipelineIndex].Contains("Universal 7.1.8")) - { - EditorGUILayout.HelpBox("For Universal 7.1.8+ Pipeline, Depth Texture and one of the following features need to be enabled for the depth to work properly: Opaque Texure, HDR or Post Processing!", MessageType.Info, true); - } - - if (pipelineOptions[pipelineIndex].Contains("Universal 7.4.1")) - { - EditorGUILayout.HelpBox("For Universal 7.4.1+ Pipeline, Depth Texture need to be enabled on the render pipeline asset!", MessageType.Info, true); - } - - DrawInterface(); - - //GUILayout.EndScrollView(); - - GUILayout.EndVertical(); - - GUILayout.Space(13); - GUILayout.EndHorizontal(); - } - - void SetGUIStyles() - { - stylePopup = new GUIStyle(EditorStyles.popup) - { - alignment = TextAnchor.MiddleCenter - }; - } - - void DrawInterface() - { - GUILayout.Space(10); - - GUILayout.BeginHorizontal(); - EditorGUILayout.LabelField(new GUIContent("Render Pipeline", ""), GUILayout.Width(220)); - pipelineIndex = EditorGUILayout.Popup(pipelineIndex, pipelineOptions, stylePopup); - if (GUILayout.Button("Import", GUILayout.Width(80), GUILayout.Height(GUI_HEIGHT))) - { - ImportPackage(); - - GUIUtility.ExitGUI(); - } - GUILayout.EndHorizontal(); - } - - void GetPackages() - { - pipelinePaths = Directory.GetFiles(pipelinesPath, "*.unitypackage", SearchOption.TopDirectoryOnly); - - pipelineOptions = new string[pipelinePaths.Length]; - - for (int i = 0; i < pipelineOptions.Length; i++) - { - pipelineOptions[i] = Path.GetFileNameWithoutExtension(pipelinePaths[i].Replace("Built-in Pipeline", "Standard")); - } - } - - void ImportPackage() - { - AssetDatabase.ImportPackage(pipelinePaths[pipelineIndex], true); - AssetDatabase.SaveAssets(); - AssetDatabase.Refresh(); - - Debug.Log("[Atmospheric Height Fog] " + pipelineOptions[pipelineIndex] + " package imported in your project!"); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta deleted file mode 100644 index 6a7dc147..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogHub.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 094779c9d6df2bd478d3045d5a486647 -timeCreated: 1538943308 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs deleted file mode 100644 index 3de6f79a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs +++ /dev/null @@ -1,45 +0,0 @@ - -using UnityEditor; - -namespace AtmosphericHeightFog -{ - [CanEditMultipleObjects] - [CustomEditor(typeof(HeightFogOverride))] - public class HeightFogOverrideInspector : Editor - { - readonly string[] scriptMode = { "m_Script", "presetMaterial", "presetDay", "presetNight", "timeOfDay" }; - readonly string[] presetMode = { "m_Script", "presetDay", "presetNight", "timeOfDay", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; - readonly string[] timeOfDayMode = { "m_Script", "presetMaterial", "categoryFog", "fogIntensity", "fogAxisMode", "fogLayersMode", "fogColorStart", "fogColorEnd", "fogColorDuo", "fogDistanceStart", "fogDistanceEnd", "fogDistanceFalloff", "fogHeightStart", "fogHeightEnd", "fogHeightFalloff", "categorySkybox", "skyboxFogIntensity", "skyboxFogHeight", "skyboxFogFalloff", "skyboxFogFill", "categoryDirectional", "directionalIntensity", "directionalFalloff", "directionalColor", "categoryNoise", "noiseMode", "noiseIntensity", "noiseDistanceEnd", "noiseScale", "noiseSpeed" }; - HeightFogOverride targetScript; - - void OnEnable() - { - targetScript = (HeightFogOverride)target; - } - - public override void OnInspectorGUI() - { - DrawInspector(); - } - - void DrawInspector() - { - string[] exclude = scriptMode; - - if (targetScript.fogMode == FogMode.UsePresetSettings) - { - exclude = presetMode; - } - else if (targetScript.fogMode == FogMode.UseTimeOfDay) - { - exclude = timeOfDayMode; - } - - serializedObject.Update(); - - DrawPropertiesExcluding(serializedObject, exclude); - - serializedObject.ApplyModifiedProperties(); - } - } -} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta deleted file mode 100644 index 296414df..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogOverrideInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4fd498d1bc844c447b1f09b2d746282e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs deleted file mode 100644 index 91252ba1..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs +++ /dev/null @@ -1,61 +0,0 @@ -//Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -public class HeightFogShaderGUI : ShaderGUI -{ - Material material; - - public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props) - { - base.OnGUI(materialEditor, props); - - material = materialEditor.target as Material; - - SetBlendProps(); - } - - void SetBlendProps() - { - if (material.HasProperty("_FogAxisMode")) - { - if (material.GetInt("_FogAxisMode") == 0) - { - material.SetVector("_FogAxisOption", new Vector4(1, 0, 0, 0)); - } - else if (material.GetInt("_FogAxisMode") == 1) - { - material.SetVector("_FogAxisOption", new Vector4(0, 1, 0, 0)); - } - else if (material.GetInt("_FogAxisMode") == 2) - { - material.SetVector("_FogAxisOption", new Vector4(0, 0, 1, 0)); - } - } - - if (material.HasProperty("_DirectionalMode")) - { - if (material.GetInt("_DirectionalMode") == 0) - { - material.SetFloat("_DirectionalModeBlend", 0.0f); - } - else if (material.GetInt("_DirectionalMode") == 1) - { - material.SetFloat("_DirectionalModeBlend", 1.0f); - } - } - - if (material.HasProperty("_NoiseMode")) - { - if (material.GetInt("_NoiseMode") == 0) - { - material.SetFloat("_NoiseModeBlend", 0.0f); - } - else if (material.GetInt("_NoiseMode") == 2) - { - material.SetFloat("_NoiseModeBlend", 1.0f); - } - } - } -} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta deleted file mode 100644 index cd445575..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogShaderGUI.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fefeae948a42a964faad5fe6c75c59de -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs deleted file mode 100644 index bb6b0e2b..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEditor; -using UnityEngine; - -namespace AtmosphericHeightFog -{ - public static class HeightFogWindows - { - - [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Publisher Page", false, 2000)] - public static void MoreAssets() - { - Application.OpenURL("https://assetstore.unity.com/publishers/20529"); - } - - [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Discord Server", false, 2001)] - public static void Discord() - { - Application.OpenURL("https://discord.com/invite/znxuXET"); - } - - [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Documentation", false, 2002)] - public static void Documentation() - { - Application.OpenURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#"); - } - - [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Changelog", false, 2003)] - public static void Chnagelog() - { - Application.OpenURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.1rbujejuzjce"); - } - - [MenuItem("Window/BOXOPHOBIC/Atmospheric Height Fog/Write A Review", false, 3001)] - public static void WriteAReview() - { - Application.OpenURL("https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/atmospheric-height-fog-optimized-fog-shaders-for-consoles-mobile-143825#reviews"); - } - } -} - - diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta deleted file mode 100644 index 48557f75..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/HeightFogWindows.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5fcdedd08e41e034790d1fa393bcb67e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset deleted file mode 100644 index d45e51c2..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset +++ /dev/null @@ -1,15 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 93308045fbb3c5e42ba5ccb66d848632, type: 3} - m_Name: Version - m_EditorClassIdentifier: - data: 181 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta deleted file mode 100644 index ccb072a9..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Editor/Version.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 41b457a34c9fb7f45a332c79a90945b5 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta deleted file mode 100644 index 2d4efe11..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 48889f68c6d6ca24c8ddb247c6cd0a50 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset deleted file mode 100644 index 06d67a07..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset +++ /dev/null @@ -1,48 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Apply Height Fog - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18103\n1927;1;1906;1020;2237.796;1103.186;1;True;False\nNode;AmplifyShaderEditor.FunctionNode;92;-1664,-640;Inherit;False;Base;-1;;836;13c50910e5b86de4097e1181ba121e0e;2,99,0,116,0;0;3;FLOAT4;113;FLOAT3;86;FLOAT;87\nNode;AmplifyShaderEditor.LerpOp;82;-1344,-768;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionInput;81;-1664,-768;Inherit;False;Color;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;87;-1344,-576;Inherit;False;False;-1;Fog - Alpha;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;86;-1344,-640;Inherit;False;False;-1;Fog - Color;1;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;85;-896,-768;Inherit;False;True;-1;Fog - Applied;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CommentaryNode;56;-1664,-896;Inherit;False;890.9961;100;Final - Pass;0;;0.684,1,0,1;0;0\nWireConnection;82;0;81;0\nWireConnection;82;1;92;86\nWireConnection;82;2;92;87\nWireConnection;87;0;92;87\nWireConnection;86;0;92;86\nWireConnection;85;0;82;0\nASEEND*/\n//CHKSM=4A9132F03100914AF35678CB0005EE78ACFFC33B" - m_functionName: - m_description: "Use this function to apply fog on transparent or custom UI shaders - made with Amplify Shader Editor. \n\no Surface Shaders\nWhen using Surface Shaders - or Lightweight PBR template, connect the function to the Emission port. If Emission - is used, pass the emission color through the Apply Height Fog node.\n\no Fragment - Shaders:\nWhen Unlit or custom UI shaders are used, pass the final color through - the Apply Height Fog node.\n" - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 1 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 3 - m_customNodeCategory: - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta deleted file mode 100644 index 059aa075..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 950890317d4f36a48a68d150cdab0168 -timeCreated: 1570688044 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph deleted file mode 100644 index 58eed054..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph +++ /dev/null @@ -1,80 +0,0 @@ -{ - "m_SerializedProperties": [ - { - "typeInfo": { - "fullName": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty" - }, - "JSONnodeData": "{\n \"m_Guid\": {\n \"m_GuidSerialized\": \"b69cb30a-0386-457b-91f6-f0e92944efd1\"\n },\n \"m_Name\": \"Color\",\n \"m_DefaultReferenceName\": \"Vector3_99F0267D\",\n \"m_OverrideReferenceName\": \"\",\n \"m_GeneratePropertyBlock\": true,\n \"m_Precision\": 2,\n \"m_GPUInstanced\": false,\n \"m_Hidden\": false,\n \"m_Value\": {\n \"x\": 0.0,\n \"y\": 0.0,\n \"z\": 0.0,\n \"w\": 0.0\n }\n}" - } - ], - "m_SerializedKeywords": [], - "m_SerializableNodes": [ - { - "typeInfo": { - "fullName": "UnityEditor.ShaderGraph.SubGraphOutputNode" - }, - "JSONnodeData": "{\n \"m_GuidSerialized\": \"0c52e981-24f8-4615-892c-8ee0ff31b125\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Out_Vector3\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 314.0,\n \"y\": -43.0,\n \"width\": 138.0,\n \"height\": 77.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 0,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n }\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.ShaderGraph.CustomFunctionNode" - }, - "JSONnodeData": "{\n \"m_GuidSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Custom Function\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 31.0,\n \"y\": -40.0,\n \"width\": 208.0,\n \"height\": 302.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector4MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"FogParams\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"FogParams\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 2,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_SourceType\": 0,\n \"m_FunctionName\": \"ApplyAtmosphericHeightFog\",\n \"m_FunctionSource\": \"8db8edf9bba0e9d48998019ca6c2f9ff\",\n \"m_FunctionBody\": \"Enter function body here...\"\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.ShaderGraph.CustomFunctionNode" - }, - "JSONnodeData": "{\n \"m_GuidSerialized\": \"5f79ad2f-fb08-4321-acfc-cff0d1d60256\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Custom Function\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -312.0,\n \"y\": -39.0,\n \"width\": 251.0,\n \"height\": 278.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"World Position\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"WorldPosition\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector4MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"FogParams\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"FogParams\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n }\n ],\n \"m_Precision\": 2,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_SourceType\": 0,\n \"m_FunctionName\": \"GetAtmosphericHeightFog\",\n \"m_FunctionSource\": \"8db8edf9bba0e9d48998019ca6c2f9ff\",\n \"m_FunctionBody\": \"Enter function body here...\"\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.ShaderGraph.PositionNode" - }, - "JSONnodeData": "{\n \"m_GuidSerialized\": \"93da892c-c65f-436e-ac74-72d9b2e81019\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Position\",\n \"m_NodeVersion\": 1,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -612.0,\n \"y\": -41.0,\n \"width\": 208.0,\n \"height\": 314.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 1,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_Space\": 2\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.ShaderGraph.PropertyNode" - }, - "JSONnodeData": "{\n \"m_GuidSerialized\": \"3638eeb4-65bf-40a4-add7-73b2625238d6\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Property\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -169.0,\n \"y\": -112.0,\n \"width\": 109.0,\n \"height\": 34.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 2,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n },\n \"m_PropertyGuidSerialized\": \"b69cb30a-0386-457b-91f6-f0e92944efd1\"\n}" - } - ], - "m_Groups": [], - "m_StickyNotes": [], - "m_SerializableEdges": [ - { - "typeInfo": { - "fullName": "UnityEditor.Graphing.Edge" - }, - "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"5f79ad2f-fb08-4321-acfc-cff0d1d60256\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\"\n }\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.Graphing.Edge" - }, - "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"93da892c-c65f-436e-ac74-72d9b2e81019\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"5f79ad2f-fb08-4321-acfc-cff0d1d60256\"\n }\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.Graphing.Edge" - }, - "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"0c52e981-24f8-4615-892c-8ee0ff31b125\"\n }\n}" - }, - { - "typeInfo": { - "fullName": "UnityEditor.Graphing.Edge" - }, - "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"3638eeb4-65bf-40a4-add7-73b2625238d6\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"2b9df15b-091f-42a7-8b60-5e2c7c9e6d9b\"\n }\n}" - } - ], - "m_PreviewData": { - "serializedMesh": { - "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", - "m_Guid": "" - } - }, - "m_Path": "Sub Graphs", - "m_ConcretePrecision": 1, - "m_ActiveOutputNodeGuidSerialized": "" -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta deleted file mode 100644 index ab4ae13e..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Apply Height Fog.shadersubgraph.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 6a18ef2b21b74fd4ca138cce8d47eaa5 -ScriptedImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 2 - userData: - assetBundleName: - assetBundleVariant: - script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset deleted file mode 100644 index cb708f5a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset +++ /dev/null @@ -1,67 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Base - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18103\n1927;7;1906;1014;1218.944;-5991.897;1;True;False\nNode;AmplifyShaderEditor.ScreenDepthNode;227;-1664,1536;Inherit;False;1;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SwizzleNode;234;-1408,1376;Inherit;False;FLOAT2;0;1;2;3;1;0;FLOAT4;0,0,0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.DynamicAppendNode;233;1344,1376;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.SwizzleNode;32;-1408,-1408;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.WorldPosInputsNode;1;-1664,3072;Float;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DynamicAppendNode;114;1024,-1024;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.GetLocalVarNode;254;-1664,3200;Inherit;False;253;WorldPositionFromDepth;1;0;OBJECT;;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;232;704,1792;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;248;-1024,1280;Inherit;False;FLOAT2;1;0;FLOAT2;0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.SimpleDivideOpNode;196;-1408,8064;Inherit;False;2;0;FLOAT;1;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;236;832,1280;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.WorldPosInputsNode;231;384,1952;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;194;-1280,8192;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;102;-1152,3200;Inherit;False;Screen - Space;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;199;-704,7936;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0.5;False;2;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;222;2560,1280;Inherit;False;4;0;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;239;2048,1280;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;244;-704,1280;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;10;-1024,8192;Inherit;False;7;NoiseDistanceMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;245;1760,1280;Inherit;False;FLOAT4;1;0;FLOAT4;0,0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.UnityObjToClipPosHlpNode;224;576,2176;Inherit;False;1;0;FLOAT3;0,0,0;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.GetLocalVarNode;21;-1664,-304;Inherit;False;16;FogHeightMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;279;-1248,-1024;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;216;2048,1792;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;302;-1408,-1024;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;19;-1664,-384;Inherit;False;12;FogDistanceMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CameraProjectionNode;238;-192,1280;Inherit;False;unity_CameraInvProjection;0;1;FLOAT4x4;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;243;1600,1280;Inherit;False;2;2;0;FLOAT4x4;0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;229;384,1280;Inherit;False;FLOAT4;1;0;FLOAT4;0,0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.CustomExpressionNode;235;-1408,1280;Inherit;False;#if - UNITY_SINGLE_PASS_STEREO$$float4 scaleOffset = unity_StereoScaleOffset[ unity_StereoEyeIndex]@$UV.xy - = (UV.xy - scaleOffset.zw) / scaleOffset.xy@$$#endif$$return UV@;2;False;1;True;UV;FLOAT2;0,0;In;;Float;False;UnStereo;False;False;0;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;230;384,1792;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.LerpOp;258;-256,-1408;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.OneMinusNode;251;-1408,1616;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;256;832,-1408;Inherit;False;Handle - Color Space;-1;;859;f6f44b689bae74d47a0885dbe3018c48;0;1;2;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;253;2800,1280;Float;False;WorldPositionFromDepth;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;260;-1664,-1024;Inherit;False;12;FogDistanceMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;217;1184,2176;Inherit;False;FLOAT4;1;0;FLOAT4;0,0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;219;1664,1792;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;249;-448,1280;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT;2;False;2;FLOAT;-1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;39;320,-128;Half;False;Global;AHF_FogIntensity;AHF_FogIntensity;3;1;[HideInInspector];Create;False;0;0;False;0;False;1;1;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;112;128,-256;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitch;99;-640,3072;Inherit;False;World - Position;False;0;2;-1;World Space;Screen Space;Object;-1;9;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;28;-896,-128;Inherit;False;24;NoiseSimplex3D;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;111;-256,-256;Inherit;False;108;SkyboxFogHeightMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;330;-1280,-256;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.ComputeScreenPosHlpNode;225;896,2176;Inherit;False;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;316;-1664,6336;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.StaticSwitch;42;-256,-384;Float;False;Property;AHF_NOISEMODE;AHF_NoiseMode;14;0;Create;False;0;0;False;0;False;1;0;0;False;;KeywordEnum;2;_OFF;_PROCEDURAL3D;Create;False;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;161;-2688,1280;Half;False;Global;AHF_FogAxisOption;AHF_FogAxisOption;0;0;Create;True;0;0;False;0;False;0,0,0;0,1,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.Vector3Node;307;-1664,6528;Half;False;Global;AHF_DirectionalDir;AHF_DirectionalDir;0;0;Create;True;0;0;False;0;False;0,0,0;0.7081007,0.2823132,0.6472192;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.RangedFloatNode;329;-1280,-128;Half;False;Global;AHF_FogLayersMode;AHF_FogLayersMode;0;0;Create;True;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;181;-2400,1280;Half;False;AHF_FogAxisOption;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSwitch;116;320,-384;Inherit;False;Option;False;0;2;-1;In - 0;In 1;Instance;99;9;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;300;-1664,-896;Half;False;Global;AHF_FogColorDuo;AHF_FogColorDuo;0;0;Create;True;0;0;False;0;False;1;0;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.ColorNode;26;-1664,-1408;Half;False;Global;AHF_FogColorStart;AHF_FogColorStart;4;0;Create;False;0;0;False;0;False;0.4411765,0.722515,1,0;0.5,0.75,1,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;205;-1280,7936;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;110;-256,-128;Inherit;False;95;SkyboxMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;201;-1664,8192;Half;False;Global;AHF_NoiseSpeed;AHF_NoiseSpeed;16;0;Create;False;0;0;False;0;False;0.5,0.5,0;0.5,0,0.5;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.ScreenPosInputsNode;241;-1664,1280;Float;False;0;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;215;1920,1984;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScreenDepthNode;218;1664,1984;Inherit;False;0;True;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;9;-1664,7936;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;237;640,1280;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;247;1152,1280;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;1,1,-1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CameraToWorldMatrix;240;1344,1280;Inherit;False;0;1;FLOAT4x4;0\nNode;AmplifyShaderEditor.CustomExpressionNode;226;2304,1408;Inherit;False;float3 - result = _731@$#if ASE_SRP_VERSION > 70301$result = _741@$#endif$return result@;3;False;2;True;_731;FLOAT3;0,0,0;In;;Inherit;False;True;_741;FLOAT3;0,0,0;In;;Inherit;False;Depth - By Version;True;False;0;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ColorNode;255;-1664,-1216;Half;False;Global;AHF_FogColorEnd;AHF_FogColorEnd;4;0;Create;False;0;0;False;0;False;0.4411765,0.722515,1,0;0.75,1,1.25,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;43;640,-384;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;37;-448,-256;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;223;1664,2080;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;207;-1664,8064;Half;False;Global;AHF_NoiseScale;AHF_NoiseScale;15;0;Create;False;0;0;False;0;False;6;30;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;246;-1248,1280;Inherit;False;4;0;FLOAT;0;False;3;FLOAT2;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;242;128,1280;Inherit;False;2;2;0;FLOAT4x4;0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.PosVertexDataNode;228;384,2176;Inherit;False;0;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.StaticSwitch;250;-1024,1536;Float;False;Property;_Keyword1;Keyword - 1;3;0;Fetch;True;0;0;False;0;False;0;0;0;False;UNITY_REVERSED_Z;Toggle;2;Key0;Key1;Fetch;False;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;152;-1280,3776;Half;False;Global;AHF_FogDistanceEnd;AHF_FogDistanceEnd;4;0;Create;False;0;0;False;0;False;30;100;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;198;-384,7936;Inherit;False;3;0;FLOAT;1;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DynamicAppendNode;220;-192,1408;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.SaturateNode;155;-640,3584;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;12;432,3584;Half;False;FogDistanceMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;153;-896,3584;Inherit;False;Remap - To 0-1;-1;;860;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;289;-640,3712;Half;False;Global;AHF_FogDistanceFalloff;AHF_FogDistanceFalloff;3;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;4;-1664,3584;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DistanceOpNode;151;-1280,3584;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;157;-1280,3712;Half;False;Global;AHF_FogDistanceStart;AHF_FogDistanceStart;3;0;Create;False;0;0;False;0;False;0;-100;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;8;-1664,4096;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.PowerNode;288;-128,3584;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;159;-1216,4096;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.RegisterLocalVarNode;16;432,4096;Half;False;FogHeightMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DotProductOpNode;145;-832,6272;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;167;-512,4096;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;162;-1408,4096;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;164;-1216,4224;Half;False;Global;AHF_FogHeightEnd;AHF_FogHeightEnd;6;0;Create;False;0;0;False;0;False;0;100;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;160;-960,4096;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;324;-384,3584;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;165;-704,4096;Inherit;False;Remap - To 0-1;-1;;857;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;154;-1664,3712;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.GetLocalVarNode;183;-1664,4224;Inherit;False;181;AHF_FogAxisOption;1;0;OBJECT;;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NoiseGeneratorNode;193;-960,7936;Inherit;False;Simplex3D;False;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;166;-1216,4288;Half;False;Global;AHF_FogHeightStart;AHF_FogHeightStart;5;0;Create;False;0;0;False;0;False;5;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;322;-320,4096;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;290;-512,4224;Half;False;Global;AHF_FogHeightFalloff;AHF_FogHeightFalloff;6;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.PowerNode;291;-128,4096;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;170;-1152,5392;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.SaturateNode;176;-448,5392;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;108;384,5392;Half;False;SkyboxFogHeightMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;326;192,5392;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;106;-1664,5392;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;173;-1280,5392;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;169;-1440,5392;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionNode;178;-640,5392;Inherit;False;Remap - To 0-1;-1;;856;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;180;-768,5392;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;179;-32,5392;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;1;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;323;-304,5392;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.OneMinusNode;124;-1408,4992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;171;-896,5392;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.PowerNode;309;-176,5392;Inherit;False;True;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;95;448,4992;Half;False;SkyboxMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CeilOpNode;121;-832,4992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;203;-704,8192;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.NormalizeNode;318;-1152,6272;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StaticSwitch;123;-1152,4992;Float;False;Property;_Keyword3;Keyword - 3;3;0;Fetch;True;0;0;False;0;False;0;0;0;False;UNITY_REVERSED_Z;Toggle;2;Key0;Key1;Fetch;False;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;310;-768,5568;Half;False;Global;AHF_SkyboxFogFalloff;AHF_SkyboxFogFalloff;3;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSubtitle;101;-1152,3072;Inherit;False;World - Space;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScreenDepthNode;118;-1664,4992;Inherit;False;1;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.OneMinusNode;122;-640,4992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;175;-1152,5568;Half;False;Global;AHF_SkyboxFogHeight;AHF_SkyboxFogHeight;8;0;Create;False;0;0;False;0;False;1;1;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;7;416,7424;Half;False;NoiseDistanceMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;327;-64,5568;Half;False;Global;AHF_SkyboxFogIntensity;AHF_SkyboxFogIntensity;9;0;Create;False;0;0;False;0;False;0;1;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;221;832,1408;Half;False;Constant;_Vector1;Vector - 1;9;0;Create;True;0;0;False;0;False;1,1,-1;0,0,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.PowerNode;319;0,6272;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;139;-640,6496;Half;False;Global;AHF_DirectionalModeBlend;AHF_DirectionalModeBlend;4;0;Create;False;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SwizzleNode;257;-1408,-1216;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;305;-1024,-1024;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;2;448,3072;Float;False;WorldPosition;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;189;-1216,7552;Half;False;Global;AHF_NoiseDistanceEnd;AHF_NoiseDistanceEnd;13;0;Create;False;0;0;False;0;False;10;50;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;315;-1664,6272;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;317;-1344,6272;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;30;432,6272;Half;False;DirectionalMask;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;140;-320,6272;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;3;-1664,7424;Inherit;False;2;WorldPosition;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;149;-640,6272;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0.5;False;2;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleTimeNode;204;-1664,8352;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;200;-1024,8320;Half;False;Global;AHF_NoiseModeBlend;AHF_NoiseModeBlend;11;0;Create;False;0;0;False;0;False;0.5;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;197;-1088,7936;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;195;-1024,8256;Half;False;Global;AHF_NoiseIntensity;AHF_NoiseIntensity;12;0;Create;False;0;0;False;0;False;0.5;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;187;-896,7424;Inherit;False;Remap - To 0-1;-1;;858;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;185;-640,7424;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;142;-640,6400;Half;False;Global;AHF_DirectionalIntensity;AHF_DirectionalIntensity;4;0;Create;False;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;190;-1664,7552;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DistanceOpNode;188;-1216,7424;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.AbsOpNode;325;-128,6272;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;177;-384,5568;Half;False;Global;AHF_SkyboxFogFill;AHF_SkyboxFogFill;9;0;Create;False;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;24;432,7936;Half;False;NoiseSimplex3D;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.NegateNode;206;-1408,8192;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;29;-1152,-384;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;182;-1664,5568;Inherit;False;181;AHF_FogAxisOption;1;0;OBJECT;;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.LerpOp;328;-896,-384;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;321;-256,6496;Half;False;Global;AHF_DirectionalFalloff;AHF_DirectionalFalloff;0;0;Create;True;0;0;False;0;False;1;8;1;8;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SaturateNode;331;-1152.185,-252.8735;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;40;384,-1408;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;35;-256,-960;Inherit;False;30;DirectionalMask;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.ColorNode;23;-256,-1216;Half;False;Global;AHF_DirectionalColor;AHF_DirectionalColor;12;0;Create;False;0;0;False;0;False;1,0.6300203,0.1617647,0;1,0.75,0.5,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SwizzleNode;31;0,-1216;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;113;1280,-1024;Inherit;False;True;-1;Fog - RGBA;0;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.FunctionOutput;87;1280,-384;Inherit;False;False;-1;Fog - Alpha;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;86;1280,-1408;Inherit;False;False;-1;Fog - Color;1;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CommentaryNode;61;-1664,3456;Inherit;False;2301.125;100;Fog - Distance;0;;0,0.5882353,1,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;252;-1664,1152;Inherit;False;4738.447;100;World - Position from Depth;0;;0,1,0,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;60;-1664,7808;Inherit;False;2301.726;100;Noise;0;;0.7529412,1,0.7529412,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;115;-1664,-1536;Inherit;False;3079.888;100;Final - Pass;0;;0.497,1,0,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;59;-1664,6144;Inherit;False;2307.506;100;Directional - Light Support;0;;1,0.634,0.1617647,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;184;-2688,1152;Inherit;False;516.5447;100;Register;0;;1,1,1,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;57;-1664,3968;Inherit;False;2307.752;100;Fog - Height;0;;0,0.5882353,1,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;98;-1664,2944;Inherit;False;2305.188;100;World - Position;0;;0,1,0,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;109;-1664,5264;Inherit;False;2303.083;100;Skybox - Fog Height;0;;0.7983367,0.1411765,0.8313726,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;97;-1664,4864;Inherit;False;2305.317;100;Skybox - Mask;0;;0.7983367,0.1411765,0.8313726,1;0;0\nNode;AmplifyShaderEditor.CommentaryNode;58;-1664,7296;Inherit;False;2300.478;100;Noise - Distance Mask;0;;0.7529412,1,0.7529412,1;0;0\nWireConnection;234;0;241;0\nWireConnection;233;0;247;0\nWireConnection;32;0;26;0\nWireConnection;114;0;256;0\nWireConnection;114;3;43;0\nWireConnection;232;0;230;0\nWireConnection;232;1;231;0\nWireConnection;248;0;246;0\nWireConnection;196;1;207;0\nWireConnection;236;0;237;0\nWireConnection;236;1;229;3\nWireConnection;194;0;206;0\nWireConnection;194;1;204;0\nWireConnection;102;0;254;0\nWireConnection;199;0;193;0\nWireConnection;222;3;239;0\nWireConnection;222;1;226;0\nWireConnection;239;0;245;0\nWireConnection;239;1;245;1\nWireConnection;239;2;245;2\nWireConnection;244;0;248;0\nWireConnection;244;1;248;1\nWireConnection;244;2;250;0\nWireConnection;245;0;243;0\nWireConnection;224;0;228;0\nWireConnection;279;0;302;0\nWireConnection;216;0;219;0\nWireConnection;216;1;215;0\nWireConnection;302;0;260;0\nWireConnection;243;0;240;0\nWireConnection;243;1;233;0\nWireConnection;229;0;242;0\nWireConnection;235;0;241;0\nWireConnection;258;0;32;0\nWireConnection;258;1;257;0\nWireConnection;258;2;305;0\nWireConnection;251;0;227;0\nWireConnection;256;2;40;0\nWireConnection;253;0;222;0\nWireConnection;217;0;225;0\nWireConnection;249;0;244;0\nWireConnection;112;0;42;0\nWireConnection;112;1;111;0\nWireConnection;112;2;110;0\nWireConnection;99;0;101;0\nWireConnection;99;1;102;0\nWireConnection;330;0;19;0\nWireConnection;330;1;21;0\nWireConnection;225;0;224;0\nWireConnection;42;1;328;0\nWireConnection;42;0;37;0\nWireConnection;181;0;161;0\nWireConnection;116;0;42;0\nWireConnection;116;1;112;0\nWireConnection;205;0;9;0\nWireConnection;205;1;196;0\nWireConnection;215;0;218;0\nWireConnection;215;1;223;0\nWireConnection;237;0;229;0\nWireConnection;237;1;229;1\nWireConnection;237;2;229;2\nWireConnection;247;0;236;0\nWireConnection;247;1;221;0\nWireConnection;226;0;239;0\nWireConnection;226;1;216;0\nWireConnection;43;0;116;0\nWireConnection;43;1;39;0\nWireConnection;37;0;328;0\nWireConnection;37;1;28;0\nWireConnection;223;0;232;0\nWireConnection;223;1;217;3\nWireConnection;246;3;235;0\nWireConnection;246;1;234;0\nWireConnection;242;0;238;0\nWireConnection;242;1;220;0\nWireConnection;250;1;227;0\nWireConnection;250;0;251;0\nWireConnection;198;1;199;0\nWireConnection;198;2;203;0\nWireConnection;220;0;249;0\nWireConnection;155;0;153;0\nWireConnection;12;0;288;0\nWireConnection;153;6;151;0\nWireConnection;153;7;157;0\nWireConnection;153;8;152;0\nWireConnection;151;0;4;0\nWireConnection;151;1;154;0\nWireConnection;288;0;324;0\nWireConnection;288;1;289;0\nWireConnection;159;0;162;0\nWireConnection;16;0;291;0\nWireConnection;145;0;318;0\nWireConnection;145;1;307;0\nWireConnection;167;0;165;0\nWireConnection;162;0;8;0\nWireConnection;162;1;183;0\nWireConnection;160;0;159;0\nWireConnection;160;1;159;1\nWireConnection;160;2;159;2\nWireConnection;324;0;155;0\nWireConnection;165;6;160;0\nWireConnection;165;7;164;0\nWireConnection;165;8;166;0\nWireConnection;193;0;197;0\nWireConnection;322;0;167;0\nWireConnection;291;0;322;0\nWireConnection;291;1;290;0\nWireConnection;170;0;173;0\nWireConnection;176;0;178;0\nWireConnection;108;0;326;0\nWireConnection;326;0;179;0\nWireConnection;326;1;327;0\nWireConnection;173;0;169;0\nWireConnection;173;1;182;0\nWireConnection;169;0;106;0\nWireConnection;178;6;180;0\nWireConnection;178;7;175;0\nWireConnection;180;0;171;0\nWireConnection;179;0;309;0\nWireConnection;179;2;177;0\nWireConnection;323;0;176;0\nWireConnection;124;0;118;0\nWireConnection;171;0;170;0\nWireConnection;171;1;170;1\nWireConnection;171;2;170;2\nWireConnection;309;0;323;0\nWireConnection;309;1;310;0\nWireConnection;95;0;122;0\nWireConnection;121;0;123;0\nWireConnection;203;0;10;0\nWireConnection;203;1;195;0\nWireConnection;203;2;200;0\nWireConnection;318;0;317;0\nWireConnection;123;1;124;0\nWireConnection;123;0;118;0\nWireConnection;101;0;1;0\nWireConnection;122;0;121;0\nWireConnection;7;0;185;0\nWireConnection;319;0;325;0\nWireConnection;319;1;321;0\nWireConnection;257;0;255;0\nWireConnection;305;0;279;0\nWireConnection;305;1;300;0\nWireConnection;2;0;99;0\nWireConnection;317;0;315;0\nWireConnection;317;1;316;0\nWireConnection;30;0;319;0\nWireConnection;140;0;149;0\nWireConnection;140;1;142;0\nWireConnection;149;0;145;0\nWireConnection;197;0;205;0\nWireConnection;197;1;194;0\nWireConnection;187;6;188;0\nWireConnection;187;7;189;0\nWireConnection;185;0;187;0\nWireConnection;188;0;3;0\nWireConnection;188;1;190;0\nWireConnection;325;0;140;0\nWireConnection;24;0;198;0\nWireConnection;206;0;201;0\nWireConnection;29;0;19;0\nWireConnection;29;1;21;0\nWireConnection;328;0;29;0\nWireConnection;328;1;331;0\nWireConnection;328;2;329;0\nWireConnection;331;0;330;0\nWireConnection;40;0;258;0\nWireConnection;40;1;31;0\nWireConnection;40;2;35;0\nWireConnection;31;0;23;0\nWireConnection;113;0;114;0\nWireConnection;87;0;43;0\nWireConnection;86;0;256;0\nASEEND*/\n//CHKSM=EEFA3F102F0396E6A76ED684B45F8594EC706EAE" - m_functionName: - m_description: - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 1 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 3 - m_customNodeCategory: - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta deleted file mode 100644 index fe610eef..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Base.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 13c50910e5b86de4097e1181ba121e0e -timeCreated: 1570688044 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset deleted file mode 100644 index 1a108235..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset +++ /dev/null @@ -1,40 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Compute Fog Distance - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17602\n1927;7;1906;1014;1393;657.5599;1;True;False\nNode;AmplifyShaderEditor.DistanceOpNode;3;-576,-384;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;5;-896,-64;Half;False;Global;AHF_FogDistanceEnd;AHF_FogDistanceEnd;4;0;Create;False;0;0;False;0;30;60;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;14;-384,-384;Inherit;False;Math - Remap To 0-2;-1;;545;e6e209ac370e7e74da13a6a97e315390;0;3;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldSpaceCameraPos;1;-896,-304;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.SaturateNode;7;-128,-384;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;13;-896,-384;Inherit;False;WorldPosition;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RangedFloatNode;4;-896,-144;Half;False;Global;AHF_FogDistanceStart;AHF_FogDistanceStart;3;0;Create;False;0;0;False;0;0;0;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;64,-384;Inherit;False;True;-1;FogDistanceMask;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;3;0;13;0\nWireConnection;3;1;1;0\nWireConnection;14;6;3;0\nWireConnection;14;7;4;0\nWireConnection;14;8;5;0\nWireConnection;7;0;14;0\nWireConnection;0;0;7;0\nASEEND*/\n//CHKSM=357410C3E110628DB9546DC90118EF40E90338B2" - m_functionName: - m_description: - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 0 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 3 - m_customNodeCategory: - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta deleted file mode 100644 index 7a4a8baf..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Compute Fog Distance.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: a5f090963b8f9394a984ee752ce42488 -timeCreated: 1570102705 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset deleted file mode 100644 index 49089035..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset +++ /dev/null @@ -1,38 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Handle Color Space - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17001\n1927;29;1906;1014;1516;524;1;True;False\nNode;AmplifyShaderEditor.FunctionInput;2;-896,0;Float;False;Color;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GammaToLinearNode;3;-640,-64;Float;False;0;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StaticSwitch;1;-384,0;Float;False;Property;_UNITY_COLORSPACE_GAMMA;UNITY_COLORSPACE_GAMMA;0;0;Create;True;0;0;False;0;0;0;0;False;UNITY_COLORSPACE_GAMMA;Toggle;2;Key0;Key1;Fetch;False;9;1;FLOAT3;0,0,0;False;0;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT3;0,0,0;False;5;FLOAT3;0,0,0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;0;0,0;Float;False;True;;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;3;0;2;0\nWireConnection;1;1;3;0\nWireConnection;1;0;2;0\nWireConnection;0;0;1;0\nASEEND*/\n//CHKSM=67013BC63C3B27E353374B5D4D247177010A5481" - m_functionName: - m_description: - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 0 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 3 - m_customNodeCategory: - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta deleted file mode 100644 index 542385ac..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Color Space.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: f6f44b689bae74d47a0885dbe3018c48 -timeCreated: 1568879410 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset deleted file mode 100644 index 1234aa1c..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset +++ /dev/null @@ -1,38 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Handle Tex Alpha - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17001\n1927;29;1906;1014;1219;513;1;True;False\nNode;AmplifyShaderEditor.CeilOpNode;4;-320,80;Float;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;2;-320,192;Float;False;Mask;1;1;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.LerpOp;3;-128,0;Float;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;1;-512,0;Float;False;Alpha;1;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;128,0;Float;False;True;;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;4;0;1;0\nWireConnection;3;0;1;0\nWireConnection;3;1;4;0\nWireConnection;3;2;2;0\nWireConnection;0;0;3;0\nASEEND*/\n//CHKSM=359A4287BBEDADC15949456D56D54270F350804C" - m_functionName: - m_description: - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 0 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 3 - m_customNodeCategory: - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta deleted file mode 100644 index 86a74997..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Handle Tex Alpha.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 92f31391e7f50294c9c2d8747c81d6b6 -timeCreated: 1568367025 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset deleted file mode 100644 index 2e760ea9..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset +++ /dev/null @@ -1,39 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Is Pipeline - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=17502\n1927;7;1906;1014;1238.301;483.1443;1;True;False\nNode;AmplifyShaderEditor.RangedFloatNode;4;-640,160;Half;False;Property;_IsHDPipeline;_IsHDPipeline;1;1;[HideInInspector];Create;False;0;0;True;0;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;5;-160,0;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;2;-640,0;Half;False;Property;_IsStandardPipeline;_IsStandardPipeline;0;1;[HideInInspector];Create;False;0;0;True;0;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;1;-384,0;Inherit;False;4;0;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;3;-640,80;Half;False;Property;_IsUniversalPipeline;_IsUniversalPipeline;2;1;[HideInInspector];Create;False;0;0;True;0;0;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;0,0;Inherit;False;True;-1;;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;5;0;1;0\nWireConnection;1;0;2;0\nWireConnection;1;3;2;0\nWireConnection;1;1;3;0\nWireConnection;1;2;4;0\nWireConnection;0;0;5;0\nASEEND*/\n//CHKSM=72B1DDE9D0321CEF3A35F69DAC1CF10E2B7944D7" - m_functionName: - m_description: - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 1 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 3 - m_customNodeCategory: - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta deleted file mode 100644 index 750fd52c..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Is Pipeline.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2b33d0c660fbdb24c98bea96428031b0 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset deleted file mode 100644 index 1c99d031..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset +++ /dev/null @@ -1,43 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3} - m_Name: Remap To 0-1 - m_EditorClassIdentifier: - m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset - Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=15407\n1927;29;1906;1014;1143.653;791.9193;1.377757;True;False\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;9;-128,-256;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;7;-384,-128;Float;False;Min - Old;1;1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;8;-384,-64;Float;False;Max - Old;1;2;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;10;-128,-128;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;6;-384,-256;Float;False;;1;0;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;11;128,-256;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;384,-256;Float;False;True;;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;9;0;6;0\nWireConnection;9;1;7;0\nWireConnection;10;0;8;0\nWireConnection;10;1;7;0\nWireConnection;11;0;9;0\nWireConnection;11;1;10;0\nWireConnection;0;0;11;0\nASEEND*/\n//CHKSM=3398A488E740D858EDB9E40C589BAF327735EC39" - m_functionName: - m_description: 'Remap to 0-1. - -' - m_additionalIncludes: - m_additionalIncludes: [] - m_outsideIncludes: [] - m_additionalPragmas: - m_additionalPragmas: [] - m_outsidePragmas: [] - m_additionalDirectives: - m_validData: 0 - m_isDirty: 0 - m_moduleName: ' Additional Directives' - m_independentModule: 1 - m_additionalDirectives: [] - m_shaderFunctionDirectives: [] - m_nativeDirectives: [] - m_nativeDirectivesIndex: -1 - m_nativeDirectivesFoldout: 0 - m_directivesSaveItems: [] - m_nodeCategory: 7 - m_customNodeCategory: Advanced Dynamic Shaders - m_previewPosition: 0 - m_hidden: 0 diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta deleted file mode 100644 index f6527e62..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Functions/Remap To 0-1.asset.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e6e209ac370e7e74da13a6a97e315390 -timeCreated: 1522076143 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta deleted file mode 100644 index ce34d0f8..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4f4c82780d0eded4a96850c8c7c1e08d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc deleted file mode 100644 index 4a1cb269..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc +++ /dev/null @@ -1,151 +0,0 @@ -/* - -// Add the following directives to your shader for directional and noise support - -#include "Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Library/AtmosphericHeightFog.cginc" -#pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D - -// Apply Atmospheric Height Fog to transparent shaders like this -// Where finalColor is the shader output color, fogParams.rgb is the fog color and fogParams.a is the fog mask - -float4 fogParams = GetAtmosphericHeightFog(i.worldPos); -return ApplyAtmosphericHeightFog(finalColor, fogParams); - -*/ - -#ifndef ATMOSPHERIC_HEIGHT_FOG_INCLUDED -#define ATMOSPHERIC_HEIGHT_FOG_INCLUDED - -#include "UnityCG.cginc" -#include "UnityShaderVariables.cginc" - -uniform half4 AHF_FogColorStart; -uniform half4 AHF_FogColorEnd; -uniform half AHF_FogDistanceStart; -uniform half AHF_FogDistanceEnd; -uniform half AHF_FogDistanceFalloff; -uniform half AHF_FogColorDuo; -uniform half4 AHF_DirectionalColor; -uniform half3 AHF_DirectionalDir; -uniform half AHF_DirectionalIntensity; -uniform half AHF_DirectionalFalloff; -uniform half3 AHF_FogAxisOption; -uniform half AHF_FogHeightEnd; -uniform half AHF_FogHeightStart; -uniform half AHF_FogHeightFalloff; -uniform half AHF_FogLayersMode; -uniform half AHF_NoiseScale; -uniform half3 AHF_NoiseSpeed; -uniform half AHF_NoiseDistanceEnd; -uniform half AHF_NoiseIntensity; -uniform half AHF_NoiseModeBlend; -uniform half AHF_FogIntensity; - -float3 mod3D289(float3 x) { return x - floor(x / 289.0) * 289.0; } -float4 mod3D289(float4 x) { return x - floor(x / 289.0) * 289.0; } -float4 permute(float4 x) { return mod3D289((x * 34.0 + 1.0) * x); } -float4 taylorInvSqrt(float4 r) { return 1.79284291400159 - r * 0.85373472095314; } - -float snoise(float3 v) -{ - const float2 C = float2(1.0 / 6.0, 1.0 / 3.0); - float3 i = floor(v + dot(v, C.yyy)); - float3 x0 = v - i + dot(i, C.xxx); - float3 g = step(x0.yzx, x0.xyz); - float3 l = 1.0 - g; - float3 i1 = min(g.xyz, l.zxy); - float3 i2 = max(g.xyz, l.zxy); - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - i = mod3D289(i); - float4 p = permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0)) + i.y + float4(0.0, i1.y, i2.y, 1.0)) + i.x + float4(0.0, i1.x, i2.x, 1.0)); - float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7) - float4 x_ = floor(j / 7.0); - float4 y_ = floor(j - 7.0 * x_); // mod(j,N) - float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0; - float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0; - float4 h = 1.0 - abs(x) - abs(y); - float4 b0 = float4(x.xy, y.xy); - float4 b1 = float4(x.zw, y.zw); - float4 s0 = floor(b0) * 2.0 + 1.0; - float4 s1 = floor(b1) * 2.0 + 1.0; - float4 sh = -step(h, 0.0); - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 g0 = float3(a0.xy, h.x); - float3 g1 = float3(a0.zw, h.y); - float3 g2 = float3(a1.xy, h.z); - float3 g3 = float3(a1.zw, h.w); - float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3))); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0); - m = m * m; - m = m * m; - float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3)); - return 42.0 * dot(m, px); -} - -// Returns the fog color and alpha based on world position -float4 GetAtmosphericHeightFog(float3 positionWS) -{ - float4 finalColor; - - float3 WorldPosition = positionWS; - - float3 WorldPosition2_g1 = WorldPosition; - float temp_output_7_0_g860 = AHF_FogDistanceStart; - half FogDistanceMask12_g1 = pow(abs(saturate(((distance(WorldPosition2_g1, _WorldSpaceCameraPos) - temp_output_7_0_g860) / (AHF_FogDistanceEnd - temp_output_7_0_g860)))), AHF_FogDistanceFalloff); - float3 lerpResult258_g1 = lerp((AHF_FogColorStart).rgb, (AHF_FogColorEnd).rgb, (saturate((FogDistanceMask12_g1 - 0.5)) * AHF_FogColorDuo)); - float3 normalizeResult318_g1 = normalize((WorldPosition2_g1 - _WorldSpaceCameraPos)); - float dotResult145_g1 = dot(normalizeResult318_g1, AHF_DirectionalDir); - half DirectionalMask30_g1 = pow(abs(((dotResult145_g1*0.5 + 0.5) * AHF_DirectionalIntensity)), AHF_DirectionalFalloff); - float3 lerpResult40_g1 = lerp(lerpResult258_g1, (AHF_DirectionalColor).rgb, DirectionalMask30_g1); - float3 temp_output_2_0_g859 = lerpResult40_g1; - float3 gammaToLinear3_g859 = GammaToLinearSpace(temp_output_2_0_g859); -#ifdef UNITY_COLORSPACE_GAMMA - float3 staticSwitch1_g859 = temp_output_2_0_g859; -#else - float3 staticSwitch1_g859 = gammaToLinear3_g859; -#endif - float3 temp_output_256_0_g1 = staticSwitch1_g859; - half3 AHF_FogAxisOption181_g1 = AHF_FogAxisOption; - float3 break159_g1 = (WorldPosition2_g1 * AHF_FogAxisOption181_g1); - float temp_output_7_0_g861 = AHF_FogHeightEnd; - half FogHeightMask16_g1 = pow(abs(saturate((((break159_g1.x + break159_g1.y + break159_g1.z) - temp_output_7_0_g861) / (AHF_FogHeightStart - temp_output_7_0_g861)))), AHF_FogHeightFalloff); - float lerpResult328_g1 = lerp((FogDistanceMask12_g1 * FogHeightMask16_g1), saturate((FogDistanceMask12_g1 + FogHeightMask16_g1)), AHF_FogLayersMode); - float simplePerlin3D193_g1 = snoise(((WorldPosition2_g1 * (1.0 / AHF_NoiseScale)) + (-AHF_NoiseSpeed * _Time.y))); - float temp_output_7_0_g863 = AHF_NoiseDistanceEnd; - half NoiseDistanceMask7_g1 = saturate(((distance(WorldPosition2_g1, _WorldSpaceCameraPos) - temp_output_7_0_g863) / (0.0 - temp_output_7_0_g863))); - float lerpResult198_g1 = lerp(1.0, (simplePerlin3D193_g1*0.5 + 0.5), (NoiseDistanceMask7_g1 * AHF_NoiseIntensity * AHF_NoiseModeBlend)); - half NoiseSimplex3D24_g1 = lerpResult198_g1; -#if defined(AHF_NOISEMODE_OFF) - float staticSwitch42_g1 = lerpResult328_g1; -#elif defined(AHF_NOISEMODE_PROCEDURAL3D) - float staticSwitch42_g1 = (lerpResult328_g1 * NoiseSimplex3D24_g1); -#else - float staticSwitch42_g1 = lerpResult328_g1; -#endif - float temp_output_43_0_g1 = (staticSwitch42_g1 * AHF_FogIntensity); - float4 appendResult114_g1 = (float4(temp_output_256_0_g1, temp_output_43_0_g1)); - - - finalColor = appendResult114_g1; - return finalColor; -} - -// Applies the fog -float3 ApplyAtmosphericHeightFog(float3 color, float4 fog) -{ - return float3(lerp(color.rgb, fog.rgb, fog.a)); -} - -float4 ApplyAtmosphericHeightFog(float4 color, float4 fog) -{ - return float4(lerp(color.rgb, fog.rgb, fog.a), color.a); -} - -#endif diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta deleted file mode 100644 index 0171b1be..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Includes/AtmosphericHeightFog.cginc.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8db8edf9bba0e9d48998019ca6c2f9ff -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta deleted file mode 100644 index 33b8f10c..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a4b790190affff74cb727562ad03cc6a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage deleted file mode 100644 index 110433d0..00000000 Binary files a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta deleted file mode 100644 index d4c3ffb4..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Built-in Pipeline.unitypackage.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1782b72cd0e99a54fac09382c482e3db -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage deleted file mode 100644 index 1a0bb944..00000000 Binary files a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta deleted file mode 100644 index f8c9cf9a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.1.8+.unitypackage.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: da3283d8cb2d7784ea67bcd1981c5120 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage deleted file mode 100644 index 1a5d8a8f..00000000 Binary files a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta deleted file mode 100644 index 76258fcb..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+ (WebGL).unitypackage.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3e039c1b18fda364d81ea8d40165a1c5 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage deleted file mode 100644 index 58680f44..00000000 Binary files a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta deleted file mode 100644 index 98567f5e..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Pipelines/Universal 7.4.1+.unitypackage.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: f0fb88f906051724081fc159d3aeed31 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta deleted file mode 100644 index 41d63c53..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5f2613b838385724184911eab0a95ff3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader deleted file mode 100644 index 4d74e86f..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader +++ /dev/null @@ -1,301 +0,0 @@ -// Made with Amplify Shader Editor -// Available at the Unity Asset Store - http://u3d.as/y3X -Shader "Hidden/BOXOPHOBIC/Atmospherics/Height Fog Global" -{ - Properties - { - [HideInInspector]_IsStandardPipeline("_IsStandardPipeline", Float) = 0 - [HideInInspector]_HeightFogGlobal("_HeightFogGlobal", Float) = 1 - [HideInInspector]_IsHeightFogShader("_IsHeightFogShader", Float) = 1 - [HideInInspector]_TransparentQueue("_TransparentQueue", Int) = 3000 - [StyledBanner(Height Fog Global)]_TITLE("< TITLE >", Float) = 1 - - } - - SubShader - { - - - Tags { "RenderType"="Overlay" "Queue"="Overlay" } - LOD 0 - - CGINCLUDE - #pragma target 3.0 - ENDCG - Blend SrcAlpha OneMinusSrcAlpha - Cull Front - ColorMask RGBA - ZWrite Off - ZTest Always - Stencil - { - Ref 222 - Comp NotEqual - Pass Zero - } - - - Pass - { - Name "Unlit" - //Tags { "LightMode"="ForwardBase" "PreviewType"="Skybox" } - CGPROGRAM - - - - #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX - //only defining to not throw compilation error over Unity 5.5 - #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) - #endif - #pragma vertex vert - #pragma fragment frag - #pragma multi_compile_instancing - #include "UnityCG.cginc" - #include "UnityShaderVariables.cginc" - #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D - - - struct appdata - { - float4 vertex : POSITION; - float4 color : COLOR; - UNITY_VERTEX_INPUT_INSTANCE_ID - - }; - - struct v2f - { - float4 vertex : SV_POSITION; -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - float3 worldPos : TEXCOORD0; -#endif - UNITY_VERTEX_INPUT_INSTANCE_ID - UNITY_VERTEX_OUTPUT_STEREO - float4 ase_texcoord1 : TEXCOORD1; - }; - - uniform half _IsHeightFogShader; - uniform half _TITLE; - uniform half _HeightFogGlobal; - uniform int _TransparentQueue; - uniform half _IsStandardPipeline; - uniform half4 AHF_FogColorStart; - uniform half4 AHF_FogColorEnd; - UNITY_DECLARE_DEPTH_TEXTURE( _CameraDepthTexture ); - uniform float4 _CameraDepthTexture_TexelSize; - uniform half AHF_FogDistanceStart; - uniform half AHF_FogDistanceEnd; - uniform half AHF_FogDistanceFalloff; - uniform half AHF_FogColorDuo; - uniform half4 AHF_DirectionalColor; - uniform half3 AHF_DirectionalDir; - uniform half AHF_DirectionalIntensity; - uniform half AHF_DirectionalFalloff; - uniform half3 AHF_FogAxisOption; - uniform half AHF_FogHeightEnd; - uniform half AHF_FogHeightStart; - uniform half AHF_FogHeightFalloff; - uniform half AHF_FogLayersMode; - uniform half AHF_NoiseScale; - uniform half3 AHF_NoiseSpeed; - uniform half AHF_NoiseDistanceEnd; - uniform half AHF_NoiseIntensity; - uniform half AHF_NoiseModeBlend; - uniform half AHF_SkyboxFogHeight; - uniform half AHF_SkyboxFogFalloff; - uniform half AHF_SkyboxFogFill; - uniform half AHF_SkyboxFogIntensity; - uniform half AHF_FogIntensity; - float2 UnStereo( float2 UV ) - { - #if UNITY_SINGLE_PASS_STEREO - float4 scaleOffset = unity_StereoScaleOffset[ unity_StereoEyeIndex]; - UV.xy = (UV.xy - scaleOffset.zw) / scaleOffset.xy; - #endif - return UV; - } - - float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } - float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } - float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } - float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } - float snoise( float3 v ) - { - const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); - float3 i = floor( v + dot( v, C.yyy ) ); - float3 x0 = v - i + dot( i, C.xxx ); - float3 g = step( x0.yzx, x0.xyz ); - float3 l = 1.0 - g; - float3 i1 = min( g.xyz, l.zxy ); - float3 i2 = max( g.xyz, l.zxy ); - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - i = mod3D289( i); - float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); - float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) - float4 x_ = floor( j / 7.0 ); - float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) - float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 h = 1.0 - abs( x ) - abs( y ); - float4 b0 = float4( x.xy, y.xy ); - float4 b1 = float4( x.zw, y.zw ); - float4 s0 = floor( b0 ) * 2.0 + 1.0; - float4 s1 = floor( b1 ) * 2.0 + 1.0; - float4 sh = -step( h, 0.0 ); - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 g0 = float3( a0.xy, h.x ); - float3 g1 = float3( a0.zw, h.y ); - float3 g2 = float3( a1.xy, h.z ); - float3 g3 = float3( a1.zw, h.w ); - float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); - m = m* m; - m = m* m; - float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); - return 42.0 * dot( m, px); - } - - - - v2f vert ( appdata v ) - { - v2f o; - UNITY_SETUP_INSTANCE_ID(v); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); - UNITY_TRANSFER_INSTANCE_ID(v, o); - - float3 temp_cast_0 = (( _IsStandardPipeline * 0.0 )).xxx; - - float4 ase_clipPos = UnityObjectToClipPos(v.vertex); - float4 screenPos = ComputeScreenPos(ase_clipPos); - o.ase_texcoord1 = screenPos; - - float3 vertexValue = float3(0, 0, 0); - #if ASE_ABSOLUTE_VERTEX_POS - vertexValue = v.vertex.xyz; - #endif - vertexValue = temp_cast_0; - #if ASE_ABSOLUTE_VERTEX_POS - v.vertex.xyz = vertexValue; - #else - v.vertex.xyz += vertexValue; - #endif - o.vertex = UnityObjectToClipPos(v.vertex); - -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; -#endif - return o; - } - - fixed4 frag (v2f i ) : SV_Target - { - UNITY_SETUP_INSTANCE_ID(i); - UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); - fixed4 finalColor; -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - float3 WorldPosition = i.worldPos; -#endif - float4 screenPos = i.ase_texcoord1; - float4 ase_screenPosNorm = screenPos / screenPos.w; - ase_screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? ase_screenPosNorm.z : ase_screenPosNorm.z * 0.5 + 0.5; - float2 UV235_g1045 = ase_screenPosNorm.xy; - float2 localUnStereo235_g1045 = UnStereo( UV235_g1045 ); - float2 break248_g1045 = localUnStereo235_g1045; - float clampDepth227_g1045 = SAMPLE_DEPTH_TEXTURE( _CameraDepthTexture, ase_screenPosNorm.xy ); - #ifdef UNITY_REVERSED_Z - float staticSwitch250_g1045 = ( 1.0 - clampDepth227_g1045 ); - #else - float staticSwitch250_g1045 = clampDepth227_g1045; - #endif - float3 appendResult244_g1045 = (float3(break248_g1045.x , break248_g1045.y , staticSwitch250_g1045)); - float4 appendResult220_g1045 = (float4((appendResult244_g1045*2.0 + -1.0) , 1.0)); - float4 break229_g1045 = mul( unity_CameraInvProjection, appendResult220_g1045 ); - float3 appendResult237_g1045 = (float3(break229_g1045.x , break229_g1045.y , break229_g1045.z)); - float4 appendResult233_g1045 = (float4(( ( appendResult237_g1045 / break229_g1045.w ) * half3(1,1,-1) ) , 1.0)); - float4 break245_g1045 = mul( unity_CameraToWorld, appendResult233_g1045 ); - float3 appendResult239_g1045 = (float3(break245_g1045.x , break245_g1045.y , break245_g1045.z)); - float3 WorldPositionFromDepth253_g1045 = appendResult239_g1045; - float3 WorldPosition2_g1045 = WorldPositionFromDepth253_g1045; - float temp_output_7_0_g1047 = AHF_FogDistanceStart; - half FogDistanceMask12_g1045 = pow( abs( saturate( ( ( distance( WorldPosition2_g1045 , _WorldSpaceCameraPos ) - temp_output_7_0_g1047 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g1047 ) ) ) ) , AHF_FogDistanceFalloff ); - float3 lerpResult258_g1045 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g1045 - 0.5 ) ) * AHF_FogColorDuo )); - float3 normalizeResult318_g1045 = normalize( ( WorldPosition2_g1045 - _WorldSpaceCameraPos ) ); - float dotResult145_g1045 = dot( normalizeResult318_g1045 , AHF_DirectionalDir ); - half DirectionalMask30_g1045 = pow( abs( ( (dotResult145_g1045*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); - float3 lerpResult40_g1045 = lerp( lerpResult258_g1045 , (AHF_DirectionalColor).rgb , DirectionalMask30_g1045); - float3 temp_output_2_0_g1046 = lerpResult40_g1045; - float3 gammaToLinear3_g1046 = GammaToLinearSpace( temp_output_2_0_g1046 ); - #ifdef UNITY_COLORSPACE_GAMMA - float3 staticSwitch1_g1046 = temp_output_2_0_g1046; - #else - float3 staticSwitch1_g1046 = gammaToLinear3_g1046; - #endif - float3 temp_output_256_0_g1045 = staticSwitch1_g1046; - half3 AHF_FogAxisOption181_g1045 = AHF_FogAxisOption; - float3 break159_g1045 = ( WorldPosition2_g1045 * AHF_FogAxisOption181_g1045 ); - float temp_output_7_0_g1048 = AHF_FogHeightEnd; - half FogHeightMask16_g1045 = pow( abs( saturate( ( ( ( break159_g1045.x + break159_g1045.y + break159_g1045.z ) - temp_output_7_0_g1048 ) / ( AHF_FogHeightStart - temp_output_7_0_g1048 ) ) ) ) , AHF_FogHeightFalloff ); - float lerpResult328_g1045 = lerp( ( FogDistanceMask12_g1045 * FogHeightMask16_g1045 ) , saturate( ( FogDistanceMask12_g1045 + FogHeightMask16_g1045 ) ) , AHF_FogLayersMode); - float simplePerlin3D193_g1045 = snoise( ( ( WorldPosition2_g1045 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); - float temp_output_7_0_g1050 = AHF_NoiseDistanceEnd; - half NoiseDistanceMask7_g1045 = saturate( ( ( distance( WorldPosition2_g1045 , _WorldSpaceCameraPos ) - temp_output_7_0_g1050 ) / ( 0.0 - temp_output_7_0_g1050 ) ) ); - float lerpResult198_g1045 = lerp( 1.0 , (simplePerlin3D193_g1045*0.5 + 0.5) , ( NoiseDistanceMask7_g1045 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); - half NoiseSimplex3D24_g1045 = lerpResult198_g1045; - #if defined(AHF_NOISEMODE_OFF) - float staticSwitch42_g1045 = lerpResult328_g1045; - #elif defined(AHF_NOISEMODE_PROCEDURAL3D) - float staticSwitch42_g1045 = ( lerpResult328_g1045 * NoiseSimplex3D24_g1045 ); - #else - float staticSwitch42_g1045 = lerpResult328_g1045; - #endif - float3 normalizeResult169_g1045 = normalize( WorldPosition2_g1045 ); - float3 break170_g1045 = ( normalizeResult169_g1045 * AHF_FogAxisOption181_g1045 ); - float temp_output_7_0_g1049 = AHF_SkyboxFogHeight; - float saferPower309_g1045 = max( abs( saturate( ( ( abs( ( break170_g1045.x + break170_g1045.y + break170_g1045.z ) ) - temp_output_7_0_g1049 ) / ( 0.0 - temp_output_7_0_g1049 ) ) ) ) , 0.0001 ); - float lerpResult179_g1045 = lerp( pow( saferPower309_g1045 , AHF_SkyboxFogFalloff ) , 1.0 , AHF_SkyboxFogFill); - half SkyboxFogHeightMask108_g1045 = ( lerpResult179_g1045 * AHF_SkyboxFogIntensity ); - float clampDepth118_g1045 = SAMPLE_DEPTH_TEXTURE( _CameraDepthTexture, ase_screenPosNorm.xy ); - #ifdef UNITY_REVERSED_Z - float staticSwitch123_g1045 = clampDepth118_g1045; - #else - float staticSwitch123_g1045 = ( 1.0 - clampDepth118_g1045 ); - #endif - half SkyboxMask95_g1045 = ( 1.0 - ceil( staticSwitch123_g1045 ) ); - float lerpResult112_g1045 = lerp( staticSwitch42_g1045 , SkyboxFogHeightMask108_g1045 , SkyboxMask95_g1045); - float temp_output_43_0_g1045 = ( lerpResult112_g1045 * AHF_FogIntensity ); - float4 appendResult114_g1045 = (float4(temp_output_256_0_g1045 , temp_output_43_0_g1045)); - - - finalColor = appendResult114_g1045; - return finalColor; - } - ENDCG - } - } - - - -} -/*ASEBEGIN -Version=18103 -1927;1;1906;1020;5409.4;5525.235;2.429641;True;False -Node;AmplifyShaderEditor.RangedFloatNode;879;-3136,-4864;Half;False;Property;_HeightFogGlobal;_HeightFogGlobal;4;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.IntNode;891;-2656,-4864;Float;False;Property;_TransparentQueue;_TransparentQueue;6;1;[HideInInspector];Create;False;0;0;True;0;False;3000;0;0;1;INT;0 -Node;AmplifyShaderEditor.FunctionNode;1029;-3328,-4608;Inherit;False;Base;-1;;1045;13c50910e5b86de4097e1181ba121e0e;2,116,1,99,1;0;3;FLOAT4;113;FLOAT3;86;FLOAT;87 -Node;AmplifyShaderEditor.FunctionNode;915;-3328,-4480;Inherit;False;Is Pipeline;0;;1044;2b33d0c660fbdb24c98bea96428031b0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;885;-2912,-4864;Half;False;Property;_IsHeightFogShader;_IsHeightFogShader;5;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;892;-3328,-4864;Half;False;Property;_TITLE;< TITLE >;7;0;Create;True;0;0;True;1;StyledBanner(Height Fog Global);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;383;-3072,-4608;Float;False;True;-1;2;;0;1;Hidden/BOXOPHOBIC/Atmospherics/Height Fog Global;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;5;False;-1;10;False;-1;True;0;False;-1;0;False;-1;True;False;True;1;False;-1;True;True;True;True;True;0;False;-1;True;True;222;False;-1;255;False;-1;255;False;-1;6;False;-1;2;False;-1;0;False;-1;0;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;594;True;7;False;595;True;False;0;False;500;1000;False;500;True;2;RenderType=Overlay=RenderType;Queue=Overlay=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;2;LightMode=ForwardBase;PreviewType=Skybox;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 -Node;AmplifyShaderEditor.CommentaryNode;880;-3328,-4992;Inherit;False;919.8825;100;Drawers;0;;1,0.475862,0,1;0;0 -WireConnection;383;0;1029;113 -WireConnection;383;1;915;0 -ASEEND*/ -//CHKSM=BFDE70D7D1E42608460807DF4DA7EDF074083B59 \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta deleted file mode 100644 index 36bde76b..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Global.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3a7ef1b66bafb7a448a880ef76d2e6e6 -timeCreated: 1568125885 -licenseType: Store -ShaderImporter: - externalObjects: {} - defaultTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader deleted file mode 100644 index 30f012c8..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader +++ /dev/null @@ -1,294 +0,0 @@ -// Made with Amplify Shader Editor -// Available at the Unity Asset Store - http://u3d.as/y3X -Shader "BOXOPHOBIC/Atmospherics/Height Fog Per Object" -{ - Properties - { - [HideInInspector]_HeightFogPerObject("_HeightFogPerObject", Float) = 1 - [HideInInspector]_IsStandardPipeline("_IsStandardPipeline", Float) = 0 - [HideInInspector]_IsHeightFogShader("_IsHeightFogShader", Float) = 1 - [HideInInspector]_TransparentQueue("_TransparentQueue", Int) = 3000 - [StyledBanner(Height Fog Per Object)]_TITLEE("< TITLEE >", Float) = 1 - [StyledCategory(Custom Alpha Inputs)]_CUSTOM("[ CUSTOM ]", Float) = 1 - _Color("Color", Color) = (1,1,1,1) - _MainTex("MainTex", 2D) = "white" {} - - } - - SubShader - { - - - Tags { "RenderType"="Transparent" "Queue"="Transparent" } - LOD 0 - - CGINCLUDE - #pragma target 3.0 - ENDCG - Blend SrcAlpha OneMinusSrcAlpha , One One - Cull Back - ColorMask RGBA - ZWrite Off - ZTest LEqual - - - - Pass - { - Name "Unlit" - //Tags { "LightMode"="ForwardBase" } - CGPROGRAM - - - - #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX - //only defining to not throw compilation error over Unity 5.5 - #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) - #endif - #pragma vertex vert - #pragma fragment frag - #pragma multi_compile_instancing - #include "UnityCG.cginc" - #include "UnityShaderVariables.cginc" - #define ASE_NEEDS_FRAG_WORLD_POSITION - #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D - - - struct appdata - { - float4 vertex : POSITION; - float4 color : COLOR; - UNITY_VERTEX_INPUT_INSTANCE_ID - float4 ase_texcoord : TEXCOORD0; - }; - - struct v2f - { - float4 vertex : SV_POSITION; -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - float3 worldPos : TEXCOORD0; -#endif - UNITY_VERTEX_INPUT_INSTANCE_ID - UNITY_VERTEX_OUTPUT_STEREO - float4 ase_texcoord1 : TEXCOORD1; - }; - - uniform half _CUSTOM; - uniform half _HeightFogPerObject; - uniform half _IsHeightFogShader; - uniform half _TITLEE; - uniform int _TransparentQueue; - uniform half _IsStandardPipeline; - uniform half4 AHF_FogColorStart; - uniform half4 AHF_FogColorEnd; - uniform half AHF_FogDistanceStart; - uniform half AHF_FogDistanceEnd; - uniform half AHF_FogDistanceFalloff; - uniform half AHF_FogColorDuo; - uniform half4 AHF_DirectionalColor; - uniform half3 AHF_DirectionalDir; - uniform half AHF_DirectionalIntensity; - uniform half AHF_DirectionalFalloff; - uniform half3 AHF_FogAxisOption; - uniform half AHF_FogHeightEnd; - uniform half AHF_FogHeightStart; - uniform half AHF_FogHeightFalloff; - uniform half AHF_FogLayersMode; - uniform half AHF_NoiseScale; - uniform half3 AHF_NoiseSpeed; - uniform half AHF_NoiseDistanceEnd; - uniform half AHF_NoiseIntensity; - uniform half AHF_NoiseModeBlend; - uniform half AHF_FogIntensity; - uniform half4 _Color; - uniform sampler2D _MainTex; - uniform float4 _MainTex_ST; - float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } - float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } - float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } - float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } - float snoise( float3 v ) - { - const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); - float3 i = floor( v + dot( v, C.yyy ) ); - float3 x0 = v - i + dot( i, C.xxx ); - float3 g = step( x0.yzx, x0.xyz ); - float3 l = 1.0 - g; - float3 i1 = min( g.xyz, l.zxy ); - float3 i2 = max( g.xyz, l.zxy ); - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - i = mod3D289( i); - float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); - float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) - float4 x_ = floor( j / 7.0 ); - float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) - float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 h = 1.0 - abs( x ) - abs( y ); - float4 b0 = float4( x.xy, y.xy ); - float4 b1 = float4( x.zw, y.zw ); - float4 s0 = floor( b0 ) * 2.0 + 1.0; - float4 s1 = floor( b1 ) * 2.0 + 1.0; - float4 sh = -step( h, 0.0 ); - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 g0 = float3( a0.xy, h.x ); - float3 g1 = float3( a0.zw, h.y ); - float3 g2 = float3( a1.xy, h.z ); - float3 g3 = float3( a1.zw, h.w ); - float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); - m = m* m; - m = m* m; - float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); - return 42.0 * dot( m, px); - } - - - - v2f vert ( appdata v ) - { - v2f o; - UNITY_SETUP_INSTANCE_ID(v); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); - UNITY_TRANSFER_INSTANCE_ID(v, o); - - int CustomVertexOffset918 = 0; - float3 temp_cast_0 = (( CustomVertexOffset918 + ( _IsStandardPipeline * 0.0 ) )).xxx; - - o.ase_texcoord1.xy = v.ase_texcoord.xy; - - //setting value to unused interpolator channels and avoid initialization warnings - o.ase_texcoord1.zw = 0; - float3 vertexValue = float3(0, 0, 0); - #if ASE_ABSOLUTE_VERTEX_POS - vertexValue = v.vertex.xyz; - #endif - vertexValue = temp_cast_0; - #if ASE_ABSOLUTE_VERTEX_POS - v.vertex.xyz = vertexValue; - #else - v.vertex.xyz += vertexValue; - #endif - o.vertex = UnityObjectToClipPos(v.vertex); - -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; -#endif - return o; - } - - fixed4 frag (v2f i ) : SV_Target - { - UNITY_SETUP_INSTANCE_ID(i); - UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); - fixed4 finalColor; -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - float3 WorldPosition = i.worldPos; -#endif - float3 WorldPosition2_g771 = WorldPosition; - float temp_output_7_0_g860 = AHF_FogDistanceStart; - half FogDistanceMask12_g771 = pow( abs( saturate( ( ( distance( WorldPosition2_g771 , _WorldSpaceCameraPos ) - temp_output_7_0_g860 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g860 ) ) ) ) , AHF_FogDistanceFalloff ); - float3 lerpResult258_g771 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g771 - 0.5 ) ) * AHF_FogColorDuo )); - float3 normalizeResult318_g771 = normalize( ( WorldPosition2_g771 - _WorldSpaceCameraPos ) ); - float dotResult145_g771 = dot( normalizeResult318_g771 , AHF_DirectionalDir ); - half DirectionalMask30_g771 = pow( abs( ( (dotResult145_g771*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); - float3 lerpResult40_g771 = lerp( lerpResult258_g771 , (AHF_DirectionalColor).rgb , DirectionalMask30_g771); - float3 temp_output_2_0_g859 = lerpResult40_g771; - float3 gammaToLinear3_g859 = GammaToLinearSpace( temp_output_2_0_g859 ); - #ifdef UNITY_COLORSPACE_GAMMA - float3 staticSwitch1_g859 = temp_output_2_0_g859; - #else - float3 staticSwitch1_g859 = gammaToLinear3_g859; - #endif - float3 temp_output_256_0_g771 = staticSwitch1_g859; - half3 AHF_FogAxisOption181_g771 = AHF_FogAxisOption; - float3 break159_g771 = ( WorldPosition2_g771 * AHF_FogAxisOption181_g771 ); - float temp_output_7_0_g861 = AHF_FogHeightEnd; - half FogHeightMask16_g771 = pow( abs( saturate( ( ( ( break159_g771.x + break159_g771.y + break159_g771.z ) - temp_output_7_0_g861 ) / ( AHF_FogHeightStart - temp_output_7_0_g861 ) ) ) ) , AHF_FogHeightFalloff ); - float lerpResult328_g771 = lerp( ( FogDistanceMask12_g771 * FogHeightMask16_g771 ) , saturate( ( FogDistanceMask12_g771 + FogHeightMask16_g771 ) ) , AHF_FogLayersMode); - float simplePerlin3D193_g771 = snoise( ( ( WorldPosition2_g771 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); - float temp_output_7_0_g863 = AHF_NoiseDistanceEnd; - half NoiseDistanceMask7_g771 = saturate( ( ( distance( WorldPosition2_g771 , _WorldSpaceCameraPos ) - temp_output_7_0_g863 ) / ( 0.0 - temp_output_7_0_g863 ) ) ); - float lerpResult198_g771 = lerp( 1.0 , (simplePerlin3D193_g771*0.5 + 0.5) , ( NoiseDistanceMask7_g771 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); - half NoiseSimplex3D24_g771 = lerpResult198_g771; - #if defined(AHF_NOISEMODE_OFF) - float staticSwitch42_g771 = lerpResult328_g771; - #elif defined(AHF_NOISEMODE_PROCEDURAL3D) - float staticSwitch42_g771 = ( lerpResult328_g771 * NoiseSimplex3D24_g771 ); - #else - float staticSwitch42_g771 = lerpResult328_g771; - #endif - float temp_output_43_0_g771 = ( staticSwitch42_g771 * AHF_FogIntensity ); - float2 uv0_MainTex = i.ase_texcoord1.xy * _MainTex_ST.xy + _MainTex_ST.zw; - float temp_output_1_0_g753 = tex2D( _MainTex, uv0_MainTex ).a; - float temp_output_7_0_g752 = AHF_FogDistanceStart; - float lerpResult3_g753 = lerp( temp_output_1_0_g753 , ceil( temp_output_1_0_g753 ) , saturate( ( ( distance( WorldPosition , _WorldSpaceCameraPos ) - temp_output_7_0_g752 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g752 ) ) )); - half CustomAlphaInputs897 = ( _Color.a * lerpResult3_g753 ); - float4 appendResult384 = (float4(temp_output_256_0_g771 , ( temp_output_43_0_g771 * CustomAlphaInputs897 ))); - - - finalColor = appendResult384; - return finalColor; - } - ENDCG - } - } - - - -} -/*ASEBEGIN -Version=18103 -1927;1;1906;1020;4148.027;3949.353;1;True;False -Node;AmplifyShaderEditor.WorldPosInputsNode;943;-3328,-3584;Float;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 -Node;AmplifyShaderEditor.TextureCoordinatesNode;895;-3328,-3840;Inherit;False;0;892;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.SamplerNode;892;-3072,-3840;Inherit;True;Property;_MainTex;MainTex;10;0;Create;False;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;MipBias;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.FunctionNode;942;-3072,-3584;Inherit;False;Compute Fog Distance;-1;;751;a5f090963b8f9394a984ee752ce42488;0;1;13;FLOAT3;0,0,0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.FunctionNode;913;-2688,-3840;Inherit;False;Handle Tex Alpha;-1;;753;92f31391e7f50294c9c2d8747c81d6b6;0;2;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.ColorNode;894;-3328,-4096;Half;False;Property;_Color;Color;9;0;Create;False;0;0;False;0;False;1,1,1,1;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;896;-2304,-4096;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.RegisterLocalVarNode;897;-2144,-4096;Half;False;CustomAlphaInputs;-1;True;1;0;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.IntNode;919;-3328,-3200;Float;False;Constant;_Int0;Int 0;5;0;Create;True;0;0;False;0;False;0;0;0;1;INT;0 -Node;AmplifyShaderEditor.RegisterLocalVarNode;918;-3136,-3200;Half;False;CustomVertexOffset;-1;True;1;0;INT;0;False;1;INT;0 -Node;AmplifyShaderEditor.FunctionNode;944;-3328,-4736;Inherit;False;Base;-1;;771;13c50910e5b86de4097e1181ba121e0e;2,116,0,99,0;0;3;FLOAT4;113;FLOAT3;86;FLOAT;87 -Node;AmplifyShaderEditor.GetLocalVarNode;898;-3328,-4544;Inherit;False;897;CustomAlphaInputs;1;0;OBJECT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;938;-3008,-4608;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.FunctionNode;935;-2816,-4512;Inherit;False;Is Pipeline;1;;864;2b33d0c660fbdb24c98bea96428031b0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.GetLocalVarNode;920;-2816,-4608;Inherit;False;918;CustomVertexOffset;1;0;OBJECT;0;False;1;INT;0 -Node;AmplifyShaderEditor.RangedFloatNode;890;-2688,-5248;Half;False;Property;_IsHeightFogShader;_IsHeightFogShader;5;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;923;-3328,-5248;Half;False;Property;_TITLEE;< TITLEE >;7;0;Create;True;0;0;True;1;StyledBanner(Height Fog Per Object);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.IntNode;922;-2432,-5248;Float;False;Property;_TransparentQueue;_TransparentQueue;6;1;[HideInInspector];Create;False;0;0;True;0;False;3000;0;0;1;INT;0 -Node;AmplifyShaderEditor.RangedFloatNode;879;-2944,-5248;Half;False;Property;_HeightFogPerObject;_HeightFogPerObject;0;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;899;-3169,-5248;Half;False;Property;_CUSTOM;[ CUSTOM ];8;0;Create;True;0;0;True;1;StyledCategory(Custom Alpha Inputs);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.SimpleAddOpNode;936;-2512,-4592;Inherit;False;2;2;0;INT;0;False;1;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.DynamicAppendNode;384;-2816,-4736;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0 -Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;383;-2304,-4736;Float;False;True;-1;2;;0;1;BOXOPHOBIC/Atmospherics/Height Fog Per Object;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;4;1;False;-1;1;False;-1;True;0;False;-1;0;False;-1;True;False;True;0;False;-1;True;True;True;True;True;0;False;-1;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;594;True;0;False;595;True;False;10;True;890;10;True;890;True;2;RenderType=Transparent=RenderType;Queue=Transparent=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 -Node;AmplifyShaderEditor.CommentaryNode;916;-3328,-3328;Inherit;False;1409.549;100;Custom Vertex Offset / Add here your custom Vertex Offset;0;;0.684,1,0,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;891;-3328,-4224;Inherit;False;1418.51;100;Custom Alpha Inputs / Add here your custom Alpha Inputs;0;;0.684,1,0,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;939;-3328,-4864;Inherit;False;1405.154;100;Final Pass;0;;0.684,1,0,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;880;-3328,-5376;Inherit;False;1406.973;101;Drawers;0;;1,0.475862,0,1;0;0 -WireConnection;892;1;895;0 -WireConnection;942;13;943;0 -WireConnection;913;1;892;4 -WireConnection;913;2;942;0 -WireConnection;896;0;894;4 -WireConnection;896;1;913;0 -WireConnection;897;0;896;0 -WireConnection;918;0;919;0 -WireConnection;938;0;944;87 -WireConnection;938;1;898;0 -WireConnection;936;0;920;0 -WireConnection;936;1;935;0 -WireConnection;384;0;944;86 -WireConnection;384;3;938;0 -WireConnection;383;0;384;0 -WireConnection;383;1;936;0 -ASEEND*/ -//CHKSM=F74943620D06474AE029A1BD15340645926FE0B9 \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta deleted file mode 100644 index f3ccd01b..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Per Object.shader.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 19dce7f705377aa41bc0a573347bbd27 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat deleted file mode 100644 index f745a1b1..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat +++ /dev/null @@ -1,62 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Height Fog Preset - m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: [] - m_Floats: - - _DIRECTIONALL: 1 - - _DirectionalCustom: 0 - - _DirectionalFalloff: 2 - - _DirectionalIntensity: 1 - - _DirectionalMode: 0 - - _DirectionalModeBlend: 0 - - _FOGG: 1 - - _FogAxisMode: 1 - - _FogColorDuo: 0 - - _FogDistanceEnd: 100 - - _FogDistanceFalloff: 1 - - _FogDistanceStart: -100 - - _FogHeightEnd: 200 - - _FogHeightFalloff: 1 - - _FogHeightStart: 0 - - _FogIntensity: 1 - - _FogLayersMode: 0 - - _IsHeightFogPreset: 1 - - _IsHeightFogShader: 1 - - _IsStandardPipeline: 0 - - _NOISEE: 1 - - _NoiseDistanceEnd: 50 - - _NoiseIntensity: 1 - - _NoiseMode: 0 - - _NoiseModeBlend: 0 - - _NoiseScale: 30 - - _SKYBOXX: 1 - - _SkyboxFogFalloff: 1 - - _SkyboxFogFill: 1 - - _SkyboxFogHeight: 1 - - _SkyboxFogIntensity: 1 - - _TITLE: 1 - m_Colors: - - _DirectionalColor: {r: 1, g: 0.7793103, b: 0.5, a: 1} - - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} - - _DirectionalDir: {r: 0.7081007, g: 0.28231323, b: 0.6472192, a: 0} - - _FogAxisOption: {r: 0, g: 1, b: 0, a: 0} - - _FogColorEnd: {r: 0.8862745, g: 1.443137, b: 2, a: 1} - - _FogColorStart: {r: 1, g: 0, b: 0.5, a: 1} - - _NoiseSpeed: {r: 0.5, g: 0, b: 0.5, a: 0} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta deleted file mode 100644 index 0ee7b5b8..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ca85a1519dc35be41b6251ab2147d038 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader deleted file mode 100644 index 1a6e8d00..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader +++ /dev/null @@ -1,231 +0,0 @@ -// Made with Amplify Shader Editor -// Available at the Unity Asset Store - http://u3d.as/y3X -Shader "BOXOPHOBIC/Atmospherics/Height Fog Preset" -{ - Properties - { - [HideInInspector]_IsStandardPipeline("_IsStandardPipeline", Float) = 0 - [HideInInspector]_IsHeightFogPreset("_IsHeightFogPreset", Float) = 1 - [HideInInspector]_IsHeightFogShader("_IsHeightFogShader", Float) = 1 - [StyledBanner(Height Fog Preset)]_TITLE("< TITLE >", Float) = 1 - [StyledCategory(Fog)]_FOGG("[ FOGG]", Float) = 1 - _FogIntensity("Fog Intensity", Range( 0 , 1)) = 1 - [Enum(X Axis,0,Y Axis,1,Z Axis,2)][Space(10)]_FogAxisMode("Fog Axis Mode", Float) = 1 - [Enum(Multiply Distance And Height,0,Additive Distance And Height,1)]_FogLayersMode("Fog Layers Mode", Float) = 0 - [HideInInspector]_FogAxisOption("_FogAxisOption", Vector) = (0,0,0,0) - [HDR][Space(10)]_FogColorStart("Fog Color Start", Color) = (0.4411765,0.722515,1,1) - [HDR]_FogColorEnd("Fog Color End", Color) = (0.8862745,1.443137,2,1) - _FogColorDuo("Fog Color Duo", Range( 0 , 1)) = 1 - [Space(10)]_FogDistanceStart("Fog Distance Start", Float) = -200 - _FogDistanceEnd("Fog Distance End", Float) = 200 - _FogDistanceFalloff("Fog Distance Falloff", Range( 1 , 8)) = 2 - [Space(10)]_FogHeightStart("Fog Height Start", Float) = 0 - _FogHeightEnd("Fog Height End", Float) = 200 - _FogHeightFalloff("Fog Height Falloff", Range( 1 , 8)) = 2 - [StyledCategory(Skybox)]_SKYBOXX("[ SKYBOXX ]", Float) = 1 - _SkyboxFogIntensity("Skybox Fog Intensity", Range( 0 , 1)) = 1 - _SkyboxFogHeight("Skybox Fog Height", Range( 0 , 1)) = 1 - _SkyboxFogFalloff("Skybox Fog Falloff", Range( 1 , 8)) = 1 - _SkyboxFogFill("Skybox Fog Fill", Range( 0 , 1)) = 1 - [StyledCategory(Directional)]_DIRECTIONALL("[ DIRECTIONALL ]", Float) = 1 - [Enum(Off,0,On,1)]_DirectionalMode("Directional Mode", Float) = 1 - _DirectionalIntensity("Directional Intensity", Range( 0 , 1)) = 1 - _DirectionalFalloff("Directional Falloff", Range( 1 , 8)) = 2 - [HDR]_DirectionalColor("Directional Color", Color) = (1,0.7793103,0.5,1) - [HideInInspector]_DirectionalDir("Directional Dir", Vector) = (0,0,0,0) - [StyledCategory(Noise)]_NOISEE("[ NOISEE ]", Float) = 1 - [Enum(Off,0,Procedural 3D,2)]_NoiseMode("Noise Mode", Float) = 2 - [HideInInspector]_NoiseModeBlend("_NoiseModeBlend", Float) = 1 - _NoiseIntensity("Noise Intensity", Range( 0 , 1)) = 1 - _NoiseDistanceEnd("Noise Distance End", Float) = 50 - _NoiseScale("Noise Scale", Float) = 30 - _NoiseSpeed("Noise Speed", Vector) = (0.5,0,0.5,0) - - } - - SubShader - { - - - Tags { "RenderType"="Overlay" "Queue"="Overlay" } - LOD 0 - - CGINCLUDE - #pragma target 3.0 - ENDCG - Blend SrcAlpha OneMinusSrcAlpha - Cull Off - ColorMask RGBA - ZWrite Off - ZTest Always - - - - Pass - { - Name "Unlit" - //Tags { "LightMode"="ForwardBase" } - CGPROGRAM - - - - #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX - //only defining to not throw compilation error over Unity 5.5 - #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) - #endif - #pragma vertex vert - #pragma fragment frag - #pragma multi_compile_instancing - #include "UnityCG.cginc" - - - struct appdata - { - float4 vertex : POSITION; - float4 color : COLOR; - UNITY_VERTEX_INPUT_INSTANCE_ID - - }; - - struct v2f - { - float4 vertex : SV_POSITION; -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - float3 worldPos : TEXCOORD0; -#endif - UNITY_VERTEX_INPUT_INSTANCE_ID - UNITY_VERTEX_OUTPUT_STEREO - - }; - - uniform half _FogHeightEnd; - uniform half _FogHeightStart; - uniform half _NoiseScale; - uniform half _NoiseDistanceEnd; - uniform half _FogDistanceEnd; - uniform half _FogHeightFalloff; - uniform half _DirectionalIntensity; - uniform half _FogDistanceStart; - uniform half _NoiseModeBlend; - uniform half _SkyboxFogIntensity; - uniform half _FogLayersMode; - uniform half _SkyboxFogHeight; - uniform half _SkyboxFogFill; - uniform half _IsHeightFogPreset; - uniform half _FogDistanceFalloff; - uniform half _SkyboxFogFalloff; - uniform half _DirectionalFalloff; - uniform half _NoiseIntensity; - uniform half _NoiseMode; - uniform half _NOISEE; - uniform half4 _FogColorEnd; - uniform half _FOGG; - uniform half _FogColorDuo; - uniform half _SKYBOXX; - uniform half _DirectionalMode; - uniform half3 _NoiseSpeed; - uniform half _IsHeightFogShader; - uniform half _TITLE; - uniform half _DIRECTIONALL; - uniform half4 _DirectionalColor; - uniform half _FogIntensity; - uniform half _FogAxisMode; - uniform half4 _FogColorStart; - uniform float4 _FogAxisOption; - uniform half3 _DirectionalDir; - uniform half _IsStandardPipeline; - - - v2f vert ( appdata v ) - { - v2f o; - UNITY_SETUP_INSTANCE_ID(v); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); - UNITY_TRANSFER_INSTANCE_ID(v, o); - - float3 temp_cast_0 = (( _IsStandardPipeline * 0.0 )).xxx; - - float3 vertexValue = float3(0, 0, 0); - #if ASE_ABSOLUTE_VERTEX_POS - vertexValue = v.vertex.xyz; - #endif - vertexValue = temp_cast_0; - #if ASE_ABSOLUTE_VERTEX_POS - v.vertex.xyz = vertexValue; - #else - v.vertex.xyz += vertexValue; - #endif - o.vertex = UnityObjectToClipPos(v.vertex); - -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; -#endif - return o; - } - - fixed4 frag (v2f i ) : SV_Target - { - UNITY_SETUP_INSTANCE_ID(i); - UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); - fixed4 finalColor; -#ifdef ASE_NEEDS_FRAG_WORLD_POSITION - float3 WorldPosition = i.worldPos; -#endif - - - finalColor = fixed4(1,1,1,1); - return finalColor; - } - ENDCG - } - } - CustomEditor "HeightFogShaderGUI" - - -} -/*ASEBEGIN -Version=18103 -1927;1;1906;1020;3249.694;3596.392;1;True;False -Node;AmplifyShaderEditor.RangedFloatNode;627;-3024,-4864;Half;False;Property;_SKYBOXX;[ SKYBOXX ];21;0;Create;True;0;0;True;1;StyledCategory(Skybox);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;653;-2816,-3968;Half;False;Property;_FogColorDuo;Fog Color Duo;14;0;Create;True;0;0;True;0;False;1;0;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.Vector3Node;227;-3328,-2560;Half;False;Property;_NoiseSpeed;Noise Speed;38;0;Create;True;0;0;True;0;False;0.5,0,0.5;0.5,0,0.5;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 -Node;AmplifyShaderEditor.RangedFloatNode;640;-3328,-3072;Half;False;Property;_DirectionalMode;Directional Mode;27;1;[Enum];Create;True;2;Off;0;On;1;0;True;0;False;1;1;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;626;-3168,-4864;Half;False;Property;_FOGG;[ FOGG];7;0;Create;True;0;0;True;1;StyledCategory(Fog);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;629;-2640,-4864;Half;False;Property;_NOISEE;[ NOISEE ];32;0;Create;True;0;0;True;1;StyledCategory(Noise);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;632;-2480,-4864;Half;False;Property;_ADVANCEDD;[ ADVANCEDD ];39;0;Create;True;0;0;False;1;StyledCategory(Advanced);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.FunctionNode;646;-480,-4352;Inherit;False;Is Pipeline;0;;1;2b33d0c660fbdb24c98bea96428031b0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.ColorNode;648;-3072,-3968;Half;False;Property;_FogColorEnd;Fog Color End;13;1;[HDR];Create;True;0;0;True;0;False;0.8862745,1.443137,2,1;1,1.5,2,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.Vector4Node;655;-2432,-4224;Inherit;False;Property;_FogAxisOption;_FogAxisOption;11;1;[HideInInspector];Create;True;0;0;True;0;False;0,0,0,0;0,1,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.ColorNode;137;-3328,-3968;Half;False;Property;_FogColorStart;Fog Color Start;12;1;[HDR];Create;True;0;0;True;1;Space(10);False;0.4411765,0.722515,1,1;0.3538489,1,0,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.ColorNode;102;-2432,-3072;Half;False;Property;_DirectionalColor;Directional Color;30;1;[HDR];Create;True;0;0;True;0;False;1,0.7793103,0.5,1;1,0.75,0.5,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.Vector3Node;625;-1952,-3072;Half;False;Property;_DirectionalDir;Directional Dir;31;1;[HideInInspector];Create;True;0;0;True;0;False;0,0,0;0,0,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 -Node;AmplifyShaderEditor.RangedFloatNode;645;-3328,-4224;Half;False;Property;_FogAxisMode;Fog Axis Mode;9;1;[Enum];Create;True;3;X Axis;0;Y Axis;1;Z Axis;2;0;True;1;Space(10);False;1;1;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;558;-3328,-4864;Half;False;Property;_TITLE;< TITLE >;6;0;Create;True;0;0;True;1;StyledBanner(Height Fog Preset);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;643;-3104,-4736;Half;False;Property;_IsHeightFogShader;_IsHeightFogShader;5;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;278;-3328,-4352;Half;False;Property;_FogIntensity;Fog Intensity;8;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;628;-2848,-4864;Half;False;Property;_DIRECTIONALL;[ DIRECTIONALL ];26;0;Create;True;0;0;True;1;StyledCategory(Directional);False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;639;-3072,-2560;Half;False;Property;_NoiseMode;Noise Mode;33;1;[Enum];Create;True;2;Off;0;Procedural 3D;2;0;True;0;False;2;2;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;633;-3072,-3072;Half;False;Property;_DirectionalIntensity;Directional Intensity;28;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;650;-2816,-3584;Half;False;Property;_FogHeightFalloff;Fog Height Falloff;20;0;Create;True;0;0;True;0;False;2;3.41;1;8;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;635;-2224,-2560;Half;False;Property;_NoiseModeBlend;_NoiseModeBlend;34;1;[HideInInspector];Create;True;0;0;True;0;False;1;1;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;106;-3328,-3712;Half;False;Property;_FogDistanceStart;Fog Distance Start;15;0;Create;True;0;0;True;1;Space(10);False;-200;-200;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;107;-3072,-3712;Half;False;Property;_FogDistanceEnd;Fog Distance End;16;0;Create;True;0;0;True;0;False;200;0;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;103;-3328,-3584;Half;False;Property;_FogHeightStart;Fog Height Start;18;0;Create;True;0;0;True;1;Space(10);False;0;30;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;74;-3072,-3584;Half;False;Property;_FogHeightEnd;Fog Height End;19;0;Create;True;0;0;True;0;False;200;38.4;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;349;-2608,-2560;Half;False;Property;_NoiseDistanceEnd;Noise Distance End;36;0;Create;True;0;0;True;0;False;50;50;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;230;-2384,-2560;Half;False;Property;_NoiseScale;Noise Scale;37;0;Create;True;0;0;True;0;False;30;30;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;651;-2752,-3328;Half;False;Property;_SkyboxFogFalloff;Skybox Fog Falloff;24;0;Create;True;0;0;True;0;False;1;1;1;8;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;649;-2816,-3712;Half;False;Property;_FogDistanceFalloff;Fog Distance Falloff;17;0;Create;True;0;0;True;0;False;2;1;1;8;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;345;-2896,-2560;Half;False;Property;_NoiseIntensity;Noise Intensity;35;0;Create;True;0;0;True;0;False;1;0;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;654;-2784,-3072;Half;False;Property;_DirectionalFalloff;Directional Falloff;29;0;Create;True;0;0;True;0;False;2;1;1;8;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;644;-3328,-4736;Half;False;Property;_IsHeightFogPreset;_IsHeightFogPreset;4;1;[HideInInspector];Create;False;0;0;True;0;False;1;1;1;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;657;-3072,-4224;Half;False;Property;_FogLayersMode;Fog Layers Mode;10;1;[Enum];Create;True;2;Multiply Distance And Height;0;Additive Distance And Height;1;0;True;0;False;0;1;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;656;-3328,-3328;Half;False;Property;_SkyboxFogIntensity;Skybox Fog Intensity;22;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;266;-2464,-3328;Half;False;Property;_SkyboxFogFill;Skybox Fog Fill;25;0;Create;True;0;0;True;0;False;1;0;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.RangedFloatNode;88;-3040,-3328;Half;False;Property;_SkyboxFogHeight;Skybox Fog Height;23;0;Create;True;0;0;True;0;False;1;1;0;1;0;1;FLOAT;0 -Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;383;-320,-4352;Float;False;True;-1;2;HeightFogShaderGUI;0;1;BOXOPHOBIC/Atmospherics/Height Fog Preset;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;5;False;-1;10;False;-1;True;0;False;-1;0;False;-1;True;False;True;2;False;-1;True;True;True;True;True;0;False;-1;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;594;True;7;False;595;True;False;0;False;500;0;False;500;True;2;RenderType=Overlay=RenderType;Queue=Overlay=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 -Node;AmplifyShaderEditor.CommentaryNode;557;-3328,-4992;Inherit;False;1022.024;100;Drawers / Settings;0;;1,0.4980392,0,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;612;-3326,-4480;Inherit;False;3198.742;100;Props;0;;0.497,1,0,1;0;0 -WireConnection;383;1;646;0 -ASEEND*/ -//CHKSM=9EFA234C1F1A493196CE52E9554310373041C300 \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta deleted file mode 100644 index 19d529e5..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Resources/Height Fog Preset.shader.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a3a3bc8785681554d9558e2ea68f100e -timeCreated: 1567415769 -licenseType: Store -ShaderImporter: - defaultTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta deleted file mode 100644 index d19fe164..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0f2529ec52a5fd6468161d93bd4440c7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef deleted file mode 100644 index 7ba3ccb0..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "Boxophobic.AtmosphericHeightFog.Runtime", - "references": [ - "Boxophobic.Utils.Scripts" - ], - "optionalUnityReferences": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [] -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta deleted file mode 100644 index 849ed431..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/Boxophobic.AtmosphericHeightFog.Runtime.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 946ad27fa286e62409a42cca7d545b88 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs deleted file mode 100644 index ba3b8379..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -namespace AtmosphericHeightFog -{ - public enum FogMode - { - UseScriptSettings = 10, - UsePresetSettings = 15, - UseTimeOfDay = 20, - } - - public enum FogAxisMode - { - XAxis = 0, - YAxis = 1, - ZAxis = 2, - } - - public enum FogLayersMode - { - MultiplyDistanceAndHeight = 10, - AdditiveDistanceAndHeight = 20, - } - - public enum FogDirectionalMode - { - Off = 0, - On = 1 - } - - public enum FogNoiseMode - { - Off = 0, - Procedural3D = 3 - } -} - diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta deleted file mode 100644 index ff110f08..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogEnums.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 5472a508dc786f44eac5926a86dba7ff -timeCreated: 1554699905 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs deleted file mode 100644 index 4850cbc8..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs +++ /dev/null @@ -1,439 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using Boxophobic.StyledGUI; -using UnityEngine.Serialization; - -namespace AtmosphericHeightFog -{ - [RequireComponent(typeof(MeshRenderer))] - [RequireComponent(typeof(MeshFilter))] - [ExecuteInEditMode] - public class HeightFogGlobal : StyledMonoBehaviour - { - [StyledBanner(0.55f, 0.7f, 1f, "Height Fog Global", "", "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.kfvqsi6kusw4")] - public bool styledBanner; - - [StyledCategory("Scene")] - public bool categoryScene; - - public Camera mainCamera; - public Light mainDirectional; - - [StyledCategory("Mode")] - public bool categoryMode; - - public FogMode fogMode = FogMode.UseScriptSettings; - - [StyledMessage("Info", "The Preset feature requires a material using the BOXOPHOBIC > Atmospherics > Fog Preset shader.", 10, 0)] - public bool messagePreset = false; - - [StyledMessage("Info", "The Time Of Day feature works by interpolating two Fog Preset materials using the BOXOPHOBIC > Atmospherics > Fog Preset shader. Please note that not all material properties can be interpolated properly!", 10, 0)] - public bool messageTimeOfDay = false; - - [Space(10)] - public Material presetMaterial; - - [Space(10)] - public Material presetDay; - public Material presetNight; - - [Space(10)] - [Range(0, 1)] - public float timeOfDay = 0; - - [StyledCategory("Fog")] - public bool categoryFog; - - [Range(0, 1)] - public float fogIntensity = 1; - - [Space(10)] - public FogAxisMode fogAxisMode = FogAxisMode.YAxis; - public FogLayersMode fogLayersMode = FogLayersMode.MultiplyDistanceAndHeight; - - [Space(10)] - [FormerlySerializedAs("fogColor")] - [ColorUsage(false, true)] - public Color fogColorStart = new Color(0.5f, 0.75f, 1.0f, 1.0f); - [ColorUsage(false, true)] - public Color fogColorEnd = new Color(0.75f, 1f, 1.25f, 1.0f); - [Range(0f, 1f)] - public float fogColorDuo = 0; - - [Space(10)] - public float fogDistanceStart = -100; - public float fogDistanceEnd = 100; - [Range(1, 8)] - public float fogDistanceFalloff = 1; - - [Space(10)] - public float fogHeightStart = 0; - public float fogHeightEnd = 100; - [Range(1f, 8f)] - public float fogHeightFalloff = 1; - - [StyledCategory("Skybox")] - public bool categorySkybox; - - [Range(0, 1)] - public float skyboxFogIntensity = 1; - [Range(0, 1)] - public float skyboxFogHeight = 1; - [Range(1, 8)] - public float skyboxFogFalloff = 1; - [Range(0, 1)] - public float skyboxFogFill = 0; - - [StyledCategory("Directional")] - public bool categoryDirectional; - - [Range(0, 1)] - public float directionalIntensity = 1; - [Range(1, 8)] - public float directionalFalloff = 1; - [ColorUsage(false, true)] - public Color directionalColor = new Color(1f, 0.75f, 0.5f, 1f); - - [StyledCategory("Noise")] - public bool categoryNoise; - - public FogNoiseMode noiseMode = FogNoiseMode.Procedural3D; - [Range(0, 1)] - public float noiseIntensity = 1; - public float noiseDistanceEnd = 50; - public float noiseScale = 30; - public Vector3 noiseSpeed = new Vector3(0.5f, 0f, 0.5f); - - [StyledCategory("Advanced")] - public bool categoryAdvanced; - - public bool manualPositionAndScale = false; - public int renderPriority = 1; - - [StyledSpace(5)] - public bool styledSpace0; - - Material localMaterial; - Material blendMaterial; - Material globalMaterial; - Material missingMaterial; - Material currentMaterial; - [HideInInspector] - public Material overrideMaterial; - [HideInInspector] - public float overrideCamToVolumeDistance = 1f; - [HideInInspector] - public float overrideVolumeDistanceFade = 0f; - - [HideInInspector] - public int version = 0; - - // Deprecated - [HideInInspector] - public FogDirectionalMode directionalMode = FogDirectionalMode.On; - - void Awake() - { - if (version < 180) - { - directionalIntensity = directionalIntensity * (int)directionalMode; - version = 180; - } - - gameObject.name = "Height Fog Global"; - - gameObject.transform.position = Vector3.zero; - gameObject.transform.rotation = Quaternion.identity; - - GetCamera(); - GetDirectional(); - - if (mainCamera != null) - { - if (mainCamera.depthTextureMode != DepthTextureMode.Depth || mainCamera.depthTextureMode != DepthTextureMode.DepthNormals) - { - mainCamera.depthTextureMode = DepthTextureMode.Depth; - } - } - else - { - Debug.Log("[Atmospheric Height Fog] Camera not found! Make sure you have a camera in the scene or your camera has the MainCamera tag!"); - } - - var sphereMeshGO = GameObject.CreatePrimitive(PrimitiveType.Sphere); - var sphereMesh = sphereMeshGO.GetComponent().sharedMesh; - DestroyImmediate(sphereMeshGO); - - gameObject.GetComponent().sharedMesh = sphereMesh; - - localMaterial = new Material(Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Preset")); - localMaterial.name = "Local"; - - overrideMaterial = new Material(localMaterial); - overrideMaterial.name = "Override"; - - blendMaterial = new Material(localMaterial); - blendMaterial.name = "Blend"; - - globalMaterial = new Material(Shader.Find("Hidden/BOXOPHOBIC/Atmospherics/Height Fog Global")); - globalMaterial.name = "Height Fog Global"; - - missingMaterial = Resources.Load("Height Fog Preset"); - - gameObject.GetComponent().sharedMaterial = globalMaterial; - } - - void OnEnable() - { - gameObject.GetComponent().enabled = true; - } - - void OnDisable() - { - gameObject.GetComponent().enabled = false; - Shader.SetGlobalFloat("AHF_FogIntensity", 0); - } - - void OnDestroy() - { - Shader.SetGlobalFloat("AHF_FogIntensity", 0); - } - - void Update() - { - if (mainCamera == null) - { - Debug.Log("[Atmospheric Height Fog] " + "Make sure you set scene camera tag to Main Camera for the fog to work!"); - return; - } - - if (!manualPositionAndScale) - { - SetFogSphereSize(); - SetFogSpherePosition(); - } - - currentMaterial = localMaterial; - - if (fogMode == FogMode.UseScriptSettings) - { - SetLocalMaterial(); - - messageTimeOfDay = false; - messagePreset = false; - } - else if (fogMode == FogMode.UsePresetSettings) - { - if (presetMaterial != null && presetMaterial.HasProperty("_IsHeightFogPreset")) - { - currentMaterial = presetMaterial; - messagePreset = false; - } - else - { - currentMaterial = missingMaterial; - messagePreset = true; - } - - messageTimeOfDay = false; - } - else if (fogMode == FogMode.UseTimeOfDay) - { - if (presetDay != null && presetDay.HasProperty("_IsHeightFogPreset") && presetNight != null && presetNight.HasProperty("_IsHeightFogPreset")) - { - currentMaterial.Lerp(presetDay, presetNight, timeOfDay); - messageTimeOfDay = false; - } - else - { - currentMaterial = missingMaterial; - messageTimeOfDay = true; - } - - messagePreset = false; - } - - if (mainDirectional != null) - { - currentMaterial.SetVector("_DirectionalDir", -mainDirectional.transform.forward); - } - else - { - currentMaterial.SetVector("_DirectionalDir", Vector4.zero); - } - - if (overrideCamToVolumeDistance > overrideVolumeDistanceFade) - { - blendMaterial.CopyPropertiesFromMaterial(currentMaterial); - } - else if (overrideCamToVolumeDistance < overrideVolumeDistanceFade) - { - var lerp = 1 - (overrideCamToVolumeDistance / overrideVolumeDistanceFade); - blendMaterial.Lerp(currentMaterial, overrideMaterial, lerp); - } - - SetGlobalMaterials(); - SetRenderQueue(); - } - - void GetCamera() - { - if (mainCamera == null) - { - mainCamera = Camera.main; - } - } - - void GetDirectional() - { - if (mainDirectional == null) - { - var allLights = FindObjectsOfType(); - var intensity = 0.0f; - - for (int i = 0; i < allLights.Length; i++) - { - if (allLights[i].type == LightType.Directional) - { - if (allLights[i].intensity > intensity) - { - mainDirectional = allLights[i]; - } - } - } - } - } - - void SetLocalMaterial() - { - localMaterial.SetFloat("_FogIntensity", fogIntensity); - - localMaterial.SetColor("_FogColorStart", fogColorStart); - localMaterial.SetColor("_FogColorEnd", fogColorEnd); - localMaterial.SetFloat("_FogColorDuo", fogColorDuo); - - localMaterial.SetFloat("_FogDistanceStart", fogDistanceStart); - localMaterial.SetFloat("_FogDistanceEnd", fogDistanceEnd); - localMaterial.SetFloat("_FogDistanceFalloff", fogDistanceFalloff); - - localMaterial.SetFloat("_FogHeightStart", fogHeightStart); - localMaterial.SetFloat("_FogHeightEnd", fogHeightEnd); - localMaterial.SetFloat("_FogHeightFalloff", fogHeightFalloff); - - localMaterial.SetFloat("_SkyboxFogIntensity", skyboxFogIntensity); - localMaterial.SetFloat("_SkyboxFogHeight", skyboxFogHeight); - localMaterial.SetFloat("_SkyboxFogFalloff", skyboxFogFalloff); - localMaterial.SetFloat("_SkyboxFogFill", skyboxFogFill); - - localMaterial.SetFloat("_DirectionalIntensity", directionalIntensity); - localMaterial.SetFloat("_DirectionalFalloff", directionalFalloff); - localMaterial.SetColor("_DirectionalColor", directionalColor); - - localMaterial.SetFloat("_NoiseIntensity", noiseIntensity); - localMaterial.SetFloat("_NoiseDistanceEnd", noiseDistanceEnd); - localMaterial.SetFloat("_NoiseScale", noiseScale); - localMaterial.SetVector("_NoiseSpeed", noiseSpeed); - - if (fogAxisMode == FogAxisMode.XAxis) - { - localMaterial.SetVector("_FogAxisOption", new Vector4(1, 0, 0, 0)); - } - else if (fogAxisMode == FogAxisMode.YAxis) - { - localMaterial.SetVector("_FogAxisOption", new Vector4(0, 1, 0, 0)); - } - else if (fogAxisMode == FogAxisMode.ZAxis) - { - localMaterial.SetVector("_FogAxisOption", new Vector4(0, 0, 1, 0)); - } - - if (fogLayersMode == FogLayersMode.MultiplyDistanceAndHeight) - { - localMaterial.SetFloat("_FogLayersMode", 0.0f); - } - else - { - localMaterial.SetFloat("_FogLayersMode", 1.0f); - } - - if (noiseMode == FogNoiseMode.Procedural3D) - { - localMaterial.SetFloat("_NoiseModeBlend", 1.0f); - } - else - { - localMaterial.SetFloat("_NoiseModeBlend", 0.0f); - } - } - - void SetGlobalMaterials() - { - if (blendMaterial.HasProperty("_IsHeightFogPreset") == false) - { - return; - } - - Shader.SetGlobalFloat("AHF_FogIntensity", blendMaterial.GetFloat("_FogIntensity")); - - Shader.SetGlobalVector("AHF_FogAxisOption", blendMaterial.GetVector("_FogAxisOption")); - Shader.SetGlobalFloat("AHF_FogLayersMode", blendMaterial.GetFloat("_FogLayersMode")); - - Shader.SetGlobalColor("AHF_FogColorStart", blendMaterial.GetColor("_FogColorStart")); - Shader.SetGlobalColor("AHF_FogColorEnd", blendMaterial.GetColor("_FogColorEnd")); - Shader.SetGlobalFloat("AHF_FogColorDuo", blendMaterial.GetFloat("_FogColorDuo")); - - Shader.SetGlobalFloat("AHF_FogDistanceStart", blendMaterial.GetFloat("_FogDistanceStart")); - Shader.SetGlobalFloat("AHF_FogDistanceEnd", blendMaterial.GetFloat("_FogDistanceEnd")); - Shader.SetGlobalFloat("AHF_FogDistanceFalloff", blendMaterial.GetFloat("_FogDistanceFalloff")); - - Shader.SetGlobalFloat("AHF_FogHeightStart", blendMaterial.GetFloat("_FogHeightStart")); - Shader.SetGlobalFloat("AHF_FogHeightEnd", blendMaterial.GetFloat("_FogHeightEnd")); - Shader.SetGlobalFloat("AHF_FogHeightFalloff", blendMaterial.GetFloat("_FogHeightFalloff")); - - Shader.SetGlobalFloat("AHF_SkyboxFogIntensity", blendMaterial.GetFloat("_SkyboxFogIntensity")); - Shader.SetGlobalFloat("AHF_SkyboxFogHeight", blendMaterial.GetFloat("_SkyboxFogHeight")); - Shader.SetGlobalFloat("AHF_SkyboxFogFalloff", blendMaterial.GetFloat("_SkyboxFogFalloff")); - Shader.SetGlobalFloat("AHF_SkyboxFogFill", blendMaterial.GetFloat("_SkyboxFogFill")); - - Shader.SetGlobalVector("AHF_DirectionalDir", blendMaterial.GetVector("_DirectionalDir")); - Shader.SetGlobalFloat("AHF_DirectionalIntensity", blendMaterial.GetFloat("_DirectionalIntensity")); - Shader.SetGlobalFloat("AHF_DirectionalFalloff", blendMaterial.GetFloat("_DirectionalFalloff")); - Shader.SetGlobalColor("AHF_DirectionalColor", blendMaterial.GetColor("_DirectionalColor")); - - Shader.SetGlobalFloat("AHF_NoiseModeBlend", blendMaterial.GetFloat("_NoiseModeBlend")); - Shader.SetGlobalFloat("AHF_NoiseIntensity", blendMaterial.GetFloat("_NoiseIntensity")); - Shader.SetGlobalFloat("AHF_NoiseDistanceEnd", blendMaterial.GetFloat("_NoiseDistanceEnd")); - Shader.SetGlobalFloat("AHF_NoiseScale", blendMaterial.GetFloat("_NoiseScale")); - Shader.SetGlobalVector("AHF_NoiseSpeed", blendMaterial.GetVector("_NoiseSpeed")); - - if (blendMaterial.GetFloat("_NoiseModeBlend") > 0) - { - Shader.DisableKeyword("AHF_NOISEMODE_OFF"); - Shader.EnableKeyword("AHF_NOISEMODE_PROCEDURAL3D"); - } - else - { - Shader.DisableKeyword("AHF_NOISEMODE_PROCEDURAL3D"); - Shader.EnableKeyword("AHF_NOISEMODE_OFF"); - } - } - - void SetFogSphereSize() - { - var cameraFar = mainCamera.farClipPlane - 1; - gameObject.transform.localScale = new Vector3(cameraFar, cameraFar, cameraFar); - } - - void SetFogSpherePosition() - { - transform.position = mainCamera.transform.position; - } - - void SetRenderQueue() - { - globalMaterial.renderQueue = 3000 + renderPriority; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta deleted file mode 100644 index f03d0673..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogGlobal.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d8023d2ae1fcb2948a39527720c2087b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 100 - icon: {fileID: 2800000, guid: 1ed6c69382334dd4e94337c8860e7116, type: 3} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs deleted file mode 100644 index abbbefe4..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs +++ /dev/null @@ -1,392 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using Boxophobic.StyledGUI; -using UnityEngine.Serialization; - -namespace AtmosphericHeightFog -{ - [ExecuteInEditMode] - [HelpURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.hd5jt8lucuqq")] - public class HeightFogOverride : StyledMonoBehaviour - { - [StyledBanner(0.55f, 0.7f, 1f, "Height Fog Override", "", "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.hd5jt8lucuqq")] - public bool styledBanner; - - [StyledMessage("Info", "The Height Fog Global object is missing from your scene! Please add it before using the Height Fog Override component!", 5, 0)] - public bool messageNoHeightFogGlobal = false; - - [StyledCategory("Volume")] - public bool categoryVolume; - - public float volumeDistanceFade = 3; - public bool volumeGizmoVisibility = true; - - [StyledCategory("Scene")] - public bool categoryScene; - - public Camera mainCamera; - public Light mainDirectional; - - [StyledCategory("Mode")] - public bool categoryMode; - - public FogMode fogMode = FogMode.UseScriptSettings; - - [StyledMessage("Info", "The Preset feature requires a material using the BOXOPHOBIC > Atmospherics > Fog Preset shader.", 10, 0)] - public bool messagePreset = false; - - [StyledMessage("Info", "The Time Of Day feature works by interpolating two Fog Preset materials using the BOXOPHOBIC > Atmospherics > Fog Preset shader. Please note that not all material properties can be interpolated properly!", 10, 0)] - public bool messageTimeOfDay = false; - - [Space(10)] - public Material presetMaterial; - - [Space(10)] - public Material presetDay; - public Material presetNight; - - [Space(10)] - [Range(0, 1)] - public float timeOfDay = 0; - - [StyledCategory("Fog")] - public bool categoryFog; - - [Range(0, 1)] - public float fogIntensity = 1; - - [Space(10)] - public FogAxisMode fogAxisMode = FogAxisMode.YAxis; - public FogLayersMode fogLayersMode = FogLayersMode.MultiplyDistanceAndHeight; - - [Space(10)] - [FormerlySerializedAs("fogColor")] - [ColorUsage(false, true)] - public Color fogColorStart = new Color(0.5f, 0.75f, 0.0f, 1.0f); - [ColorUsage(false, true)] - public Color fogColorEnd = new Color(0.75f, 1f, 0.0f, 1.0f); - [Range(0, 1)] - public float fogColorDuo = 0; - - [Space(10)] - public float fogDistanceStart = -100; - public float fogDistanceEnd = 100; - [Range(1, 8)] - public float fogDistanceFalloff = 1; - - [Space(10)] - public float fogHeightStart = 0; - public float fogHeightEnd = 100; - [Range(1f, 8f)] - public float fogHeightFalloff = 1; - - [StyledCategory("Skybox")] - public bool categorySkybox; - - [Range(0, 1)] - public float skyboxFogIntensity = 1; - [Range(0, 1)] - public float skyboxFogHeight = 1; - [Range(1, 8)] - public float skyboxFogFalloff = 1; - [Range(0, 1)] - public float skyboxFogFill = 0; - - [StyledCategory("Directional")] - public bool categoryDirectional; - - [Range(0, 1)] - public float directionalIntensity = 1; - [Range(1, 8)] - public float directionalFalloff = 1; - [ColorUsage(false, true)] - public Color directionalColor = new Color(1f, 0.75f, 0.5f, 1f); - - [StyledCategory("Noise")] - public bool categoryNoise; - - public FogNoiseMode noiseMode = FogNoiseMode.Procedural3D; - [Range(0, 1)] - public float noiseIntensity = 1; - public float noiseDistanceEnd = 50; - public float noiseScale = 30; - public Vector3 noiseSpeed = new Vector3(0.5f, 0f, 0.5f); - - [StyledSpace(5)] - public bool styledSpace0; - - Material localMaterial; - Material missingMaterial; - Material currentMaterial; - Collider volumeCollider; - HeightFogGlobal globalFog = null; - bool distanceSent = false; - - [HideInInspector] - public int version = 0; - - // Deprecated - [HideInInspector] - public FogDirectionalMode directionalMode = FogDirectionalMode.On; - - void Start() - { - if (version < 180) - { - directionalIntensity = directionalIntensity * (int)directionalMode; - version = 180; - } - - volumeCollider = GetComponent(); - - if (volumeCollider == null) - { - Debug.Log("[Atmospheric Height Fog] Please create override volumes from the GameObject menu > BOXOPHOBIC > Atmospheric Height Fog > Override!"); - DestroyImmediate(this); - } - - if (GameObject.Find("Height Fog Global") != null) - { - GameObject globalFogGO = GameObject.Find("Height Fog Global"); - globalFog = globalFogGO.GetComponent(); - - messageNoHeightFogGlobal = false; - } - else - { - messageNoHeightFogGlobal = true; - } - - GetDirectional(); - - localMaterial = new Material(Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Preset")); - localMaterial.name = "Local"; - - missingMaterial = Resources.Load("Height Fog Preset"); - - SetLocalMaterial(); - } - - void OnDisable() - { - if (globalFog != null) - { - globalFog.overrideCamToVolumeDistance = 1; - globalFog.overrideVolumeDistanceFade = 0; - } - } - - void OnDestroy() - { - if (globalFog != null) - { - globalFog.overrideCamToVolumeDistance = 1; - globalFog.overrideVolumeDistanceFade = 0; - } - } - - void Update() - { - GetCamera(); - - if (mainCamera == null || globalFog == null) - { - return; - } - - currentMaterial = localMaterial; - - if (fogMode == FogMode.UseScriptSettings) - { - SetLocalMaterial(); - - messageTimeOfDay = false; - messagePreset = false; - } - else if (fogMode == FogMode.UsePresetSettings) - { - if (presetMaterial != null && presetMaterial.HasProperty("_IsHeightFogPreset")) - { - currentMaterial = presetMaterial; - messagePreset = false; - } - else - { - currentMaterial = missingMaterial; - messagePreset = true; - } - - messageTimeOfDay = false; - } - else if (fogMode == FogMode.UseTimeOfDay) - { - if (presetDay != null && presetDay.HasProperty("_IsHeightFogPreset") && presetNight != null && presetNight.HasProperty("_IsHeightFogPreset")) - { - currentMaterial.Lerp(presetDay, presetNight, timeOfDay); - messageTimeOfDay = false; - } - else - { - currentMaterial = missingMaterial; - messageTimeOfDay = true; - } - - - messagePreset = false; - } - - if (mainDirectional != null) - { - currentMaterial.SetVector("_DirectionalDir", -mainDirectional.transform.forward); - } - else - { - currentMaterial.SetVector("_DirectionalDir", Vector4.zero); - } - - Vector3 camPos = mainCamera.transform.position; - Vector3 closestPos = volumeCollider.ClosestPoint(camPos); - - float dist = Vector3.Distance(camPos, closestPos); - - if (dist > volumeDistanceFade && distanceSent == false) - { - globalFog.overrideCamToVolumeDistance = Mathf.Infinity; - distanceSent = true; - } - else if (dist < volumeDistanceFade) - { - globalFog.overrideMaterial = currentMaterial; - globalFog.overrideCamToVolumeDistance = dist; - globalFog.overrideVolumeDistanceFade = volumeDistanceFade; - distanceSent = false; - } - } - - void OnDrawGizmos() - { - if (volumeCollider == null || !volumeGizmoVisibility) - { - return; - } - - var color = currentMaterial.GetColor("_FogColorStart"); - var mul = 2f; - - if (volumeCollider.GetType() == typeof(BoxCollider)) - { - var col = GetComponent(); - - Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 1.0f); - Gizmos.DrawWireCube(transform.position, new Vector3(transform.lossyScale.x * col.size.x, transform.lossyScale.y * col.size.y, transform.lossyScale.z * col.size.z)); - - Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 0.5f); - Gizmos.DrawWireCube(transform.position, new Vector3(transform.lossyScale.x * col.size.x + (volumeDistanceFade * 2), transform.lossyScale.y * col.size.y + (volumeDistanceFade * 2), transform.lossyScale.z * col.size.z + (volumeDistanceFade * 2))); - - } - else - { - var col = GetComponent(); - var scale = Mathf.Max(Mathf.Max(gameObject.transform.localScale.x, gameObject.transform.localScale.y), gameObject.transform.localScale.z); - - Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 1.0f); - Gizmos.DrawWireSphere(transform.position, col.radius * scale); - - Gizmos.color = new Color(color.r * mul, color.g * mul, color.b * mul, 0.5f); - Gizmos.DrawWireSphere(transform.position, col.radius * scale + volumeDistanceFade); - } - } - - void GetCamera() - { - if (mainCamera == null) - { - mainCamera = Camera.main; - } - } - - void GetDirectional() - { - if (mainDirectional == null) - { - var allLights = FindObjectsOfType(); - var intensity = 0.0f; - - for (int i = 0; i < allLights.Length; i++) - { - if (allLights[i].type == LightType.Directional) - { - if (allLights[i].intensity > intensity) - { - mainDirectional = allLights[i]; - } - } - } - } - } - - void SetLocalMaterial() - { - localMaterial.SetFloat("_FogIntensity", fogIntensity); - - localMaterial.SetColor("_FogColorStart", fogColorStart); - localMaterial.SetColor("_FogColorEnd", fogColorEnd); - localMaterial.SetFloat("_FogColorDuo", fogColorDuo); - - localMaterial.SetFloat("_FogDistanceStart", fogDistanceStart); - localMaterial.SetFloat("_FogDistanceEnd", fogDistanceEnd); - localMaterial.SetFloat("_FogDistanceFalloff", fogDistanceFalloff); - - localMaterial.SetFloat("_FogHeightStart", fogHeightStart); - localMaterial.SetFloat("_FogHeightEnd", fogHeightEnd); - localMaterial.SetFloat("_FogHeightFalloff", fogHeightFalloff); - - localMaterial.SetFloat("_SkyboxFogIntensity", skyboxFogIntensity); - localMaterial.SetFloat("_SkyboxFogHeight", skyboxFogHeight); - localMaterial.SetFloat("_SkyboxFogFalloff", skyboxFogFalloff); - localMaterial.SetFloat("_SkyboxFogFill", skyboxFogFill); - - localMaterial.SetFloat("_DirectionalIntensity", directionalIntensity); - localMaterial.SetFloat("_DirectionalFalloff", directionalFalloff); - localMaterial.SetColor("_DirectionalColor", directionalColor); - - localMaterial.SetFloat("_NoiseIntensity", noiseIntensity); - localMaterial.SetFloat("_NoiseDistanceEnd", noiseDistanceEnd); - localMaterial.SetFloat("_NoiseScale", noiseScale); - localMaterial.SetVector("_NoiseSpeed", noiseSpeed); - - if (fogAxisMode == FogAxisMode.XAxis) - { - localMaterial.SetVector("_FogAxisOption", new Vector4(1, 0, 0, 0)); - } - else if (fogAxisMode == FogAxisMode.YAxis) - { - localMaterial.SetVector("_FogAxisOption", new Vector4(0, 1, 0, 0)); - } - else if (fogAxisMode == FogAxisMode.ZAxis) - { - localMaterial.SetVector("_FogAxisOption", new Vector4(0, 0, 1, 0)); - } - - if (fogLayersMode == FogLayersMode.MultiplyDistanceAndHeight) - { - localMaterial.SetFloat("_FogLayersMode", 0.0f); - } - else - { - localMaterial.SetFloat("_FogLayersMode", 1.0f); - } - - if (noiseMode == FogNoiseMode.Procedural3D) - { - localMaterial.SetFloat("_NoiseModeBlend", 1.0f); - } - else - { - localMaterial.SetFloat("_NoiseModeBlend", 0.0f); - } - } - } -} - diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta deleted file mode 100644 index 86ea5b0e..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogOverride.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: ac1c26670b7bd6a47ac695141473ab42 -timeCreated: 1568146209 -licenseType: Store -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {fileID: 2800000, guid: 500f3eaec95c62949b969478343b29d4, type: 3} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs deleted file mode 100644 index 6a014d97..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using Boxophobic; -using Boxophobic.StyledGUI; -#if UNITY_EDITOR -using UnityEditor; -#endif - -namespace AtmosphericHeightFog -{ - [ExecuteInEditMode] - [DisallowMultipleComponent] - [HelpURL("https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.pzat2b29j9a0")] - public class HeightFogPerObject : StyledMonoBehaviour - { - [StyledBanner(0.474f, 0.709f, 0.901f, "Height Fog Per Object", "", "https://docs.google.com/document/d/1pIzIHIZ-cSh2ykODSZCbAPtScJ4Jpuu7lS3rNEHCLbc/edit#heading=h.pzat2b29j9a0")] - public bool styledBanner; - - [StyledMessage("Info", "The Object does not have a Mesh Renderer!", 5, 5)] - public bool messageNoRenderer = false; - - [StyledMessage("Info", "Objects using multiple materials are not supported!", 5, 5)] - public bool messageMultiMaterials = false; - - [StyledMessage("Info", "The Object does not have a Material assigned!", 5, 5)] - public bool messageNoMaterial = false; - - [StyledMessage("Info", "Please note that the Height Fog Per Object option will not work for all transparent objects. Available in Play mode only. Please read the documentation for more!", 0, 0)] - public bool messageTransparencySupport = true; - - [StyledCategory("Settings")] - public bool categoryMaterial; - - public Material customFogMaterial = null; - - [StyledMessage("Info", "The is not a valid Height Fog material! Please assign the correct shader first!", 5, 0)] - public bool messageInvalidFogMaterial = false; - - [StyledSpace(5)] - public bool styledSpace0; - - int transparencyRenderQueue = 3002; - - Material originalMaterial; - Material instanceMaterial; - Material transparencyMaterial; - - GameObject transparencyGO; - - void Awake() - { - if (GameObjectIsInvalid()) - { - return; - } - -#if UNITY_EDITOR - if (Application.isPlaying == false) - { - GameObjectDisableBathingFlag(); - return; - } -#endif - - transparencyGO = new GameObject(gameObject.name + " (Height Fog Object)"); - - transparencyGO.transform.parent = gameObject.transform; - transparencyGO.transform.localPosition = Vector3.zero; - transparencyGO.transform.localRotation = Quaternion.identity; - transparencyGO.transform.localScale = Vector3.one; - - transparencyGO.AddComponent(); - transparencyGO.AddComponent(); - - transparencyGO.GetComponent().sharedMesh = gameObject.GetComponent().sharedMesh; - - Material originalMaterial = gameObject.GetComponent().sharedMaterial; - - instanceMaterial = new Material(originalMaterial); - instanceMaterial.name = originalMaterial.name + " (Instance)"; - //instanceMaterial.SetOverrideTag("DisableBatching", "True"); - - if (customFogMaterial == null) - { - transparencyMaterial = new Material(instanceMaterial); - transparencyMaterial.shader = Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Per Object"); - transparencyMaterial.name = originalMaterial.name + " (Generic Fog)"; - } - else if (customFogMaterial != null) - { - if (customFogMaterial.HasProperty("_IsHeightFogShader")) - { - transparencyMaterial = customFogMaterial; - transparencyMaterial.name = originalMaterial.name + " (Custom Fog)"; - } - else - { - transparencyMaterial = new Material(instanceMaterial); - transparencyMaterial.shader = Shader.Find("BOXOPHOBIC/Atmospherics/Height Fog Per Object"); - transparencyMaterial.name = originalMaterial.name + " (Generic Fog)"; - } - } - - if (transparencyMaterial.HasProperty("_IsStandardPipeline")) - { - transparencyRenderQueue = 3002; - } - else - { - transparencyRenderQueue = 3102; - } - - instanceMaterial.renderQueue = transparencyRenderQueue; - transparencyMaterial.renderQueue = transparencyRenderQueue + 1; - - gameObject.GetComponent().material = instanceMaterial; - transparencyGO.GetComponent().material = transparencyMaterial; - - } -#if UNITY_EDITOR - void Update() - { - if (Application.isPlaying == true) - { - return; - } - - if (gameObject.isStatic) - { - GameObjectDisableBathingFlag(); - } - - if (customFogMaterial == null) - { - messageInvalidFogMaterial = false; - } - else if (customFogMaterial != null) - { - if (customFogMaterial.HasProperty("_IsHeightFogShader") == false) - { - messageInvalidFogMaterial = true; - } - else - { - messageInvalidFogMaterial = false; - } - } - } -#endif - - bool GameObjectIsInvalid() - { - bool invalid = false; - - if (gameObject.GetComponent() == null) - { - messageNoRenderer = true; - invalid = true; - } - - else if (gameObject.GetComponent().sharedMaterials.Length > 1) - { - messageMultiMaterials = true; - invalid = true; - } - - else if (gameObject.GetComponent().sharedMaterial == null) - { - messageNoMaterial = true; - invalid = true; - } - - return invalid; - } - -#if UNITY_EDITOR - void GameObjectDisableBathingFlag() - { - StaticEditorFlags flags = GameObjectUtility.GetStaticEditorFlags(gameObject); - flags = flags & ~(StaticEditorFlags.BatchingStatic); - GameObjectUtility.SetStaticEditorFlags(gameObject, flags); - } -#endif - } -} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta deleted file mode 100644 index 8e2a36c7..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Runtime/HeightFogPerObject.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 002595e91f609a246845cbf8a32fd288 -timeCreated: 1568222395 -licenseType: Store -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -333 - icon: {fileID: 2800000, guid: e5ce702f9a95f4f42a9ebd790113406a, type: 3} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta deleted file mode 100644 index ab39d080..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 38b7dce3fd7e1af418e30778e52cfc89 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader deleted file mode 100644 index a30f1675..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader +++ /dev/null @@ -1,280 +0,0 @@ -// Made with Amplify Shader Editor -// Available at the Unity Asset Store - http://u3d.as/y3X -Shader "UI/Default (Height Fog Support)" -{ - Properties - { - [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} - _Color ("Tint", Color) = (1,1,1,1) - - _StencilComp ("Stencil Comparison", Float) = 8 - _Stencil ("Stencil ID", Float) = 0 - _StencilOp ("Stencil Operation", Float) = 0 - _StencilWriteMask ("Stencil Write Mask", Float) = 255 - _StencilReadMask ("Stencil Read Mask", Float) = 255 - - _ColorMask ("Color Mask", Float) = 15 - - [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 - [HideInInspector] _texcoord( "", 2D ) = "white" {} - - } - - SubShader - { - LOD 0 - - Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" "CanUseSpriteAtlas"="True" } - - Stencil - { - Ref [_Stencil] - ReadMask [_StencilReadMask] - WriteMask [_StencilWriteMask] - CompFront [_StencilComp] - PassFront [_StencilOp] - FailFront Keep - ZFailFront Keep - CompBack Always - PassBack Keep - FailBack Keep - ZFailBack Keep - } - - - Cull Off - Lighting Off - ZWrite Off - ZTest [unity_GUIZTestMode] - Blend SrcAlpha OneMinusSrcAlpha - ColorMask [_ColorMask] - - - Pass - { - Name "Default" - CGPROGRAM - - #pragma vertex vert - #pragma fragment frag - #pragma target 3.0 - - #include "UnityCG.cginc" - #include "UnityUI.cginc" - - #pragma multi_compile __ UNITY_UI_CLIP_RECT - #pragma multi_compile __ UNITY_UI_ALPHACLIP - - #include "UnityShaderVariables.cginc" - #define ASE_NEEDS_FRAG_COLOR - #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D - - - struct appdata_t - { - float4 vertex : POSITION; - float4 color : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID - - }; - - struct v2f - { - float4 vertex : SV_POSITION; - fixed4 color : COLOR; - half2 texcoord : TEXCOORD0; - float4 worldPosition : TEXCOORD1; - UNITY_VERTEX_INPUT_INSTANCE_ID - UNITY_VERTEX_OUTPUT_STEREO - float4 ase_texcoord2 : TEXCOORD2; - }; - - uniform fixed4 _Color; - uniform fixed4 _TextureSampleAdd; - uniform float4 _ClipRect; - uniform sampler2D _MainTex; - uniform float4 _MainTex_ST; - uniform half4 AHF_FogColorStart; - uniform half4 AHF_FogColorEnd; - uniform half AHF_FogDistanceStart; - uniform half AHF_FogDistanceEnd; - uniform half AHF_FogDistanceFalloff; - uniform half AHF_FogColorDuo; - uniform half4 AHF_DirectionalColor; - uniform half3 AHF_DirectionalDir; - uniform half AHF_DirectionalIntensity; - uniform half AHF_DirectionalFalloff; - uniform half3 AHF_FogAxisOption; - uniform half AHF_FogHeightEnd; - uniform half AHF_FogHeightStart; - uniform half AHF_FogHeightFalloff; - uniform half AHF_FogLayersMode; - uniform half AHF_NoiseScale; - uniform half3 AHF_NoiseSpeed; - uniform half AHF_NoiseDistanceEnd; - uniform half AHF_NoiseIntensity; - uniform half AHF_NoiseModeBlend; - uniform half AHF_FogIntensity; - float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } - float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } - float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } - float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } - float snoise( float3 v ) - { - const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); - float3 i = floor( v + dot( v, C.yyy ) ); - float3 x0 = v - i + dot( i, C.xxx ); - float3 g = step( x0.yzx, x0.xyz ); - float3 l = 1.0 - g; - float3 i1 = min( g.xyz, l.zxy ); - float3 i2 = max( g.xyz, l.zxy ); - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - i = mod3D289( i); - float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); - float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) - float4 x_ = floor( j / 7.0 ); - float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) - float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 h = 1.0 - abs( x ) - abs( y ); - float4 b0 = float4( x.xy, y.xy ); - float4 b1 = float4( x.zw, y.zw ); - float4 s0 = floor( b0 ) * 2.0 + 1.0; - float4 s1 = floor( b1 ) * 2.0 + 1.0; - float4 sh = -step( h, 0.0 ); - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 g0 = float3( a0.xy, h.x ); - float3 g1 = float3( a0.zw, h.y ); - float3 g2 = float3( a1.xy, h.z ); - float3 g3 = float3( a1.zw, h.w ); - float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); - m = m* m; - m = m* m; - float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); - return 42.0 * dot( m, px); - } - - - - v2f vert( appdata_t IN ) - { - v2f OUT; - UNITY_SETUP_INSTANCE_ID( IN ); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); - UNITY_TRANSFER_INSTANCE_ID(IN, OUT); - OUT.worldPosition = IN.vertex; - float3 ase_worldPos = mul(unity_ObjectToWorld, IN.vertex).xyz; - OUT.ase_texcoord2.xyz = ase_worldPos; - - - //setting value to unused interpolator channels and avoid initialization warnings - OUT.ase_texcoord2.w = 0; - - OUT.worldPosition.xyz += float3( 0, 0, 0 ) ; - OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); - - OUT.texcoord = IN.texcoord; - - OUT.color = IN.color * _Color; - return OUT; - } - - fixed4 frag(v2f IN ) : SV_Target - { - float2 uv_MainTex = IN.texcoord.xy * _MainTex_ST.xy + _MainTex_ST.zw; - float4 temp_output_4_0 = ( IN.color * ( tex2D( _MainTex, uv_MainTex ) + _TextureSampleAdd ) ); - float3 ase_worldPos = IN.ase_texcoord2.xyz; - float3 WorldPosition2_g874 = ase_worldPos; - float temp_output_7_0_g876 = AHF_FogDistanceStart; - half FogDistanceMask12_g874 = pow( abs( saturate( ( ( distance( WorldPosition2_g874 , _WorldSpaceCameraPos ) - temp_output_7_0_g876 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g876 ) ) ) ) , AHF_FogDistanceFalloff ); - float3 lerpResult258_g874 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g874 - 0.5 ) ) * AHF_FogColorDuo )); - float3 normalizeResult318_g874 = normalize( ( WorldPosition2_g874 - _WorldSpaceCameraPos ) ); - float dotResult145_g874 = dot( normalizeResult318_g874 , AHF_DirectionalDir ); - half DirectionalMask30_g874 = pow( abs( ( (dotResult145_g874*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); - float3 lerpResult40_g874 = lerp( lerpResult258_g874 , (AHF_DirectionalColor).rgb , DirectionalMask30_g874); - float3 temp_output_2_0_g875 = lerpResult40_g874; - float3 gammaToLinear3_g875 = GammaToLinearSpace( temp_output_2_0_g875 ); - #ifdef UNITY_COLORSPACE_GAMMA - float3 staticSwitch1_g875 = temp_output_2_0_g875; - #else - float3 staticSwitch1_g875 = gammaToLinear3_g875; - #endif - float3 temp_output_256_0_g874 = staticSwitch1_g875; - float3 temp_output_92_86_g873 = temp_output_256_0_g874; - half3 AHF_FogAxisOption181_g874 = AHF_FogAxisOption; - float3 break159_g874 = ( WorldPosition2_g874 * AHF_FogAxisOption181_g874 ); - float temp_output_7_0_g877 = AHF_FogHeightEnd; - half FogHeightMask16_g874 = pow( abs( saturate( ( ( ( break159_g874.x + break159_g874.y + break159_g874.z ) - temp_output_7_0_g877 ) / ( AHF_FogHeightStart - temp_output_7_0_g877 ) ) ) ) , AHF_FogHeightFalloff ); - float lerpResult328_g874 = lerp( ( FogDistanceMask12_g874 * FogHeightMask16_g874 ) , saturate( ( FogDistanceMask12_g874 + FogHeightMask16_g874 ) ) , AHF_FogLayersMode); - float simplePerlin3D193_g874 = snoise( ( ( WorldPosition2_g874 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); - float temp_output_7_0_g879 = AHF_NoiseDistanceEnd; - half NoiseDistanceMask7_g874 = saturate( ( ( distance( WorldPosition2_g874 , _WorldSpaceCameraPos ) - temp_output_7_0_g879 ) / ( 0.0 - temp_output_7_0_g879 ) ) ); - float lerpResult198_g874 = lerp( 1.0 , (simplePerlin3D193_g874*0.5 + 0.5) , ( NoiseDistanceMask7_g874 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); - half NoiseSimplex3D24_g874 = lerpResult198_g874; - #if defined(AHF_NOISEMODE_OFF) - float staticSwitch42_g874 = lerpResult328_g874; - #elif defined(AHF_NOISEMODE_PROCEDURAL3D) - float staticSwitch42_g874 = ( lerpResult328_g874 * NoiseSimplex3D24_g874 ); - #else - float staticSwitch42_g874 = lerpResult328_g874; - #endif - float temp_output_43_0_g874 = ( staticSwitch42_g874 * AHF_FogIntensity ); - float temp_output_92_87_g873 = temp_output_43_0_g874; - float3 lerpResult82_g873 = lerp( (temp_output_4_0).rgb , temp_output_92_86_g873 , temp_output_92_87_g873); - float4 appendResult9 = (float4(lerpResult82_g873 , (temp_output_4_0).a)); - - half4 color = appendResult9; - - #ifdef UNITY_UI_CLIP_RECT - color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); - #endif - - #ifdef UNITY_UI_ALPHACLIP - clip (color.a - 0.001); - #endif - - return color; - } - ENDCG - } - } - - - -} -/*ASEBEGIN -Version=18103 -1927;1;1906;1020;359.1003;561.1945;1;True;False -Node;AmplifyShaderEditor.TemplateShaderPropertyNode;2;-512,0;Inherit;False;0;0;_MainTex;Shader;0;5;SAMPLER2D;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.SamplerNode;3;-320,0;Inherit;True;Property;_TextureSample0;Texture Sample 0;0;0;Create;True;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.TemplateShaderPropertyNode;11;-320,192;Inherit;False;0;0;_TextureSampleAdd;Pass;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.VertexColorNode;12;-512,-256;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.SimpleAddOpNode;10;64,64;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;1;COLOR;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;4;256,-256;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0 -Node;AmplifyShaderEditor.SwizzleNode;6;448,-256;Inherit;False;FLOAT3;0;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0 -Node;AmplifyShaderEditor.FunctionNode;21;640,-256;Inherit;False;Apply Height Fog;-1;;873;950890317d4f36a48a68d150cdab0168;0;1;81;FLOAT3;0,0,0;False;3;FLOAT3;85;FLOAT3;86;FLOAT;87 -Node;AmplifyShaderEditor.SwizzleNode;7;448,-160;Inherit;False;FLOAT;3;1;2;3;1;0;COLOR;0,0,0,0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.DynamicAppendNode;9;896,-256;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0 -Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1;1088,-256;Float;False;True;-1;2;;0;4;UI/Default (Height Fog Support);5056123faa0c79b47ab6ad7e8bf059a4;True;Default;0;0;Default;2;True;2;5;False;-1;10;False;-1;0;1;False;-1;0;False;-1;False;False;True;2;False;-1;True;True;True;True;True;0;True;-9;True;True;0;True;-5;255;True;-8;255;True;-7;0;True;-4;0;True;-6;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;-1;True;0;True;-11;False;True;5;Queue=Transparent=Queue=0;IgnoreProjector=True;RenderType=Transparent=RenderType;PreviewType=Plane;CanUseSpriteAtlas=True;False;0;False;False;False;False;False;False;False;False;False;False;True;2;0;;0;0;Standard;0;0;1;True;False;;0 -WireConnection;3;0;2;0 -WireConnection;10;0;3;0 -WireConnection;10;1;11;0 -WireConnection;4;0;12;0 -WireConnection;4;1;10;0 -WireConnection;6;0;4;0 -WireConnection;21;81;6;0 -WireConnection;7;0;4;0 -WireConnection;9;0;21;85 -WireConnection;9;3;7;0 -WireConnection;1;0;9;0 -ASEEND*/ -//CHKSM=49D35CE9F5579F0E10E33D6935C93B9E757590B8 \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta deleted file mode 100644 index 902f0505..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Core/Shaders/UI Default (Height Fog Support).shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: d2c008f025f10e84e840af15703382d8 -timeCreated: 1570703163 -licenseType: Store -ShaderImporter: - externalObjects: {} - defaultTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta deleted file mode 100644 index 4c2393e4..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c5760eeeac06ea9459834f69ca51ab32 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta deleted file mode 100644 index af19c562..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3231928b0b9f9ed409c298cebe7ed44f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim deleted file mode 100644 index ec89ee4f..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim +++ /dev/null @@ -1,205 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!74 &7400000 -AnimationClip: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Camera - serializedVersion: 6 - m_Legacy: 0 - m_Compressed: 0 - m_UseHighQualityCurve: 1 - m_RotationCurves: [] - m_CompressedRotationCurves: [] - m_EulerCurves: [] - m_PositionCurves: - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: {x: 0, y: 6, z: 50} - inSlope: {x: 0, y: 0, z: 0} - outSlope: {x: 0, y: 0, z: 0} - tangentMode: 0 - weightedMode: 0 - inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - - serializedVersion: 3 - time: 10 - value: {x: 0, y: 6, z: 0} - inSlope: {x: 0, y: 0, z: 0} - outSlope: {x: 0, y: 0, z: 0} - tangentMode: 0 - weightedMode: 0 - inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - - serializedVersion: 3 - time: 20 - value: {x: 0, y: 6, z: 50} - inSlope: {x: 0, y: 0, z: 0} - outSlope: {x: 0, y: 0, z: 0} - tangentMode: 0 - weightedMode: 0 - inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - path: - m_ScaleCurves: [] - m_FloatCurves: [] - m_PPtrCurves: [] - m_SampleRate: 60 - m_WrapMode: 0 - m_Bounds: - m_Center: {x: 0, y: 0, z: 0} - m_Extent: {x: 0, y: 0, z: 0} - m_ClipBindingConstant: - genericBindings: - - serializedVersion: 2 - path: 0 - attribute: 1 - script: {fileID: 0} - typeID: 4 - customType: 0 - isPPtrCurve: 0 - pptrCurveMapping: [] - m_AnimationClipSettings: - serializedVersion: 2 - m_AdditiveReferencePoseClip: {fileID: 0} - m_AdditiveReferencePoseTime: 0 - m_StartTime: 0 - m_StopTime: 20 - m_OrientationOffsetY: 0 - m_Level: 0 - m_CycleOffset: 0 - m_HasAdditiveReferencePose: 0 - m_LoopTime: 1 - m_LoopBlend: 0 - m_LoopBlendOrientation: 0 - m_LoopBlendPositionY: 0 - m_LoopBlendPositionXZ: 0 - m_KeepOriginalOrientation: 0 - m_KeepOriginalPositionY: 1 - m_KeepOriginalPositionXZ: 0 - m_HeightFromFeet: 0 - m_Mirror: 0 - m_EditorCurves: - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 10 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 20 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - attribute: m_LocalPosition.x - path: - classID: 4 - script: {fileID: 0} - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 6 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 10 - value: 6 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 20 - value: 6 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - attribute: m_LocalPosition.y - path: - classID: 4 - script: {fileID: 0} - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 50 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 10 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 20 - value: 50 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - attribute: m_LocalPosition.z - path: - classID: 4 - script: {fileID: 0} - m_EulerEditorCurves: [] - m_HasGenericRootTransform: 1 - m_HasMotionFloatCurves: 0 - m_Events: [] diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta deleted file mode 100644 index 5350d11b..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.anim.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 108c26ec30b8e8b42b9e7aa780026eae -timeCreated: 1568786396 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 7400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller deleted file mode 100644 index ec5a219e..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller +++ /dev/null @@ -1,69 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!91 &9100000 -AnimatorController: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Camera - serializedVersion: 5 - m_AnimatorParameters: [] - m_AnimatorLayers: - - serializedVersion: 5 - m_Name: Base Layer - m_StateMachine: {fileID: 1107479061325518332} - m_Mask: {fileID: 0} - m_Motions: [] - m_Behaviours: [] - m_BlendingMode: 0 - m_SyncedLayerIndex: -1 - m_DefaultWeight: 0 - m_IKPass: 0 - m_SyncedLayerAffectsTiming: 0 - m_Controller: {fileID: 9100000} ---- !u!1102 &1102609981999840310 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Camera - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 108c26ec30b8e8b42b9e7aa780026eae, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1107 &1107479061325518332 -AnimatorStateMachine: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Base Layer - m_ChildStates: - - serializedVersion: 1 - m_State: {fileID: 1102609981999840310} - m_Position: {x: 200, y: 0, z: 0} - m_ChildStateMachines: [] - m_AnyStateTransitions: [] - m_EntryTransitions: [] - m_StateMachineTransitions: {} - m_StateMachineBehaviours: [] - m_AnyStatePosition: {x: 0, y: 0, z: 0} - m_EntryPosition: {x: 50, y: 120, z: 0} - m_ExitPosition: {x: 800, y: 120, z: 0} - m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} - m_DefaultState: {fileID: 1102609981999840310} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta deleted file mode 100644 index bb442ef1..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Animation/Camera.controller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: f5eddefa026b1434493aa203d06b90c6 -timeCreated: 1568786397 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 9100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity deleted file mode 100644 index 80210926..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity +++ /dev/null @@ -1,2276 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 2100000, guid: 6d8d2073385f92643b96552c9e56c090, type: 2} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 811676578} - m_IndirectSpecularColor: {r: 0.17983824, g: 0.22003311, b: 0.27692237, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &11233352 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 11233356} - - component: {fileID: 11233355} - - component: {fileID: 11233354} - - component: {fileID: 11233353} - m_Layer: 0 - m_Name: Cube (13) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &11233353 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 11233352} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &11233354 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 11233352} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &11233355 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 11233352} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &11233356 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 11233352} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -3.6899996, y: 3.6, z: 10.63} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &72749734 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 72749738} - - component: {fileID: 72749737} - - component: {fileID: 72749736} - - component: {fileID: 72749735} - m_Layer: 0 - m_Name: Cube (12) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &72749735 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 72749734} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &72749736 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 72749734} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &72749737 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 72749734} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &72749738 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 72749734} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 9.610001, y: 2.03, z: -2.6899996} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &198716445 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 198716449} - - component: {fileID: 198716448} - - component: {fileID: 198716447} - - component: {fileID: 198716446} - m_Layer: 0 - m_Name: Cube (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &198716446 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 198716445} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &198716447 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 198716445} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &198716448 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 198716445} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &198716449 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 198716445} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -2.6199994, y: 3.6, z: 3.1500006} - m_LocalScale: {x: 1.6679407, y: 28.277355, z: 1.6098938} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &209300865 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 209300869} - - component: {fileID: 209300868} - - component: {fileID: 209300867} - - component: {fileID: 209300866} - m_Layer: 0 - m_Name: Cube (7) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &209300866 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 209300865} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &209300867 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 209300865} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &209300868 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 209300865} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &209300869 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 209300865} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 3.4300003, y: 3.6, z: 6.450001} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 10 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &215077020 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 215077024} - - component: {fileID: 215077023} - - component: {fileID: 215077022} - - component: {fileID: 215077021} - m_Layer: 0 - m_Name: Plane - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &215077021 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 215077020} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!64 &215077022 -MeshCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 215077020} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Convex: 0 - m_CookingOptions: 14 - m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} ---- !u!33 &215077023 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 215077020} - m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &215077024 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 215077020} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 500, y: 500, z: 500} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &254091901 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 254091905} - - component: {fileID: 254091904} - - component: {fileID: 254091903} - - component: {fileID: 254091902} - m_Layer: 0 - m_Name: Cube (11) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &254091902 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 254091901} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &254091903 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 254091901} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &254091904 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 254091901} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &254091905 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 254091901} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 8.01, y: 3.6, z: -10.0199995} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!21 &491257104 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Local - m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: [] - m_Floats: - - _DIRECTIONALL: 1 - - _DirectionalCustom: 0 - - _DirectionalIntensity: 1 - - _DirectionalMode: 1 - - _DirectionalModeBlend: 1 - - _FOGG: 1 - - _FogAxisMode: 1 - - _FogColorDuo: 1 - - _FogDistanceEnd: 60 - - _FogDistanceFalloff: 1 - - _FogDistanceStart: -60 - - _FogHeightEnd: 15 - - _FogHeightFalloff: 1 - - _FogHeightStart: 0 - - _FogIntensity: 1 - - _HeightFogData: 1 - - _IsHeightFogShader: 1 - - _IsStandardPipeline: 0 - - _NOISEE: 1 - - _NoiseDistanceEnd: 30 - - _NoiseIntensity: 1 - - _NoiseMode: 2 - - _NoiseModeBlend: 1 - - _NoiseScale: 30 - - _SKYBOXX: 1 - - _SkyboxFogFalloff: 1 - - _SkyboxFogFill: 0 - - _SkyboxFogHeight: 1 - - _TITLE: 1 - m_Colors: - - _DirectionalColor: {r: 1, g: 0.53189665, b: 0.25, a: 1} - - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} - - _FogColorEnd: {r: 0.8862745, g: 1.1921569, b: 1.4980392, a: 1} - - _FogColorStart: {r: 0, g: 0.58431387, b: 1, a: 1} - - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} ---- !u!1 &554100114 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 554100118} - - component: {fileID: 554100117} - - component: {fileID: 554100116} - - component: {fileID: 554100115} - m_Layer: 0 - m_Name: Cube (4) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &554100115 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554100114} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &554100116 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554100114} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &554100117 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554100114} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &554100118 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 554100114} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -11.4, y: 0.58, z: 2.09} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 7 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!21 &687821929 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Height Fog Global - m_Shader: {fileID: 4800000, guid: 3a7ef1b66bafb7a448a880ef76d2e6e6, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: 3001 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: [] - m_Floats: - - _HeightFogGlobal: 1 - - _IsHeightFogShader: 1 - - _IsStandardPipeline: 0 - - _TITLE: 1 - - _TransparentQueue: 3000 - m_Colors: [] ---- !u!1 &811676577 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 811676579} - - component: {fileID: 811676578} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &811676578 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 811676577} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.6825929, b: 0.19117647, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &811676579 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 811676577} - m_LocalRotation: {x: 0.0858581, y: 0.58688194, z: -0.11686627, w: 0.7965804} - m_LocalPosition: {x: 0, y: 18.07, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 15.9, y: 72.05, z: -5.0950003} ---- !u!1 &888984248 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 888984249} - - component: {fileID: 888984251} - - component: {fileID: 888984250} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &888984249 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 888984248} - m_LocalRotation: {x: 0, y: 0.92387956, z: 0, w: 0.38268343} - m_LocalPosition: {x: 0, y: 0, z: 4.78} - m_LocalScale: {x: 0.031017363, y: 0.031017363, z: 0.31017363} - m_Children: [] - m_Father: {fileID: 1214462678} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 135, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 19.18, y: 5.21} - m_SizeDelta: {x: 600, y: 500} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &888984250 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 888984248} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 2100000, guid: ee4604e1a289ca3469987c3c71dc9092, type: 2} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 100 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 0 - m_MaxSize: 300 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 'UI Shader - - Height Fog - - Support' ---- !u!222 &888984251 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 888984248} - m_CullTransparentMesh: 0 ---- !u!1 &900392376 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 900392377} - - component: {fileID: 900392380} - - component: {fileID: 900392379} - - component: {fileID: 900392378} - m_Layer: 0 - m_Name: Transparent ASE (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &900392377 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 900392376} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -5.13, y: 2.85, z: 6.75} - m_LocalScale: {x: 5.75, y: 5.75, z: 5.75} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 12 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &900392378 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 900392376} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 9631af4dab7dbe2439ad275ffd006a31, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &900392379 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 900392376} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &900392380 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 900392376} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!21 &900805762 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Blend - m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: [] - m_Floats: - - _DIRECTIONALL: 1 - - _DirectionalCustom: 0 - - _DirectionalIntensity: 1 - - _DirectionalMode: 1 - - _DirectionalModeBlend: 1 - - _FOGG: 1 - - _FogAxisMode: 1 - - _FogColorDuo: 1 - - _FogDistanceEnd: 60 - - _FogDistanceFalloff: 1 - - _FogDistanceStart: -60 - - _FogHeightEnd: 15 - - _FogHeightFalloff: 1 - - _FogHeightStart: 0 - - _FogIntensity: 1 - - _HeightFogData: 1 - - _IsHeightFogShader: 1 - - _IsStandardPipeline: 0 - - _NOISEE: 1 - - _NoiseDistanceEnd: 30 - - _NoiseIntensity: 1 - - _NoiseMode: 2 - - _NoiseModeBlend: 1 - - _NoiseScale: 30 - - _SKYBOXX: 1 - - _SkyboxFogFalloff: 1 - - _SkyboxFogFill: 0 - - _SkyboxFogHeight: 1 - - _TITLE: 1 - m_Colors: - - _DirectionalColor: {r: 1, g: 0.53189665, b: 0.25, a: 1} - - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} - - _FogColorEnd: {r: 0.8862745, g: 1.1921569, b: 1.4980392, a: 1} - - _FogColorStart: {r: 0, g: 0.58431387, b: 1, a: 1} - - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} ---- !u!1 &1026953692 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1026953693} - - component: {fileID: 1026953696} - - component: {fileID: 1026953695} - - component: {fileID: 1026953694} - m_Layer: 0 - m_Name: Cube (14) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1026953693 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1026953692} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -11.3, y: 3.6, z: -27.5} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 14 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &1026953694 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1026953692} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &1026953695 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1026953692} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1026953696 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1026953692} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1093170038 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1093170042} - - component: {fileID: 1093170041} - - component: {fileID: 1093170040} - - component: {fileID: 1093170039} - m_Layer: 0 - m_Name: Transparent ASE - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &1093170039 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1093170038} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 9631af4dab7dbe2439ad275ffd006a31, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &1093170040 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1093170038} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1093170041 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1093170038} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1093170042 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1093170038} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 6.38, y: 11.64, z: 3.38} - m_LocalScale: {x: 3.5170665, y: 3.5170665, z: 3.5170665} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 11 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1151496509 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1151496510} - m_Layer: 0 - m_Name: Environment - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1151496510 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1151496509} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 215077024} - - {fileID: 1725981033} - - {fileID: 254091905} - - {fileID: 72749738} - - {fileID: 11233356} - - {fileID: 198716449} - - {fileID: 1624396186} - - {fileID: 554100118} - - {fileID: 1682881881} - - {fileID: 1193642133} - - {fileID: 209300869} - - {fileID: 1093170042} - - {fileID: 900392377} - - {fileID: 2079128176} - - {fileID: 1026953693} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1193642129 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1193642133} - - component: {fileID: 1193642132} - - component: {fileID: 1193642131} - - component: {fileID: 1193642130} - m_Layer: 0 - m_Name: Cube (6) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &1193642130 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1193642129} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &1193642131 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1193642129} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1193642132 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1193642129} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1193642133 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1193642129} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -5.24, y: 3.6, z: -8.26} - m_LocalScale: {x: 1.1465, y: 13.693777, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 9 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1214462674 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1214462678} - - component: {fileID: 1214462677} - - component: {fileID: 1214462676} - - component: {fileID: 1214462675} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1214462675 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1214462674} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1214462676 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1214462674} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1214462677 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1214462674} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 2 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &1214462678 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1214462674} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 888984249} - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 500, y: 500} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1624396182 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1624396186} - - component: {fileID: 1624396185} - - component: {fileID: 1624396184} - - component: {fileID: 1624396183} - m_Layer: 0 - m_Name: Cube (2) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &1624396183 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1624396182} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &1624396184 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1624396182} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1624396185 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1624396182} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1624396186 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1624396182} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.34, y: 3.6, z: -3.42} - m_LocalScale: {x: 1.6679407, y: 19.921856, z: 1.6098938} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1682881877 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1682881881} - - component: {fileID: 1682881880} - - component: {fileID: 1682881879} - - component: {fileID: 1682881878} - m_Layer: 0 - m_Name: Cube (5) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &1682881878 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682881877} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &1682881879 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682881877} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1682881880 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682881877} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1682881881 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682881877} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -10.5199995, y: 3.6, z: -4.7799993} - m_LocalScale: {x: 1.1465, y: 21.848833, z: 1.1066} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 8 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1725981029 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1725981033} - - component: {fileID: 1725981032} - - component: {fileID: 1725981031} - - component: {fileID: 1725981030} - m_Layer: 0 - m_Name: Cube (3) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &1725981030 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1725981029} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: da2b744cf761f024ea0f901ee75b6615, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &1725981031 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1725981029} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1725981032 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1725981029} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1725981033 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1725981029} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 1.9900007, y: 3.6, z: 0.45000076} - m_LocalScale: {x: 1.6679407, y: 24.81707, z: 1.6098938} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1790950446 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1790950450} - - component: {fileID: 1790950449} - - component: {fileID: 1790950448} - - component: {fileID: 1790950447} - m_Layer: 0 - m_Name: Height Fog Global - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1790950447 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790950446} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d8023d2ae1fcb2948a39527720c2087b, type: 3} - m_Name: - m_EditorClassIdentifier: - styledBanner: 0 - categoryFog: 0 - fogIntensity: 1 - fogAxisMode: 1 - fogColorStart: {r: 0, g: 0.58431387, b: 1, a: 1} - fogColorEnd: {r: 0.8862745, g: 1.1921569, b: 1.4980392, a: 1} - fogColorDuo: 1 - fogDistanceStart: -60 - fogDistanceEnd: 60 - fogDistanceFalloff: 1 - fogHeightStart: 0 - fogHeightEnd: 15 - fogHeightFalloff: 1 - categorySkybox: 0 - skyboxFogHeight: 1 - skyboxFogFalloff: 1 - skyboxFogFill: 0 - categoryDirectional: 0 - directionalMode: 1 - directionalIntensity: 1 - directionalColor: {r: 1, g: 0.53189665, b: 0.25, a: 1} - directionalCustom: {fileID: 0} - categoryNoise: 0 - noiseMode: 3 - noiseIntensity: 1 - noiseDistanceEnd: 30 - noiseScale: 30 - noiseSpeed: {x: 0.5, y: 0.5, z: 0} - styledSpace0: 0 - localMaterial: {fileID: 491257104} - overrideMaterial: {fileID: 2043602251} - blendMaterial: {fileID: 900805762} - heightFogMaterial: {fileID: 687821929} - overrideCamToVolumeDistance: Infinity - overrideVolumeDistanceFade: 0 - updater: 0 ---- !u!23 &1790950448 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790950446} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 687821929} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1790950449 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790950446} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1790950450 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790950446} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 6, z: 50} - m_LocalScale: {x: 999, y: 999, z: 999} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1937196289 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1937196294} - - component: {fileID: 1937196293} - - component: {fileID: 1937196290} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!95 &1937196290 -Animator: - serializedVersion: 3 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937196289} - m_Enabled: 1 - m_Avatar: {fileID: 0} - m_Controller: {fileID: 9100000, guid: f5eddefa026b1434493aa203d06b90c6, type: 2} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 0 - m_LinearVelocityBlending: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 - m_KeepAnimatorControllerStateOnDisable: 0 ---- !u!20 &1937196293 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937196289} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 1 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1937196294 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937196289} - m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} - m_LocalPosition: {x: 0, y: 6, z: 50} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} ---- !u!21 &2043602251 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Override - m_Shader: {fileID: 4800000, guid: a3a3bc8785681554d9558e2ea68f100e, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: [] - m_Floats: - - _DIRECTIONALL: 1 - - _DirectionalCustom: 0 - - _DirectionalIntensity: 1 - - _DirectionalMode: 1 - - _DirectionalModeBlend: 1 - - _FOGG: 1 - - _FogAxisMode: 1 - - _FogColorDuo: 1 - - _FogDistanceEnd: 200 - - _FogDistanceFalloff: 1 - - _FogDistanceStart: -200 - - _FogHeightEnd: 200 - - _FogHeightFalloff: 8 - - _FogHeightStart: 0 - - _FogIntensity: 1 - - _HeightFogData: 1 - - _IsHeightFogShader: 1 - - _IsStandardPipeline: 0 - - _NOISEE: 1 - - _NoiseDistanceEnd: 30 - - _NoiseIntensity: 0.5 - - _NoiseMode: 2 - - _NoiseModeBlend: 1 - - _NoiseScale: 10 - - _SKYBOXX: 1 - - _SkyboxFogFalloff: 1 - - _SkyboxFogFill: 0 - - _SkyboxFogHeight: 1 - - _TITLE: 1 - m_Colors: - - _DirectionalColor: {r: 1, g: 0.7793103, b: 0.5, a: 1} - - _DirectionalCustomDir: {r: 0, g: 0, b: 0, a: 0} - - _FogColorEnd: {r: 0.8862745, g: 1.443137, b: 2, a: 1} - - _FogColorStart: {r: 0.4411765, g: 0.722515, b: 1, a: 1} - - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} ---- !u!1 &2067033081 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2067033084} - - component: {fileID: 2067033083} - - component: {fileID: 2067033082} - m_Layer: 0 - m_Name: Height Fog Override - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2067033082 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2067033081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ac1c26670b7bd6a47ac695141473ab42, type: 3} - m_Name: - m_EditorClassIdentifier: - styledBanner: 0 - messageNoHeightFogGlobal: 0 - categoryVolume: 0 - volumeDistanceFade: 15 - volumeVisibility: 0.1 - categoryFog: 0 - fogIntensity: 1 - fogAxisMode: 1 - fogColorStart: {r: 0, g: 0.35294116, b: 0.060851935, a: 1} - fogColorEnd: {r: 0.942268, g: 1.7633113, b: 0.39092276, a: 1} - fogColorDuo: 1 - fogDistanceStart: -60 - fogDistanceEnd: 60 - fogDistanceFalloff: 1 - fogHeightStart: 0 - fogHeightEnd: 15 - fogHeightFalloff: 1 - categorySkybox: 0 - skyboxFogHeight: 1 - skyboxFogFalloff: 1 - skyboxFogFill: 0 - categoryDirectional: 0 - directionalMode: 1 - directionalIntensity: 1 - directionalColor: {r: 0.52045554, g: 0.74264705, b: 0.098291524, a: 1} - directionalCustom: {fileID: 0} - categoryNoise: 0 - noiseMode: 3 - noiseIntensity: 0.5 - noiseDistanceEnd: 30 - noiseScale: 30 - noiseSpeed: {x: 0.5, y: 0.5, z: 0} - styledSpace0: 0 ---- !u!65 &2067033083 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2067033081} - m_Material: {fileID: 0} - m_IsTrigger: 1 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!4 &2067033084 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2067033081} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 5, z: 0} - m_LocalScale: {x: 20, y: 20, z: 20} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2079128175 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2079128176} - - component: {fileID: 2079128179} - - component: {fileID: 2079128178} - - component: {fileID: 2079128177} - m_Layer: 0 - m_Name: Transparent ASE (2) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2079128176 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2079128175} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -7.18, y: 26.04, z: -7.62} - m_LocalScale: {x: 2.2562332, y: 2.2562332, z: 2.2562332} - m_Children: [] - m_Father: {fileID: 1151496510} - m_RootOrder: 13 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2079128177 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2079128175} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 9631af4dab7dbe2439ad275ffd006a31, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!65 &2079128178 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2079128175} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &2079128179 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2079128175} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta deleted file mode 100644 index 4a32bc99..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Demo.unity.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f80728662e0cdea4a847e4f4f3da57a0 -timeCreated: 1563966344 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta deleted file mode 100644 index 670dfbf0..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 496d2b674ed8cba47930705b858c62aa -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat deleted file mode 100644 index 7d97fc97..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat +++ /dev/null @@ -1,76 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Opaque - m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _BumpScale: 1 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 0 - - _GlossMapScale: 1 - - _Glossiness: 0 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 0 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _UVSec: 0 - - _ZWrite: 1 - m_Colors: - - _Color: {r: 0.33823532, g: 0.33823532, b: 0.33823532, a: 1} - - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta deleted file mode 100644 index eea56213..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Opaque.mat.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: da2b744cf761f024ea0f901ee75b6615 -timeCreated: 1559733106 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat deleted file mode 100644 index ebc843cd..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat +++ /dev/null @@ -1,83 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Skybox - m_Shader: {fileID: 106, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: _SUNDISK_HIGH_QUALITY - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _AtmosphereThickness: 1 - - _BumpScale: 1 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 0 - - _Exposure: 1.3 - - _GlossMapScale: 1 - - _Glossiness: 0.5 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 0 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _SunDisk: 2 - - _SunSize: 0.05 - - _SunSizeConvergence: 2.14 - - _UVSec: 0 - - _ZWrite: 1 - m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} - - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - - _GroundColor: {r: 0.36899996, g: 0.34899998, b: 0.34099993, a: 1} - - _SkyTint: {r: 0.5, g: 0.5, b: 0.5, a: 1} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta deleted file mode 100644 index 86dd661a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Skybox.mat.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 6d8d2073385f92643b96552c9e56c090 -timeCreated: 1568788827 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat deleted file mode 100644 index dc0a09cc..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat +++ /dev/null @@ -1,100 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Transparent ASE - m_Shader: {fileID: 4800000, guid: 69494530c2d06154dba377bc2a61be81, type: 3} - m_ShaderKeywords: AHF_ENABLED_OFF - m_LightmapFlags: 0 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: 3002 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _TextureSample0: - m_Texture: {fileID: 2800000, guid: b6ce79c1592bcb446ad9975f1591316f, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _texcoord: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _BumpScale: 1 - - _ColorMask: 15 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 0 - - _Float6: 0.5 - - _GlossMapScale: 1 - - _Glossiness: 0.5 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 0 - - _NoiseIntensity: 0.01 - - _NoiseScale: 0.5 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UVSec: 0 - - _UseUIAlphaClip: 0 - - _VertexIntensity: 0.03 - - _ZWrite: 1 - - __dirty: 0 - m_Colors: - - _Color: {r: 2.670157, g: 2.142577, b: 0, a: 1} - - _Color2: {r: 1, g: 0, b: 0, a: 0} - - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - - _NoiseSpeed: {r: 1, g: 1, b: 0, a: 0} - - _Vector0: {r: 0.5, g: 0.5, b: 0, a: 0} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta deleted file mode 100644 index 28d76c7a..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent ASE.mat.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 9631af4dab7dbe2439ad275ffd006a31 -timeCreated: 1570693391 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat deleted file mode 100644 index 5daad951..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat +++ /dev/null @@ -1,102 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Transparent - m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION - m_LightmapFlags: 1 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: 3000 - stringTagMap: - RenderType: Transparent - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 4, y: 2} - m_Offset: {x: 0, y: 0} - - _FourthTex: - m_Texture: {fileID: 2800000, guid: e0f922c44762291498cc62e0917609be, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 4, y: 2} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _SecondTex: - m_Texture: {fileID: 2800000, guid: 03a7d169469c1af41bb03241a7b7e23d, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ThirdTex: - m_Texture: {fileID: 2800000, guid: c3512c25766a40245ac94c6b1722d76e, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _texcoord: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _BranchPhase: 0 - - _BumpScale: 1 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 10 - - _EdgeFlutter: 1 - - _GlossMapScale: 1 - - _Glossiness: 0.8 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 3 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _PrimaryFactor: 0 - - _SecondaryFactor: 0 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _TessValue: 15 - - _UVSec: 0 - - _ZWrite: 0 - - __dirty: 0 - m_Colors: - - _Color: {r: 0.5724138, g: 1, b: 0, a: 0.903} - - _EmissionColor: {r: 0.28620684, g: 0.5, b: 0, a: 1} - - _TreeInstanceColor: {r: 0, g: 0, b: 0, a: 0} - - _TreeInstanceScale: {r: 0, g: 0, b: 0, a: 0} - - _TreeOffset: {r: 0, g: 5, b: 0, a: 0} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta deleted file mode 100644 index 932c61ad..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/Transparent.mat.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 4a565fdd79313e949971df9e4647b75e -timeCreated: 1559733106 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat deleted file mode 100644 index 19b365df..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat +++ /dev/null @@ -1,100 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: UI - m_Shader: {fileID: 4800000, guid: d2c008f025f10e84e840af15703382d8, type: 3} - m_ShaderKeywords: AHF_ENABLED_OFF - m_LightmapFlags: 0 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: 3002 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _TextureSample0: - m_Texture: {fileID: 2800000, guid: b6ce79c1592bcb446ad9975f1591316f, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _texcoord: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _BumpScale: 1 - - _ColorMask: 15 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 0 - - _Float6: 0.5 - - _GlossMapScale: 1 - - _Glossiness: 0.5 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 0 - - _NoiseIntensity: 0.01 - - _NoiseScale: 0.5 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UVSec: 0 - - _UseUIAlphaClip: 0 - - _VertexIntensity: 0.06 - - _ZWrite: 1 - - __dirty: 0 - m_Colors: - - _Color: {r: 0, g: 0, b: 0, a: 1} - - _Color2: {r: 1, g: 0, b: 0, a: 0} - - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - - _NoiseSpeed: {r: 0.5, g: 0.5, b: 0, a: 0} - - _Vector0: {r: 0.5, g: 0.5, b: 0, a: 0} diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta deleted file mode 100644 index 151fbd01..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Materials/UI.mat.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ee4604e1a289ca3469987c3c71dc9092 -timeCreated: 1570693391 -licenseType: Store -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta deleted file mode 100644 index fbb694de..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 43d668848791a024bbf14daff73a9656 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader deleted file mode 100644 index a9c5f358..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader +++ /dev/null @@ -1,262 +0,0 @@ -// Made with Amplify Shader Editor -// Available at the Unity Asset Store - http://u3d.as/y3X -Shader "Custom/My Transparent Shader" -{ - Properties - { - [HDR]_Color("Color", Color) = (1,0,0,0) - [Space(10)]_NoiseIntensity("Noise Intensity", Range( 0 , 0.2)) = 0 - _NoiseScale("Noise Scale", Float) = 6 - _NoiseSpeed("Noise Speed", Vector) = (0.5,0.5,0,0) - _VertexIntensity("Vertex Intensity", Range( 0 , 0.2)) = 0 - [HideInInspector] __dirty( "", Int ) = 1 - } - - SubShader - { - Tags{ "RenderType" = "Transparent" "Queue" = "Transparent+0" "IgnoreProjector" = "True" "ForceNoShadowCasting" = "True" "IsEmissive" = "true" } - Cull Back - GrabPass{ } - CGPROGRAM - #include "UnityShaderVariables.cginc" - #include "UnityCG.cginc" - #pragma target 3.0 - #pragma multi_compile AHF_NOISEMODE_OFF AHF_NOISEMODE_PROCEDURAL3D - #if defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED) - #define ASE_DECLARE_SCREENSPACE_TEXTURE(tex) UNITY_DECLARE_SCREENSPACE_TEXTURE(tex); - #else - #define ASE_DECLARE_SCREENSPACE_TEXTURE(tex) UNITY_DECLARE_SCREENSPACE_TEXTURE(tex) - #endif - #pragma surface surf Standard alpha:fade keepalpha noshadow novertexlights nolightmap nodynlightmap nodirlightmap nofog nometa vertex:vertexDataFunc - struct Input - { - float3 worldPos; - float4 screenPos; - float3 worldNormal; - }; - - uniform half _NoiseScale; - uniform half3 _NoiseSpeed; - uniform float _VertexIntensity; - uniform float4 _Color; - ASE_DECLARE_SCREENSPACE_TEXTURE( _GrabTexture ) - uniform float _NoiseIntensity; - uniform half4 AHF_FogColorStart; - uniform half4 AHF_FogColorEnd; - uniform half AHF_FogDistanceStart; - uniform half AHF_FogDistanceEnd; - uniform half AHF_FogDistanceFalloff; - uniform half AHF_FogColorDuo; - uniform half4 AHF_DirectionalColor; - uniform half3 AHF_DirectionalDir; - uniform half AHF_DirectionalIntensity; - uniform half AHF_DirectionalFalloff; - uniform half3 AHF_FogAxisOption; - uniform half AHF_FogHeightEnd; - uniform half AHF_FogHeightStart; - uniform half AHF_FogHeightFalloff; - uniform half AHF_FogLayersMode; - uniform half AHF_NoiseScale; - uniform half3 AHF_NoiseSpeed; - uniform half AHF_NoiseDistanceEnd; - uniform half AHF_NoiseIntensity; - uniform half AHF_NoiseModeBlend; - uniform half AHF_FogIntensity; - - - float3 mod3D289( float3 x ) { return x - floor( x / 289.0 ) * 289.0; } - - float4 mod3D289( float4 x ) { return x - floor( x / 289.0 ) * 289.0; } - - float4 permute( float4 x ) { return mod3D289( ( x * 34.0 + 1.0 ) * x ); } - - float4 taylorInvSqrt( float4 r ) { return 1.79284291400159 - r * 0.85373472095314; } - - float snoise( float3 v ) - { - const float2 C = float2( 1.0 / 6.0, 1.0 / 3.0 ); - float3 i = floor( v + dot( v, C.yyy ) ); - float3 x0 = v - i + dot( i, C.xxx ); - float3 g = step( x0.yzx, x0.xyz ); - float3 l = 1.0 - g; - float3 i1 = min( g.xyz, l.zxy ); - float3 i2 = max( g.xyz, l.zxy ); - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - i = mod3D289( i); - float4 p = permute( permute( permute( i.z + float4( 0.0, i1.z, i2.z, 1.0 ) ) + i.y + float4( 0.0, i1.y, i2.y, 1.0 ) ) + i.x + float4( 0.0, i1.x, i2.x, 1.0 ) ); - float4 j = p - 49.0 * floor( p / 49.0 ); // mod(p,7*7) - float4 x_ = floor( j / 7.0 ); - float4 y_ = floor( j - 7.0 * x_ ); // mod(j,N) - float4 x = ( x_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 y = ( y_ * 2.0 + 0.5 ) / 7.0 - 1.0; - float4 h = 1.0 - abs( x ) - abs( y ); - float4 b0 = float4( x.xy, y.xy ); - float4 b1 = float4( x.zw, y.zw ); - float4 s0 = floor( b0 ) * 2.0 + 1.0; - float4 s1 = floor( b1 ) * 2.0 + 1.0; - float4 sh = -step( h, 0.0 ); - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 g0 = float3( a0.xy, h.x ); - float3 g1 = float3( a0.zw, h.y ); - float3 g2 = float3( a1.xy, h.z ); - float3 g3 = float3( a1.zw, h.w ); - float4 norm = taylorInvSqrt( float4( dot( g0, g0 ), dot( g1, g1 ), dot( g2, g2 ), dot( g3, g3 ) ) ); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - float4 m = max( 0.6 - float4( dot( x0, x0 ), dot( x1, x1 ), dot( x2, x2 ), dot( x3, x3 ) ), 0.0 ); - m = m* m; - m = m* m; - float4 px = float4( dot( x0, g0 ), dot( x1, g1 ), dot( x2, g2 ), dot( x3, g3 ) ); - return 42.0 * dot( m, px); - } - - - inline float4 ASE_ComputeGrabScreenPos( float4 pos ) - { - #if UNITY_UV_STARTS_AT_TOP - float scale = -1.0; - #else - float scale = 1.0; - #endif - float4 o = pos; - o.y = pos.w * 0.5f; - o.y = ( pos.y - o.y ) * _ProjectionParams.x * scale + o.y; - return o; - } - - - void vertexDataFunc( inout appdata_full v, out Input o ) - { - UNITY_INITIALIZE_OUTPUT( Input, o ); - float3 ase_worldPos = mul( unity_ObjectToWorld, v.vertex ); - float simplePerlin3D27 = snoise( ( ( ase_worldPos * _NoiseScale ) + ( -_NoiseSpeed * _Time.y ) ) ); - float3 ase_vertexNormal = v.normal.xyz; - v.vertex.xyz += ( ( simplePerlin3D27 * _VertexIntensity ) * ase_vertexNormal ); - } - - void surf( Input i , inout SurfaceOutputStandard o ) - { - float3 ase_worldPos = i.worldPos; - float simplePerlin3D27 = snoise( ( ( ase_worldPos * _NoiseScale ) + ( -_NoiseSpeed * _Time.y ) ) ); - float4 ase_screenPos = float4( i.screenPos.xyz , i.screenPos.w + 0.00000000001 ); - float4 ase_grabScreenPos = ASE_ComputeGrabScreenPos( ase_screenPos ); - float4 ase_grabScreenPosNorm = ase_grabScreenPos / ase_grabScreenPos.w; - float4 screenColor22 = UNITY_SAMPLE_SCREENSPACE_TEXTURE(_GrabTexture,( ( _NoiseIntensity * simplePerlin3D27 ) + ase_grabScreenPosNorm ).xy); - o.Albedo = saturate( ( _Color * screenColor22 ) ).rgb; - float3 WorldPosition2_g836 = ase_worldPos; - float temp_output_7_0_g860 = AHF_FogDistanceStart; - half FogDistanceMask12_g836 = pow( abs( saturate( ( ( distance( WorldPosition2_g836 , _WorldSpaceCameraPos ) - temp_output_7_0_g860 ) / ( AHF_FogDistanceEnd - temp_output_7_0_g860 ) ) ) ) , AHF_FogDistanceFalloff ); - float3 lerpResult258_g836 = lerp( (AHF_FogColorStart).rgb , (AHF_FogColorEnd).rgb , ( saturate( ( FogDistanceMask12_g836 - 0.5 ) ) * AHF_FogColorDuo )); - float3 normalizeResult318_g836 = normalize( ( WorldPosition2_g836 - _WorldSpaceCameraPos ) ); - float dotResult145_g836 = dot( normalizeResult318_g836 , AHF_DirectionalDir ); - half DirectionalMask30_g836 = pow( abs( ( (dotResult145_g836*0.5 + 0.5) * AHF_DirectionalIntensity ) ) , AHF_DirectionalFalloff ); - float3 lerpResult40_g836 = lerp( lerpResult258_g836 , (AHF_DirectionalColor).rgb , DirectionalMask30_g836); - float3 temp_output_2_0_g859 = lerpResult40_g836; - float3 gammaToLinear3_g859 = GammaToLinearSpace( temp_output_2_0_g859 ); - #ifdef UNITY_COLORSPACE_GAMMA - float3 staticSwitch1_g859 = temp_output_2_0_g859; - #else - float3 staticSwitch1_g859 = gammaToLinear3_g859; - #endif - float3 temp_output_256_0_g836 = staticSwitch1_g859; - float3 temp_output_92_86_g681 = temp_output_256_0_g836; - half3 AHF_FogAxisOption181_g836 = AHF_FogAxisOption; - float3 break159_g836 = ( WorldPosition2_g836 * AHF_FogAxisOption181_g836 ); - float temp_output_7_0_g861 = AHF_FogHeightEnd; - half FogHeightMask16_g836 = pow( abs( saturate( ( ( ( break159_g836.x + break159_g836.y + break159_g836.z ) - temp_output_7_0_g861 ) / ( AHF_FogHeightStart - temp_output_7_0_g861 ) ) ) ) , AHF_FogHeightFalloff ); - float lerpResult328_g836 = lerp( ( FogDistanceMask12_g836 * FogHeightMask16_g836 ) , saturate( ( FogDistanceMask12_g836 + FogHeightMask16_g836 ) ) , AHF_FogLayersMode); - float simplePerlin3D193_g836 = snoise( ( ( WorldPosition2_g836 * ( 1.0 / AHF_NoiseScale ) ) + ( -AHF_NoiseSpeed * _Time.y ) ) ); - float temp_output_7_0_g863 = AHF_NoiseDistanceEnd; - half NoiseDistanceMask7_g836 = saturate( ( ( distance( WorldPosition2_g836 , _WorldSpaceCameraPos ) - temp_output_7_0_g863 ) / ( 0.0 - temp_output_7_0_g863 ) ) ); - float lerpResult198_g836 = lerp( 1.0 , (simplePerlin3D193_g836*0.5 + 0.5) , ( NoiseDistanceMask7_g836 * AHF_NoiseIntensity * AHF_NoiseModeBlend )); - half NoiseSimplex3D24_g836 = lerpResult198_g836; - #if defined(AHF_NOISEMODE_OFF) - float staticSwitch42_g836 = lerpResult328_g836; - #elif defined(AHF_NOISEMODE_PROCEDURAL3D) - float staticSwitch42_g836 = ( lerpResult328_g836 * NoiseSimplex3D24_g836 ); - #else - float staticSwitch42_g836 = lerpResult328_g836; - #endif - float temp_output_43_0_g836 = ( staticSwitch42_g836 * AHF_FogIntensity ); - float temp_output_92_87_g681 = temp_output_43_0_g836; - float3 lerpResult82_g681 = lerp( float3( 0,0,0 ) , temp_output_92_86_g681 , temp_output_92_87_g681); - o.Emission = lerpResult82_g681; - o.Smoothness = 0.8; - float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) ); - float3 ase_worldNormal = i.worldNormal; - float fresnelNdotV79 = dot( ase_worldNormal, ase_worldViewDir ); - float fresnelNode79 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV79, 5.0 ) ); - o.Alpha = saturate( ( 1.0 - fresnelNode79 ) ); - } - - ENDCG - } -} -/*ASEBEGIN -Version=18103 -1927;1;1906;1020;3380.803;521.1696;3.741465;True;False -Node;AmplifyShaderEditor.Vector3Node;30;-1280,1664;Half;False;Property;_NoiseSpeed;Noise Speed;3;0;Create;True;0;0;False;0;False;0.5,0.5,0;0.5,0.5,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 -Node;AmplifyShaderEditor.WorldPosInputsNode;39;-1280,1280;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3 -Node;AmplifyShaderEditor.RangedFloatNode;32;-1280,1440;Half;False;Property;_NoiseScale;Noise Scale;2;0;Create;True;0;0;False;0;False;6;1.5;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.SimpleTimeNode;31;-1280,1824;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0 -Node;AmplifyShaderEditor.NegateNode;36;-1088,1664;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;35;-960,1344;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;37;-960,1664;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0 -Node;AmplifyShaderEditor.SimpleAddOpNode;33;-768,1536;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0 -Node;AmplifyShaderEditor.RangedFloatNode;41;0,1024;Inherit;False;Property;_NoiseIntensity;Noise Intensity;1;0;Create;True;0;0;False;1;Space(10);False;0;0.103;0;0.2;0;1;FLOAT;0 -Node;AmplifyShaderEditor.NoiseGeneratorNode;27;-640,1536;Inherit;False;Simplex3D;False;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;1;False;1;FLOAT;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;40;288,1024;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.GrabScreenPosition;23;256,1152;Inherit;False;0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.SimpleAddOpNode;24;448,1024;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0 -Node;AmplifyShaderEditor.FresnelNode;79;1408,1664;Inherit;False;Standard;WorldNormal;ViewDir;False;False;5;0;FLOAT3;0,0,1;False;4;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;5;False;1;FLOAT;0 -Node;AmplifyShaderEditor.ScreenColorNode;22;640,1152;Inherit;False;Global;_GrabScreen0;Grab Screen 0;1;0;Create;True;0;0;False;0;False;Object;-1;False;False;1;0;FLOAT2;0,0;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.RangedFloatNode;50;0,1728;Inherit;False;Property;_VertexIntensity;Vertex Intensity;4;0;Create;True;0;0;False;0;False;0;0.103;0;0.2;0;1;FLOAT;0 -Node;AmplifyShaderEditor.ColorNode;5;640,896;Inherit;False;Property;_Color;Color;0;1;[HDR];Create;True;0;0;False;0;False;1,0,0,0;1,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;44;896,896;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;45;384,1664;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.NormalVertexDataNode;49;384,1792;Inherit;False;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 -Node;AmplifyShaderEditor.OneMinusNode;80;1664,1664;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.SaturateNode;81;1824,1664;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 -Node;AmplifyShaderEditor.SimpleMultiplyOpNode;48;704,1664;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0 -Node;AmplifyShaderEditor.FunctionNode;78;1408,1056;Inherit;False;Apply Height Fog;-1;;681;950890317d4f36a48a68d150cdab0168;0;1;81;FLOAT3;0,0,0;False;3;FLOAT3;85;FLOAT3;86;FLOAT;87 -Node;AmplifyShaderEditor.SaturateNode;82;1056,896;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0 -Node;AmplifyShaderEditor.RangedFloatNode;55;1408,1280;Inherit;False;Constant;_Float6;Float 6;5;0;Create;True;0;0;False;0;False;0.8;0;0;0;0;1;FLOAT;0 -Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;2048,896;Float;False;True;-1;2;;0;0;Standard;Custom/My Transparent Shader;False;False;False;False;False;True;True;True;True;True;True;False;False;False;True;True;False;False;False;False;False;Back;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Transparent;0.5;True;False;0;False;Transparent;;Transparent;All;14;all;True;True;True;True;0;False;-1;False;0;False;-1;255;False;-1;255;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;False;2;15;10;25;False;0.5;False;2;5;False;-1;10;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;-1;-1;-1;-1;0;False;0;0;False;-1;-1;0;False;-1;0;0;0;False;0.1;False;-1;0;False;-1;16;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT;0;False;9;FLOAT;0;False;10;FLOAT;0;False;13;FLOAT3;0,0,0;False;11;FLOAT3;0,0,0;False;12;FLOAT3;0,0,0;False;14;FLOAT4;0,0,0,0;False;15;FLOAT3;0,0,0;False;0 -Node;AmplifyShaderEditor.CommentaryNode;83;1408,1536;Inherit;False;588.5403;100;Edge Opacity;0;;1,1,1,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;51;-1280,1152;Inherit;False;832.0697;100;Noise;0;;1,1,1,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;76;0,768;Inherit;False;1182;100;Grab Screen Color;0;;1,1,1,1;0;0 -Node;AmplifyShaderEditor.CommentaryNode;54;0,1536;Inherit;False;826.2407;100;Vertex Animaton;0;;1,1,1,1;0;0 -WireConnection;36;0;30;0 -WireConnection;35;0;39;0 -WireConnection;35;1;32;0 -WireConnection;37;0;36;0 -WireConnection;37;1;31;0 -WireConnection;33;0;35;0 -WireConnection;33;1;37;0 -WireConnection;27;0;33;0 -WireConnection;40;0;41;0 -WireConnection;40;1;27;0 -WireConnection;24;0;40;0 -WireConnection;24;1;23;0 -WireConnection;22;0;24;0 -WireConnection;44;0;5;0 -WireConnection;44;1;22;0 -WireConnection;45;0;27;0 -WireConnection;45;1;50;0 -WireConnection;80;0;79;0 -WireConnection;81;0;80;0 -WireConnection;48;0;45;0 -WireConnection;48;1;49;0 -WireConnection;82;0;44;0 -WireConnection;0;0;82;0 -WireConnection;0;2;78;85 -WireConnection;0;4;55;0 -WireConnection;0;9;81;0 -WireConnection;0;11;48;0 -ASEEND*/ -//CHKSM=8E0F65C35DF7DC42365527BD2E094A48B3C2BB20 \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta b/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta deleted file mode 100644 index c830bbc7..00000000 --- a/Assets/BOXOPHOBIC/Atmospheric Height Fog/Demo/Shaders/My Transparent Shader.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 69494530c2d06154dba377bc2a61be81 -timeCreated: 1570695643 -licenseType: Store -ShaderImporter: - externalObjects: {} - defaultTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/User.meta b/Assets/BOXOPHOBIC/User.meta deleted file mode 100644 index 2f8f3126..00000000 --- a/Assets/BOXOPHOBIC/User.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b7d458fadeeacb34ea6fd83f18f024a4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/User/User.pdf b/Assets/BOXOPHOBIC/User/User.pdf deleted file mode 100644 index 55b587fb..00000000 Binary files a/Assets/BOXOPHOBIC/User/User.pdf and /dev/null differ diff --git a/Assets/BOXOPHOBIC/User/User.pdf.meta b/Assets/BOXOPHOBIC/User/User.pdf.meta deleted file mode 100644 index 0d480888..00000000 --- a/Assets/BOXOPHOBIC/User/User.pdf.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 983558b57a284d84bbc541f947bc5139 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils.meta b/Assets/BOXOPHOBIC/Utils.meta deleted file mode 100644 index 808c1e8b..00000000 --- a/Assets/BOXOPHOBIC/Utils.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3ed8ac36c42fa8a45a6f62ff10d5b287 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor.meta b/Assets/BOXOPHOBIC/Utils/Editor.meta deleted file mode 100644 index d307ca47..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6a27ef5e38a3d75469ae0bbc56f885b3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef b/Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef deleted file mode 100644 index a15acddb..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "Boxophobic.Utils.Editor", - "references": [ - "Boxophobic.Utils.Scripts" - ], - "optionalUnityReferences": [], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [] -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta b/Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta deleted file mode 100644 index 90e25f0e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/Boxophobic.Utils.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 10f1dd4cfd6afb54da274d7d818bd8f6 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/Constants.meta b/Assets/BOXOPHOBIC/Utils/Editor/Constants.meta deleted file mode 100644 index 317a31f8..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/Constants.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f975f7f073569654bb9318215ba4cd73 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs b/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs deleted file mode 100644 index 7580a347..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs +++ /dev/null @@ -1,138 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.Constants -{ - public static class CONSTANT - { - public static Texture2D LogoImage - { - get - { - return Resources.Load("Boxophobic - Logo") as Texture2D; - } - } - - public static Texture2D BannerImageBegin - { - get - { - return Resources.Load("Boxophobic - BannerBegin") as Texture2D; - } - } - - public static Texture2D BannerImageMiddle - { - get - { - return Resources.Load("Boxophobic - BannerMiddle") as Texture2D; - } - } - - public static Texture2D BannerImageEnd - { - get - { - return Resources.Load("Boxophobic - BannerEnd") as Texture2D; - } - } - - public static Texture2D CategoryImageBegin - { - get - { - return Resources.Load("Boxophobic - CategoryBegin") as Texture2D; - } - } - - public static Texture2D CategoryImageMiddle - { - get - { - return Resources.Load("Boxophobic - CategoryMiddle") as Texture2D; - } - } - - public static Texture2D CategoryImageEnd - { - get - { - return Resources.Load("Boxophobic - CategoryEnd") as Texture2D; - } - } - - public static Texture2D IconEdit - { - get - { - return Resources.Load("Boxophobic - IconEdit") as Texture2D; - } - } - - public static Texture2D IconHelp - { - get - { - return Resources.Load("Boxophobic - IconHelp") as Texture2D; - } - } - - public static Color ColorDarkGray - { - get - { - return new Color(0.27f, 0.27f, 0.27f); - } - } - - public static Color ColorLightGray - { - get - { - return new Color(0.83f, 0.83f, 0.83f); - } - } - - public static GUIStyle TitleStyle - { - get - { - GUIStyle guiStyle = new GUIStyle - { - richText = true, - alignment = TextAnchor.MiddleCenter - }; - - return guiStyle; - } - } - - public static GUIStyle BoldTextStyle - { - get - { - GUIStyle guiStyle = new GUIStyle(); - - Color color; - - if (EditorGUIUtility.isProSkin) - { - color = new Color(0.87f, 0.87f, 0.87f); - } - else - { - color = new Color(0.27f, 0.27f, 0.27f); - } - - guiStyle.normal.textColor = color; - guiStyle.alignment = TextAnchor.MiddleCenter; - guiStyle.fontStyle = FontStyle.Bold; - - return guiStyle; - } - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta deleted file mode 100644 index 578f0665..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/Constants/Constants.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e0cf8ff3bbc97374f88272f686fb80e5 -timeCreated: 1541442079 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta b/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta deleted file mode 100644 index e9b98bba..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3ddf9a50ab07a4e469766a6d18a98031 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs b/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs deleted file mode 100644 index fb1c3b85..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using System.Globalization; -using UnityEditor; - -namespace Boxophobic.Utils -{ - public partial class SettingsUtils - { - public static string LoadSettingsData(string settingsPath, string defaultData) - { - var settings = AssetDatabase.LoadAssetAtPath(settingsPath); - - if (settings != null) - { - return settings.data; - } - else - { - return defaultData; - } - } - - public static int LoadSettingsData(string settingsPath, int defaultData) - { - var settings = AssetDatabase.LoadAssetAtPath(settingsPath); - - if (settings != null) - { - int value; - - if (int.TryParse(settings.data, out value)) - { - return value; - } - else - { - return defaultData; - } - } - else - { - return defaultData; - } - } - - public static float LoadSettingsData(string settingsPath, float defaultData) - { - var settings = AssetDatabase.LoadAssetAtPath(settingsPath); - - if (settings != null) - { - float value; - - if (float.TryParse(settings.data, out value)) - { - return float.Parse(settings.data, CultureInfo.InvariantCulture); - } - else - { - return defaultData; - } - } - else - { - return defaultData; - } - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta deleted file mode 100644 index 41d9fe28..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/LoadSettingsData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 90057ce590a8bd148ab59e018f35d9cb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs b/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs deleted file mode 100644 index 5e9dcf7f..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using System.IO; -using UnityEditor; -using UnityEngine; - -namespace Boxophobic.Utils -{ - public partial class SettingsUtils - { - public static void SaveSettingsData(string settingsPath, string data) - { - CreateFileIfMissing(settingsPath); - - var settings = AssetDatabase.LoadAssetAtPath(settingsPath); - - settings.data = data; - - SaveFile(settingsPath); - } - - public static void SaveSettingsData(string settingsPath, int data) - { - CreateFileIfMissing(settingsPath); - - var settings = AssetDatabase.LoadAssetAtPath(settingsPath); - - settings.data = data.ToString(); - - SaveFile(settingsPath); - } - - public static void SaveSettingsData(string settingsPath, float data) - { - CreateFileIfMissing(settingsPath); - - var settings = AssetDatabase.LoadAssetAtPath(settingsPath); - - settings.data = data.ToString(); - - SaveFile(settingsPath); - } - - private static void CreateFileIfMissing(string settingsPath) - { - if (File.Exists(settingsPath) == false) - { - var directory = Path.GetDirectoryName(settingsPath); - - if (Directory.Exists(directory) == false) - { - Directory.CreateDirectory(directory); - AssetDatabase.Refresh(); - } - - AssetDatabase.CreateAsset(ScriptableObject.CreateInstance(), settingsPath); - AssetDatabase.Refresh(); - } - } - - private static void SaveFile(string settingsPath) - { - var file = AssetDatabase.LoadAssetAtPath(settingsPath); - - EditorUtility.SetDirty(file); - AssetDatabase.SaveAssets(); - AssetDatabase.Refresh(); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta deleted file mode 100644 index 753e92ed..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/SettingsUtils/SaveSettingsData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7afe5a6ac49829c408df7e64761e822d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI.meta deleted file mode 100644 index 9144e9d9..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4a1230a2a75d21048917b14c34140601 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs deleted file mode 100644 index 0d3476c5..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - public partial class StyledGUI - { - public static void DrawInspectorBanner(Color bannerColor, string bannerText, string helpURL) - { - GUILayout.Space(20); - - var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); - var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40); - var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40); - var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40); - var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30); - - Color guiColor; - - if (EditorGUIUtility.isProSkin) - { - bannerColor = new Color(bannerColor.r, bannerColor.g, bannerColor.b, 1f); - } - else - { - bannerColor = CONSTANT.ColorLightGray; - } - - if (bannerColor.r + bannerColor.g + bannerColor.b <= 1.5f) - { - guiColor = CONSTANT.ColorLightGray; - } - else - { - guiColor = CONSTANT.ColorDarkGray; - } - - GUI.color = bannerColor; - - GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); - -#if UNITY_2019_3_OR_NEWER - GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); -#else - GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); -#endif - GUI.color = guiColor; - - if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter })) - { - Application.OpenURL(helpURL); - } - - GUI.color = Color.white; - GUILayout.Space(10); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta deleted file mode 100644 index b8754bf1..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorBanner.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1525d4228f26951498e86e425363f3f0 -timeCreated: 1542661236 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs deleted file mode 100644 index f0b66fe3..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - public partial class StyledGUI - { - public static void DrawInspectorCategory(Rect position, string bannerText) - { - var categoryFullRect = new Rect(position.position.x, position.position.y + 10, position.width, position.height); - var categoryBeginRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, 10, 20); - var categoryMiddleRect = new Rect(categoryFullRect.position.x + 10, categoryFullRect.position.y, categoryFullRect.xMax - 32, 20); - var categoryEndRect = new Rect(categoryFullRect.xMax - 10, categoryFullRect.position.y, 10, 20); - var titleRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, categoryFullRect.width, 18); - - if (EditorGUIUtility.isProSkin) - { - GUI.color = CONSTANT.ColorDarkGray; - } - else - { - GUI.color = CONSTANT.ColorLightGray; - } - - //Workaround for flickering images in CustomInspector with Attribute - GUIStyle styleB = new GUIStyle(); - styleB.normal.background = CONSTANT.CategoryImageBegin; - EditorGUI.LabelField(categoryBeginRect, GUIContent.none, styleB); - - GUIStyle styleM = new GUIStyle(); - styleM.normal.background = CONSTANT.CategoryImageMiddle; - EditorGUI.LabelField(categoryMiddleRect, GUIContent.none, styleM); - - GUIStyle styleE = new GUIStyle(); - styleE.normal.background = CONSTANT.CategoryImageEnd; - EditorGUI.LabelField(categoryEndRect, GUIContent.none, styleE); - - GUI.color = Color.white; - GUI.Label(titleRect, bannerText, CONSTANT.BoldTextStyle); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta deleted file mode 100644 index 567c6b15..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawInspectorCategory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 87b94a9c1333f074e8c24cd5a2fe1d73 -timeCreated: 1542661236 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs deleted file mode 100644 index 85a50d27..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - public partial class StyledGUI - { - public static void DrawWindowBanner(Color bannerColor, string bannerText, string helpURL) - { - GUILayout.Space(20); - - var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); - var bannerBeginRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, 20, 40); - var bannerMiddleRect = new Rect(bannerFullRect.position.x + 40, bannerFullRect.position.y, bannerFullRect.xMax - 75, 40); - var bannerEndRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y, 20, 40); - var iconRect = new Rect(bannerFullRect.xMax - 53, bannerFullRect.position.y + 5, 30, 30); - - Color guiColor; - - if (EditorGUIUtility.isProSkin) - { - bannerColor = new Color(bannerColor.r, bannerColor.g, bannerColor.b, 1f); - } - else - { - bannerColor = CONSTANT.ColorLightGray; - } - - if (bannerColor.r + bannerColor.g + bannerColor.b <= 1.5) - { - guiColor = CONSTANT.ColorLightGray; - } - else - { - guiColor = CONSTANT.ColorDarkGray; - } - - GUI.color = bannerColor; - - GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); - - GUI.color = guiColor; - -#if UNITY_2019_3_OR_NEWER - GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); -#else - GUI.Label(bannerFullRect, "" + bannerText + "", CONSTANT.TitleStyle); -#endif - if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter })) - { - Application.OpenURL(helpURL); - } - - GUI.color = Color.white; - GUILayout.Space(20); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta deleted file mode 100644 index 6978d25a..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowBanner.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: dd0ddca94871d9a4586a143a83184806 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs deleted file mode 100644 index 8950ff7b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - public partial class StyledGUI - { - public static void DrawWindowCategory(string bannerText) - { - var position = GUILayoutUtility.GetRect(0, 0, 40, 0); - - var categoryFullRect = new Rect(position.position.x, position.position.y + 10, position.width, position.height); - var categoryBeginRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, 10, 20); - var categoryMiddleRect = new Rect(categoryFullRect.position.x + 10, categoryFullRect.position.y, categoryFullRect.xMax - 41, 20); - var categoryEndRect = new Rect(categoryFullRect.xMax - 13, categoryFullRect.position.y, 10, 20); - var titleRect = new Rect(categoryFullRect.position.x, categoryFullRect.position.y, categoryFullRect.width, 18); - - if (EditorGUIUtility.isProSkin) - { - GUI.color = CONSTANT.ColorDarkGray; - } - else - { - GUI.color = CONSTANT.ColorLightGray; - } - - //Workaround for flickering images in CustomInspector with Attribute - GUIStyle styleB = new GUIStyle(); - styleB.normal.background = CONSTANT.CategoryImageBegin; - EditorGUI.LabelField(categoryBeginRect, GUIContent.none, styleB); - - GUIStyle styleM = new GUIStyle(); - styleM.normal.background = CONSTANT.CategoryImageMiddle; - EditorGUI.LabelField(categoryMiddleRect, GUIContent.none, styleM); - - GUIStyle styleE = new GUIStyle(); - styleE.normal.background = CONSTANT.CategoryImageEnd; - EditorGUI.LabelField(categoryEndRect, GUIContent.none, styleE); - - GUI.color = Color.white; - GUI.Label(titleRect, bannerText, CONSTANT.BoldTextStyle); - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta deleted file mode 100644 index 514bf87e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledGUI/DrawWindowCategory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: aac99d6d81f90e54cabd822770c11875 -timeCreated: 1542661236 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector.meta deleted file mode 100644 index 78def35b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 05282c25086dbbf4eb12cbe3cf6f16fc -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs deleted file mode 100644 index 133574e8..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledBanner))] - public class StyledBannerAttributeDrawer : PropertyDrawer - { - StyledBanner a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledBanner)attribute; - - DrawBanner(); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - - void DrawBanner() - { - GUILayout.Space(a.spaceTop); - - var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); - var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40); - var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40); - var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40); - var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30); - - Color bannerColor; - Color guiColor; - - if (EditorGUIUtility.isProSkin) - { - if (a.colorR < 0) - { - bannerColor = CONSTANT.ColorDarkGray; - guiColor = CONSTANT.ColorLightGray; - - } - else - { - bannerColor = new Color(a.colorR, a.colorG, a.colorB, 1f); - guiColor = CONSTANT.ColorDarkGray; - } - } - else - { - bannerColor = CONSTANT.ColorLightGray; - guiColor = CONSTANT.ColorDarkGray; - } - - GUI.color = bannerColor; - - GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); - -#if UNITY_2019_3_OR_NEWER - GUI.Label(bannerFullRect, "" + a.title + " " + a.subtitle + "", CONSTANT.TitleStyle); -#else - GUI.Label(bannerFullRect, "" + a.title + " " + a.subtitle + "", CONSTANT.TitleStyle); -#endif - GUI.color = guiColor; - - if (GUI.Button(iconRect, CONSTANT.IconHelp, new GUIStyle { alignment = TextAnchor.MiddleCenter })) - { - Application.OpenURL(a.helpURL); - } - - GUI.color = Color.white; - - GUILayout.Space(a.spaceBottom); - } - } - -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta deleted file mode 100644 index f856a02b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledBannerDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a832b9f47ccef214e81c89efe6bf31dd -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs deleted file mode 100644 index 7814d2cc..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledButton))] - public class StyledButtonAttributeDrawer : PropertyDrawer - { - StyledButton a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledButton)attribute; - - GUILayout.Space(a.Top); - - if (GUILayout.Button(a.Text)) - { - property.boolValue = true; - } - - GUILayout.Space(a.Down); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta deleted file mode 100644 index c78a77d0..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledButtonDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b1d35dbbb9b6c214aa892d7b240de3df -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs deleted file mode 100644 index 96516911..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledCategory))] - public class StyledCategoryAttributeDrawer : PropertyDrawer - { - StyledCategory a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledCategory)attribute; - - GUI.enabled = true; - - StyledGUI.DrawInspectorCategory(position, a.category); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return 40; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta deleted file mode 100644 index ac2a05e9..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledCategoryDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fb59d41716ab6114cb7cf03a5695083b -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs deleted file mode 100644 index 1f1d2e40..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledIndent))] - public class StyledIndentAttributeDrawer : PropertyDrawer - { - StyledIndent a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledIndent)attribute; - - EditorGUI.indentLevel = a.indent; - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta deleted file mode 100644 index 04574795..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ea3f7407f69f900468d4b60de570e49d -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs deleted file mode 100644 index 1f31e352..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledInteractive))] - public class StyledInteractiveAttributeDrawer : PropertyDrawer - { - StyledInteractive a; - - private int Value; - private string Keywork; - public int Type; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledInteractive)attribute; - - Value = a.value; - Keywork = a.keyword; - Type = a.type; - - if (Type == 0) - { - if (property.intValue == Value) - { - GUI.enabled = true; - } - else - { - GUI.enabled = false; - } - } - else if (Type == 1) - { - if (Keywork == "ON") - { - GUI.enabled = true; - } - else if (Keywork == "OFF") - { - GUI.enabled = false; - } - } - - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta deleted file mode 100644 index e9262191..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledInteractiveDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 80229de18cd73624b8181a9db49a304f -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs deleted file mode 100644 index c2b02d6c..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledMessage))] - public class StyledMessageAttributeDrawer : PropertyDrawer - { - StyledMessage a; - - bool show; - MessageType messageType; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - show = property.boolValue; - - if (show) - { - a = (StyledMessage)attribute; - - if (a.Type == "None") - { - messageType = MessageType.None; - } - else if (a.Type == "Info") - { - messageType = MessageType.Info; - } - else if (a.Type == "Warning") - { - messageType = MessageType.Warning; - } - else if (a.Type == "Error") - { - messageType = MessageType.Error; - } - - GUILayout.Space(a.Top); - EditorGUILayout.HelpBox(a.Message, messageType); - GUILayout.Space(a.Down); - } - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta deleted file mode 100644 index f207a760..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledMessageDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2734a300c1fbfb8499fe8a71e9b109e7 -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs deleted file mode 100644 index bcf8bbdb..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledPopupArray))] - public class StyledPopupArrayAttributeDrawer : PropertyDrawer - { - StyledPopupArray a; - private int index = 0; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledPopupArray)attribute; - - var arrProp = property.serializedObject.FindProperty(a.array); - - var arr = new string[arrProp.arraySize]; - - for (int i = 0; i < arrProp.arraySize; i++) - { - arr[i] = arrProp.GetArrayElementAtIndex(i).stringValue; - } - - index = EditorGUILayout.Popup(property.displayName, index, arr); - property.intValue = index; - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta deleted file mode 100644 index d7549d51..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupArrayDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bf9745e7c3c176c4395dbd644b463703 -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs deleted file mode 100644 index 0b2d4d4a..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledPopupLayers))] - public class StyledPopupLayersAttributeDrawer : PropertyDrawer - { - private int index; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - index = property.intValue; - - string[] allLayers = new string[32]; - - for (int i = 0; i < 32; i++) - { - if (LayerMask.LayerToName(i).Length < 1) - { - allLayers[i] = "Missing"; - } - else - { - allLayers[i] = LayerMask.LayerToName(i); - } - } - - index = EditorGUILayout.Popup(property.displayName, index, allLayers); - property.intValue = index; - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta deleted file mode 100644 index cf036463..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledPopupLayersDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b351b243374f2d948a9e9943abe174bf -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs deleted file mode 100644 index 9af9807b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledRangeOptions))] - public class StyledRangeOptionsAttributeDrawer : PropertyDrawer - { - StyledRangeOptions a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledRangeOptions)attribute; - - GUIStyle styleMid = new GUIStyle(); - styleMid.alignment = TextAnchor.MiddleCenter; - styleMid.normal.textColor = Color.gray; - styleMid.fontSize = 7; - - if (a.displayLabel.Length > 0) - { - EditorGUI.PropertyField(position, property, label, true); - GUILayout.Space(5); - } - - GUILayout.BeginHorizontal(); - GUILayout.Space(8); - property.floatValue = GUILayout.HorizontalSlider(property.floatValue, a.min, a.max); - property.floatValue = Mathf.Clamp(property.floatValue, a.min, a.max); - property.floatValue = Mathf.Round(property.floatValue * 1000f) / 1000f; - GUILayout.Space(8); - GUILayout.EndHorizontal(); - -#if UNITY_2019_3_OR_NEWER - GUILayout.Space(15); -#endif - GUILayout.BeginHorizontal(); - - int maxWidth = 20; - -#if UNITY_2019_3_OR_NEWER - maxWidth = 28; -#endif - for (int i = 0; i < a.options.Length - 1; i++) - { - GUILayout.Label(a.options[i], styleMid, GUILayout.Width(maxWidth)); - GUILayout.Label("", styleMid); - } - - GUILayout.Label(a.options[a.options.Length - 1], styleMid, GUILayout.Width(maxWidth)); - GUILayout.EndHorizontal(); - - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - a = (StyledRangeOptions)attribute; - - if (a.displayLabel.Length > 0) - { - return 18; - } - else - { - return -2; - } - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta deleted file mode 100644 index c76f9c35..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledRangeOptionsDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a5681c6e5862ae545ba9b00a5b813250 -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs deleted file mode 100644 index 267fe54f..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledSpace))] - public class StyledSpaceAttributeDrawer : PropertyDrawer - { - StyledSpace a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledSpace)attribute; - - GUILayout.Space(a.space); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta deleted file mode 100644 index b5e5c875..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledSpaceDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: db0457065a494f34aa3b619f240d8bda -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs deleted file mode 100644 index 3850da2e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledText))] - public class StyledTextAttributeDrawer : PropertyDrawer - { - StyledText a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledText)attribute; - - GUIStyle styleLabel = new GUIStyle(EditorStyles.label) - { - richText = true, - wordWrap = true - }; - - styleLabel.alignment = a.alignment; - - GUILayout.Space(a.top); - - if (a.disabled == true) - { - GUI.enabled = false; - } - - GUILayout.Label(property.stringValue, styleLabel); - - GUI.enabled = true; - - GUILayout.Space(a.down); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta deleted file mode 100644 index 9aa5faee..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTextDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: aeec2ac650d2d8f40aa3b9e0cb807db5 -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs deleted file mode 100644 index b95184aa..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledTexturePreview))] - public class StyledTexturePreviewAttributeDrawer : PropertyDrawer - { - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - var rect = GUILayoutUtility.GetRect(0, 0, Screen.width, 0); - GUI.DrawTexture(rect, (Texture)property.objectReferenceValue, ScaleMode.StretchToFill, false); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta deleted file mode 100644 index 75c7f333..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledTexturePreviewDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c8daad1bc4051084ca6204e12dc0890d -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta deleted file mode 100644 index 6c2aa7ba..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 72d0e5549e090634c9f3ff5e896c3e93 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs deleted file mode 100644 index fe4e53d6..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using Boxophobic.Constants; - -namespace Boxophobic.StyledGUI -{ - public class StyledBannerDrawer : MaterialPropertyDrawer - { - public string title; - public string subtitle; - - public StyledBannerDrawer(string title, string subtitle) - { - this.title = title; - this.subtitle = subtitle; - } - - public StyledBannerDrawer(string title) - { - this.title = title; - this.subtitle = ""; - } - - public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor materialEditor) - { - //EditorGUI.DrawRect(position, new Color(0, 1, 0, 0.05f)); - - Material material = materialEditor.target as Material; - - DrawBanner(material.shader); - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - - void DrawBanner(Shader shader) - { - GUILayout.Space(10); - - var bannerFullRect = GUILayoutUtility.GetRect(0, 0, 40, 0); - var bannerBeginRect = new Rect(bannerFullRect.position.x, bannerFullRect.position.y, 20, 40); - var bannerMiddleRect = new Rect(bannerFullRect.position.x + 20, bannerFullRect.position.y, bannerFullRect.xMax - 54, 40); - var bannerEndRect = new Rect(bannerFullRect.xMax - 20, bannerFullRect.position.y, 20, 40); - //var iconRect = new Rect(bannerFullRect.xMax - 36, bannerFullRect.position.y + 5, 30, 30); - - Color bannerColor; - Color guiColor; - - if (EditorGUIUtility.isProSkin) - { - bannerColor = CONSTANT.ColorDarkGray; - guiColor = CONSTANT.ColorLightGray; - } - else - { - bannerColor = CONSTANT.ColorLightGray; - guiColor = CONSTANT.ColorDarkGray; - } - - GUI.color = bannerColor; - - GUI.DrawTexture(bannerBeginRect, CONSTANT.BannerImageBegin, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerMiddleRect, CONSTANT.BannerImageMiddle, ScaleMode.StretchToFill, true); - GUI.DrawTexture(bannerEndRect, CONSTANT.BannerImageEnd, ScaleMode.StretchToFill, true); - -#if UNITY_2019_3_OR_NEWER - GUI.Label(bannerFullRect, "" + title + "" + " " + subtitle + "", CONSTANT.TitleStyle); -#else - GUI.Label(bannerFullRect, "" + title + " " + subtitle + "", CONSTANT.TitleStyle); -#endif - -// GUI.color = guiColor; - -//#if AMPLIFY_SHADER_EDITOR -// if (GUI.Button(iconRect, CONSTANT.IconEdit, new GUIStyle { alignment = TextAnchor.MiddleCenter })) -// { -// AmplifyShaderEditor.AmplifyShaderEditorWindow.ConvertShaderToASE(Shader.Find(shader.name)); -// } -//#else -// if (GUI.Button(iconRect, CONSTANT.IconEdit, new GUIStyle { alignment = TextAnchor.MiddleCenter })) -// { -// AssetDatabase.OpenAsset(Shader.Find(shader.name), 1); -// } -//#endif - - GUI.color = Color.white; - - GUILayout.Space(10); - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta deleted file mode 100644 index 636d5946..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledBannerDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 864d8c89c5d2ef240b0c51f15c5211e2 -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs deleted file mode 100644 index 4c1a46ae..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledButtonDrawer : MaterialPropertyDrawer - { - public string text; - public string target = ""; - public float value = 1; - public float top; - public float down; - - public StyledButtonDrawer(string text) - { - this.text = text; - this.value = 1; - this.top = 0; - this.down = 0; - } - - public StyledButtonDrawer(string text, float value, float top, float down) - { - this.text = text; - this.value = value; - this.top = top; - this.down = down; - } - - public StyledButtonDrawer(string text, string target, float value, float top, float down) - { - this.text = text; - this.target = target; - this.value = value; - this.top = top; - this.down = down; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - Material material = materialEditor.target as Material; - - GUILayout.Space(top); - - if (GUILayout.Button(text)) - { - if (target == "") - { - prop.floatValue = value; - } - else - { - if (material.HasProperty(target)) - { - material.SetFloat(target, value); - } - } - } - - GUILayout.Space(down); - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta deleted file mode 100644 index 20f8fd51..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledButtonDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b40d7a397aa055b46a1651ee9f9bdd03 -timeCreated: 1542224092 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs deleted file mode 100644 index 640cfed7..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledCategoryDrawer : MaterialPropertyDrawer - { - public string category; - - public StyledCategoryDrawer(string category) - { - this.category = category; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materiaEditor) - { - if (prop.floatValue < 0) - { - GUI.enabled = true; - EditorGUI.indentLevel = 0; - } - else - { - GUI.enabled = true; - EditorGUI.indentLevel = 0; - StyledGUI.DrawInspectorCategory(position, category); - } - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - if (prop.floatValue < 0) - { - return -2; - } - else - { - return 40; - } - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta deleted file mode 100644 index e853f827..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledCategoryDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1b5715cd99e4a2e4c91d69653d31dad9 -timeCreated: 1542224092 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs deleted file mode 100644 index c3b6afeb..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledDiffusionMaterialDrawer : MaterialPropertyDrawer - { - public string propName; - //GUIStyle styleCenteredHelpBox; - - public StyledDiffusionMaterialDrawer(string propName) - { - this.propName = propName; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - //SetGUIStyles(); - - Material material = materialEditor.target as Material; - - UnityEngine.Object materialAsset = null; - - GUILayout.Space(5); - - if (material.GetInt(propName) == 0) - { - EditorGUILayout.HelpBox("Diffusion profile values not set! Due to the current HDRP architecture the diffusion profiles are not directly supported. You will need to create an HDRP Lit material and assign a Diffusion Profile to it, drag this HDRP material to the " + label + " slot to allow the profile values to be copied to the material. The HDRP material will not be saved to the property field! Please refer to the documentation for more information.", MessageType.Warning); - } - else - { - EditorGUILayout.HelpBox("Diffusion profile values set! Due to the current HDRP architecture the diffusion profiles are not directly supported. You will need to create an HDRP Lit material and assign a Diffusion Profile to it, drag this HDRP material to the " + label + " slot to allow the profile values to be copied to the material. The HDRP material will not be saved to the property field! Please refer to the documentation for more information.", MessageType.Info); - } - - GUILayout.Space(10); - - materialAsset = (Material)EditorGUILayout.ObjectField(label, materialAsset, typeof(Material), false); - - Material materialObject = AssetDatabase.LoadAssetAtPath(AssetDatabase.GetAssetPath(materialAsset)); - - if (materialAsset != null) - { - if (materialObject.HasProperty("_DiffusionProfileAsset") && materialObject.HasProperty("_DiffusionProfileHash")) - { - var diffusionProfileAsset = materialObject.GetVector("_DiffusionProfileAsset"); - var diffusionProfileHash = materialObject.GetFloat("_DiffusionProfileHash"); - - if (diffusionProfileAsset.x != 0 && diffusionProfileHash != 0) - { - material.SetVector(propName + "_asset", diffusionProfileAsset); - material.SetFloat(propName, diffusionProfileHash); - - Debug.Log("Diffusion Profile settings copied from " + materialObject.name + "!"); - - materialAsset = null; - } - else - { - material.SetVector(propName + "_asset", Vector4.zero); - material.SetFloat(propName, 0.0f); - - Debug.Log("Diffusion Profile settings set to None because " + materialObject.name + " has no Diffusion Profile asset!"); - - materialAsset = null; - } - } - else - { - Debug.Log("The Material used to copy the Diffusion Profile does not a valid Diffusion Profile!"); - } - } - - //EditorGUI.HelpBox(new Rect(position.x, position.y + top, position.width, position.height), message, mType); - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - - //void SetGUIStyles() - //{ - // styleCenteredHelpBox = new GUIStyle(GUI.skin.GetStyle("HelpBox")) - // { - // alignment = TextAnchor.MiddleCenter, - // }; - - //} - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta deleted file mode 100644 index d01d4c28..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledDiffusionMaterialDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f13faeb510c3cb54ba5d051ecaad26e3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs deleted file mode 100644 index 0905c5a0..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledIndentDrawer : MaterialPropertyDrawer - { - public float indent; - - public StyledIndentDrawer(float indent) - { - this.indent = indent; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - //Material material = materialEditor.target as Material; - - EditorGUI.indentLevel = (int)indent; - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta deleted file mode 100644 index 2b9a0ba3..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledIndentDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ae4fb3d8081065c47860724ea515c97c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs deleted file mode 100644 index 3f321cbe..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledInteractiveDrawer : MaterialPropertyDrawer - { - public string keyword; - public float value1 = -1f; - public float value2 = -1f; - public float value3 = -1f; - - protected int type; - - public StyledInteractiveDrawer(string k) - { - type = 0; - keyword = k; - } - - public StyledInteractiveDrawer(string k, float v1) - { - type = 1; - keyword = k; - value1 = v1; - } - - public StyledInteractiveDrawer(string k, float v1, float v2) - { - type = 1; - keyword = k; - value1 = v1; - value2 = v2; - } - - public StyledInteractiveDrawer(string k, float v1, float v2, float v3) - { - type = 1; - keyword = k; - value1 = v1; - value2 = v2; - value3 = v3; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - Material material = materialEditor.target as Material; - - if (type == 1) - { - if (material.HasProperty(keyword)) - { - if (value1 == material.GetFloat(keyword) || value2 == material.GetFloat(keyword) || value3 == material.GetFloat(keyword)) - { - GUI.enabled = true; - } - else - { - GUI.enabled = false; - } - } - } - else if (type == 0) - { - if (keyword == "ON") - { - GUI.enabled = true; - } - else if (keyword == "OFF") - { - GUI.enabled = false; - } - else if (material.IsKeywordEnabled(keyword)) - { - GUI.enabled = true; - } - else - { - GUI.enabled = false; - } - } - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta deleted file mode 100644 index c0f32f8b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledInteractiveDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7cc33d297d20daa40a9b09fbb8e59502 -timeCreated: 1544039105 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs deleted file mode 100644 index de9414a4..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledMessageDrawer : MaterialPropertyDrawer - { - public string type; - public string message; - public string keyword; - public float value; - public float top; - public float down; - - MessageType mType; - - public StyledMessageDrawer(string t, string m, float top, float down) - { - type = t; - message = m; - keyword = null; - - this.top = top; - this.down = down; - } - - public StyledMessageDrawer(string t, string m, string k, float v, float top, float down) - { - type = t; - message = m; - keyword = k; - value = v; - - this.top = top; - this.down = down; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - Material material = materialEditor.target as Material; - - if (type == "None") - { - mType = MessageType.None; - } - else if (type == "Info") - { - mType = MessageType.Info; - } - else if (type == "Warning") - { - mType = MessageType.Warning; - } - else if (type == "Error") - { - mType = MessageType.Error; - } - - if (keyword != null) - { - if (material.HasProperty(keyword)) - { - if (material.GetFloat(keyword) == value) - { - GUILayout.Space(top); - //EditorGUI.DrawRect(new Rect(position.x, position.y + Top, position.width, position.height), new Color(1,0,0,0.3f)); - EditorGUILayout.HelpBox(message, mType); - //EditorGUI.HelpBox(new Rect(position.x, position.y + top, position.width, position.height), message, mType); - GUILayout.Space(down); - - } - } - } - else - { - GUILayout.Space(top); - EditorGUILayout.HelpBox(message, mType); - GUILayout.Space(down); - } - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta deleted file mode 100644 index 74e720bc..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledMessageDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d01ce91280120de49b931b40f9e16f6b -timeCreated: 1542224092 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs deleted file mode 100644 index 24a38b3c..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - public class StyledSpaceDrawer : MaterialPropertyDrawer - { - public float space; - - public StyledSpaceDrawer(float space) - { - this.space = space; - } - - public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor materialEditor) - { - //EditorGUI.DrawRect(position, new Color(0, 1, 0, 0.05f)); - - //Material material = materialEditor.target as Material; - - GUILayout.Space(space); - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta deleted file mode 100644 index 05335608..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledSpaceDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1f2f57e67392e5b41af1a4cecc3a6c04 -timeCreated: 1544998323 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs deleted file mode 100644 index 88e07a48..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledTextDrawer : MaterialPropertyDrawer - { - public string text = ""; - public string alignment = "Center"; - public string font = "Normal"; - public string disabled = ""; - public float size = 11; - public float top = 0; - public float down = 0; - - public StyledTextDrawer(string text) - { - this.text = text; - } - - public StyledTextDrawer(string text, string alignment, string font, string disabled, float size) - { - this.text = text; - this.alignment = alignment; - this.font = font; - this.disabled = disabled; - this.size = size; - } - - public StyledTextDrawer(string text, string alignment, string font, string disabled, float size, float top, float down) - { - this.text = text; - this.alignment = alignment; - this.font = font; - this.disabled = disabled; - this.size = size; - this.top = top; - this.down = down; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - //Material material = materialEditor.target as Material; - - GUIStyle styleLabel = new GUIStyle(EditorStyles.label) - { - richText = true, - alignment = TextAnchor.MiddleCenter, - wordWrap = true - }; - - GUILayout.Space(top); - - if (alignment == "Center") - { - styleLabel.alignment = TextAnchor.MiddleCenter; - - } - else if (alignment == "Left") - { - styleLabel.alignment = TextAnchor.MiddleCenter; - } - else if (alignment == "Left") - { - styleLabel.alignment = TextAnchor.MiddleCenter; - } - - if (font == "Bold") - { - styleLabel.fontStyle = FontStyle.Bold; - } - else - { - styleLabel.fontStyle = FontStyle.Normal; - } - - styleLabel.fontSize = (int)size; - - if (disabled == "Disabled") - { - GUI.enabled = false; - } - - GUILayout.Label(text, styleLabel); - - GUI.enabled = true; - - GUILayout.Space(down); - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta deleted file mode 100644 index 35f119db..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledTextDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e137daebc2f7e0c4aa0ee5c5b140e8fd -timeCreated: 1542224092 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs deleted file mode 100644 index 79fb4543..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; -using System; - -namespace Boxophobic.StyledGUI -{ - public class StyledToggleDrawer : MaterialPropertyDrawer - { - public float width = 0; - - public StyledToggleDrawer() - { - - } - - public StyledToggleDrawer(float width) - { - this.width = width; - } - - public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materialEditor) - { - Material material = materialEditor.target as Material; - - if (width == 0) - { - bool toggle = false; - - if (prop.floatValue > 0.5f) - { - toggle = true; - } - - toggle = EditorGUILayout.Toggle(label, toggle); - - if (toggle) - { - prop.floatValue = 1; - } - else - { - prop.floatValue = 0; - } - } - else - { - GUILayout.BeginHorizontal(); - - GUILayout.Label(label); - - bool toggle = false; - - if (prop.floatValue > 0.5f) - { - toggle = true; - } - - toggle = GUILayout.Toggle(toggle, "", GUILayout.Width(width)); - - if (toggle) - { - prop.floatValue = 1; - } - else - { - prop.floatValue = 0; - } - - GUILayout.EndHorizontal(); - } - } - - public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) - { - return -2; - } - } -} diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta deleted file mode 100644 index 33897f35..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMaterial/StyledToggleDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d5699c954b5c9184199293b4ede31d57 -timeCreated: 1542224092 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMono.meta deleted file mode 100644 index ba24786c..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a8b42c332908fba438ec7ea14b4dded1 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs deleted file mode 100644 index db30921f..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs +++ /dev/null @@ -1,20 +0,0 @@ -//#if UNITY_EDITOR -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomEditor(typeof(StyledMonoBehaviour), true)] - [CanEditMultipleObjects] - public class StyledMonoBehaviourEditor : Editor - { - public override void OnInspectorGUI() - { - serializedObject.Update(); - EditorGUI.BeginChangeCheck(); - DrawPropertiesExcluding(serializedObject, "m_Script"); - if (EditorGUI.EndChangeCheck()) - serializedObject.ApplyModifiedProperties(); - } - } -} -//#endif \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta deleted file mode 100644 index f60827ff..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledMonoBehaviourEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 29c1ac24df072a744a4bdc6a209772bf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs deleted file mode 100644 index accb83f3..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs +++ /dev/null @@ -1,20 +0,0 @@ -//#if UNITY_EDITOR -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomEditor(typeof(StyledScriptableObject), true)] - [CanEditMultipleObjects] - public class StyledScriptableObjectEditor : Editor - { - public override void OnInspectorGUI() - { - serializedObject.Update(); - EditorGUI.BeginChangeCheck(); - DrawPropertiesExcluding(serializedObject, "m_Script"); - if (EditorGUI.EndChangeCheck()) - serializedObject.ApplyModifiedProperties(); - } - } -} -//#endif \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta b/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta deleted file mode 100644 index cfff437a..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledMono/StyledScriptableObjectEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7a0e1a0aaab33f341b20d7d940fe0a06 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources.meta b/Assets/BOXOPHOBIC/Utils/Resources.meta deleted file mode 100644 index 338cbff7..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b1b58aafa2fedeb429de4a748510a6dd -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd deleted file mode 100644 index 3a11e16c..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta deleted file mode 100644 index 5afae7a9..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerBegin.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: 9515108b8376ad7418e8138858201b72 -timeCreated: 1541620736 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd deleted file mode 100644 index 11e86fae..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta deleted file mode 100644 index 555c0480..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerEnd.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: 0dd3fbd5475976a4aa96298afc680d17 -timeCreated: 1541620736 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd deleted file mode 100644 index 6812f385..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta deleted file mode 100644 index 562e206e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - BannerMiddle.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: e3767adfa5dac5544830cd097ef6c09f -timeCreated: 1541620736 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd deleted file mode 100644 index 912c5e03..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta deleted file mode 100644 index 610069f3..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryBegin.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: 97ec2262fb592f94a9569e156ea65d7b -timeCreated: 1542342551 -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: 64 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - - buildTarget: Standalone - maxTextureSize: 64 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - - buildTarget: Android - maxTextureSize: 64 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd deleted file mode 100644 index 9e7eaa46..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta deleted file mode 100644 index 0f4a7cc1..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryEnd.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: e1c856352cf5b9b479ddb80c85c84cd5 -timeCreated: 1542342551 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd deleted file mode 100644 index 22c27f3c..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta deleted file mode 100644 index b7a9d923..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - CategoryMiddle.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: 106fc33e3a3dab34f89693e3ed333fa2 -timeCreated: 1542342551 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd deleted file mode 100644 index dee07097..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta deleted file mode 100644 index 42feeb98..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconEdit.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: cf593cb3310b7784a8f0967b8ba89b02 -timeCreated: 1542656899 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd deleted file mode 100644 index bee573fe..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta deleted file mode 100644 index e0ee307e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - IconHelp.psd.meta +++ /dev/null @@ -1,84 +0,0 @@ -fileFormatVersion: 2 -guid: b676a215be26cba488e51c0dda84e72d -timeCreated: 1542663379 -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: Android - maxTextureSize: 2048 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png deleted file mode 100644 index fda1f8a5..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta b/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta deleted file mode 100644 index b6e68c9a..00000000 --- a/Assets/BOXOPHOBIC/Utils/Resources/Boxophobic - Logo.png.meta +++ /dev/null @@ -1,92 +0,0 @@ -fileFormatVersion: 2 -guid: 4ebb9926546381046a4271ece54ce919 -timeCreated: 1522739004 -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: 32 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - - buildTarget: Standalone - maxTextureSize: 32 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - - buildTarget: Android - maxTextureSize: 32 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - - buildTarget: WebGL - maxTextureSize: 32 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts.meta b/Assets/BOXOPHOBIC/Utils/Scripts.meta deleted file mode 100644 index cb717a97..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 182523467462c8843927ea3a1521f7ba -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef b/Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef deleted file mode 100644 index 3354f295..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "Boxophobic.Utils.Scripts", - "references": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta b/Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta deleted file mode 100644 index b8b8edd0..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/Boxophobic.Utils.Scripts.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 825ad574da7360d4e8aea558f272972e -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta b/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta deleted file mode 100644 index 0388e113..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5d173e32f35ece04fb0dbcecc74ba8f9 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs b/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs deleted file mode 100644 index 43557f87..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.Utils -{ - [CreateAssetMenu(fileName = "Data", menuName = "BOXOPHOBIC/Settings Data")] - public class SettingsData : ScriptableObject - { - [Space] - public string data = ""; - } -} \ No newline at end of file diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta deleted file mode 100644 index 97109cf8..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/SettingsUtils/SettingsData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 93308045fbb3c5e42ba5ccb66d848632 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta deleted file mode 100644 index 63020842..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 552b22f2a2991434caae4055e7f687b8 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs deleted file mode 100644 index 568b1d85..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledBanner : PropertyAttribute - { - public float colorR; - public float colorG; - public float colorB; - public string title; - public string subtitle; - public int spaceTop; - public int spaceBottom; - public string helpURL; - - public StyledBanner(string title, string subtitle, string helpURL) - { - this.spaceTop = 10; - this.spaceBottom = 10; - this.colorR = -1; - this.title = title; - this.subtitle = subtitle; - this.helpURL = helpURL; - } - - public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, string helpURL) - { - this.spaceTop = 10; - this.spaceBottom = 10; - this.colorR = colorR; - this.colorG = colorG; - this.colorB = colorB; - this.title = title; - this.subtitle = subtitle; - this.helpURL = helpURL; - } - - public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, int spaceTop, int spaceBottom, string helpURL) - { - this.colorR = colorR; - this.colorG = colorG; - this.colorB = colorB; - this.title = title; - this.subtitle = subtitle; - this.spaceTop = spaceTop; - this.spaceBottom = spaceBottom; - this.helpURL = helpURL; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta deleted file mode 100644 index 17d5e7c6..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0fb089d68a8e4634390e299256c8eec7 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs deleted file mode 100644 index 36092480..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledButton : PropertyAttribute - { - public string Text = ""; - public float Top = 0; - public float Down = 0; - - public StyledButton(string Text, string Message) - { - this.Text = Text; - this.Top = 0; - this.Down = 0; - } - - public StyledButton(string Text, float Top, float Down) - { - this.Text = Text; - this.Top = Top; - this.Down = Down; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta deleted file mode 100644 index ec11104d..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledButton.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7c167590d9d480e438111f555c3a9d09 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs deleted file mode 100644 index 927b43c2..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledCategory : PropertyAttribute - { - public string category; - - public StyledCategory(string category) - { - this.category = category; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta deleted file mode 100644 index ed349a6f..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledCategory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6dfd994aa3f6b3944a0bd6effc2b3102 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs deleted file mode 100644 index 94015d40..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledIndent : PropertyAttribute - { - public int indent; - - public StyledIndent(int indent) - { - this.indent = indent; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta deleted file mode 100644 index 709de96b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledIndent.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fd0e43229939f8b45bd79345e699dfcd -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs deleted file mode 100644 index 8fd73a33..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledInteractive : PropertyAttribute - { - public int value; - public string keyword; - public int type; - - public StyledInteractive(int v) - { - type = 0; - value = v; - } - - public StyledInteractive(string k) - { - type = 1; - keyword = k; - } - } - -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta deleted file mode 100644 index 9cd49244..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledInteractive.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 388415cfa9bb69041a8281bc567acec5 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs deleted file mode 100644 index f75624e0..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledMessage : PropertyAttribute - { - public string Type; - public string Message; - public float Top; - public float Down; - - public StyledMessage(string Type, string Message) - { - this.Type = Type; - this.Message = Message; - this.Top = 0; - this.Down = 0; - } - - public StyledMessage(string Type, string Message, float Top, float Down) - { - this.Type = Type; - this.Message = Message; - this.Top = Top; - this.Down = Down; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta deleted file mode 100644 index 969be37a..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledMessage.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ab1d3117b9da8d7429e5ac70bd016772 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs deleted file mode 100644 index a3fb1557..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledPopupArray : PropertyAttribute - { - public string array; - - public StyledPopupArray(string array) - { - this.array = array; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta deleted file mode 100644 index f2221378..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupArray.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0b32866cb35dd534c8ed7dda217b547e -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs deleted file mode 100644 index 01b59171..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledPopupLayers : PropertyAttribute - { - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta deleted file mode 100644 index fa65de81..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledPopupLayers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0859d05e88a639846b09d3b97fe33c7b -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs deleted file mode 100644 index 81ca43ea..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledRangeOptions : PropertyAttribute - { - public float min; - public float max; - public string displayLabel; - public string[] options; - - public StyledRangeOptions(float min, float max, string displayLabel, string[] options) - { - this.min = min; - this.max = max; - this.displayLabel = displayLabel; - - this.options = options; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta deleted file mode 100644 index cd0009d0..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledRangeOptions.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 896f8a6be3053ff4a8f322a960986af1 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs deleted file mode 100644 index ec2fef0e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledSpace : PropertyAttribute - { - public int space; - - public StyledSpace(int space) - { - this.space = space; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta deleted file mode 100644 index 2d2d8d7e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledSpace.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e11186e2ccd8bf44d9d8699902268c99 -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs deleted file mode 100644 index 7c53619d..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledText : PropertyAttribute - { - public string text = ""; - public TextAnchor alignment = TextAnchor.MiddleCenter; - public bool disabled = false; - public float top = 0; - public float down = 0; - - public StyledText() - { - } - - public StyledText(TextAnchor alignment, bool disabled) - { - this.alignment = alignment; - this.disabled = disabled; - } - - public StyledText(TextAnchor alignment, bool disabled, float top, float down) - { - this.alignment = alignment; - this.disabled = disabled; - this.top = top; - this.down = down; - } - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta deleted file mode 100644 index 20160153..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: df9ee7b5ab129dd4991f424a8d93430b -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs deleted file mode 100644 index c0a30531..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Boxophobic.StyledGUI -{ - public class StyledTexturePreview : PropertyAttribute - { - } -} - diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta deleted file mode 100644 index 9d5a8c0f..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledTexturePreview.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b33fc29a1077eff40880c4d54b57136c -timeCreated: 1544997099 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono.meta deleted file mode 100644 index 8717be17..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3c68b6da1ed7bfe45aae9f6790b168d6 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs deleted file mode 100644 index be59139e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs +++ /dev/null @@ -1,7 +0,0 @@ -using UnityEngine; -using Boxophobic.StyledGUI; - -public class StyledMonoBehaviour : MonoBehaviour -{ - -} diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta deleted file mode 100644 index f856e01b..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledMonoBehaviour.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0003a5bea05764747b05fa096a075848 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs deleted file mode 100644 index 7515e5a6..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs +++ /dev/null @@ -1,7 +0,0 @@ -using UnityEngine; -using Boxophobic.StyledGUI; - -public class StyledScriptableObject: ScriptableObject -{ - -} diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta b/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta deleted file mode 100644 index ac3c576e..00000000 --- a/Assets/BOXOPHOBIC/Utils/Scripts/StyledMono/StyledScriptableObject.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 528a63c4c58b58a4ca3927eec830c596 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/BOXOPHOBIC/Utils/Utils.pdf b/Assets/BOXOPHOBIC/Utils/Utils.pdf deleted file mode 100644 index 16960da2..00000000 Binary files a/Assets/BOXOPHOBIC/Utils/Utils.pdf and /dev/null differ diff --git a/Assets/BOXOPHOBIC/Utils/Utils.pdf.meta b/Assets/BOXOPHOBIC/Utils/Utils.pdf.meta deleted file mode 100644 index 0dd274c3..00000000 --- a/Assets/BOXOPHOBIC/Utils/Utils.pdf.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0aca0e2d06b26544681357ef98393b10 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Bundle/Unit/PC/Erika/AnimationData/Frank_RPG_Assassin_Combo02_1.asset b/Assets/Bundle/Unit/PC/Erika/AnimationData/Frank_RPG_Assassin_Combo02_1.asset index 17897966..e4d94696 100644 --- a/Assets/Bundle/Unit/PC/Erika/AnimationData/Frank_RPG_Assassin_Combo02_1.asset +++ b/Assets/Bundle/Unit/PC/Erika/AnimationData/Frank_RPG_Assassin_Combo02_1.asset @@ -10,7 +10,7 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: cab6406109041434e890f22d6455172f, type: 3} - m_Name: Frank_RPG_Assassin_Combo02_1(Clone) + m_Name: Frank_RPG_Assassin_Combo02_1 m_EditorClassIdentifier: animationName: Frank_RPG_Assassin_Combo02_1 animationPath: Assets/Bundle/Unit/PC/Erika/AnimationClip/Frank_RPG_Assassin_Combo02_1.anim diff --git a/Assets/Gizmos.meta b/Assets/Gizmos.meta new file mode 100644 index 00000000..b0c759c0 --- /dev/null +++ b/Assets/Gizmos.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 83e68ef8a9fae1d478e2af0204db5f3f +DefaultImporter: + userData: diff --git a/Assets/Gizmos/Behavior Designer Hier Icon.png b/Assets/Gizmos/Behavior Designer Hier Icon.png new file mode 100644 index 00000000..1b4f933e Binary files /dev/null and b/Assets/Gizmos/Behavior Designer Hier Icon.png differ diff --git a/Assets/Gizmos/Behavior Designer Hier Icon.png.meta b/Assets/Gizmos/Behavior Designer Hier Icon.png.meta new file mode 100644 index 00000000..9714cd2f --- /dev/null +++ b/Assets/Gizmos/Behavior Designer Hier Icon.png.meta @@ -0,0 +1,35 @@ +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: diff --git a/Assets/Gizmos/Behavior Designer Scene Icon.png b/Assets/Gizmos/Behavior Designer Scene Icon.png new file mode 100644 index 00000000..5e67cae4 Binary files /dev/null and b/Assets/Gizmos/Behavior Designer Scene Icon.png differ diff --git a/Assets/Gizmos/Behavior Designer Scene Icon.png.meta b/Assets/Gizmos/Behavior Designer Scene Icon.png.meta new file mode 100644 index 00000000..4d1a9473 --- /dev/null +++ b/Assets/Gizmos/Behavior Designer Scene Icon.png.meta @@ -0,0 +1,35 @@ +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: diff --git a/Assets/Scenes/scene_demo.unity b/Assets/Scenes/scene_demo.unity new file mode 100644 index 00000000..a673abf8 --- /dev/null +++ b/Assets/Scenes/scene_demo.unity @@ -0,0 +1,412 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &4 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 10 + m_Resolution: 1 + m_BakeResolution: 50 + m_AtlasSize: 1024 + m_AO: 1 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 0 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 1 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 0 +--- !u!196 &5 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666666 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &321943119 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 321943123} + - component: {fileID: 321943122} + - component: {fileID: 321943121} + - component: {fileID: 321943120} + m_Layer: 0 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &321943120 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 321943119} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!64 &321943121 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 321943119} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &321943122 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 321943119} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &321943123 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 321943119} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.7811842, y: -0.05815482, z: -0.6690309} + m_LocalScale: {x: 11.692141, y: 11.692141, z: 11.692141} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &324580047 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 324580049} + - component: {fileID: 324580048} + m_Layer: 0 + m_Name: Directional light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &324580048 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 324580047} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 1 + m_Resolution: 3 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 1 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &324580049 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 324580047} + m_LocalRotation: {x: 0.8366761, y: -0.26379114, z: 0.011802134, w: 0.47984174} + m_LocalPosition: {x: 0.5619298, y: 3.9514444, z: 1.8060138} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &480412271 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} +--- !u!1 &1521020148 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1521020153} + - component: {fileID: 1521020152} + - component: {fileID: 1521020151} + - component: {fileID: 1521020150} + - component: {fileID: 1521020149} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1521020149 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1521020148} + m_Enabled: 1 +--- !u!124 &1521020150 +Behaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1521020148} + m_Enabled: 1 +--- !u!92 &1521020151 +Behaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1521020148} + m_Enabled: 1 +--- !u!20 &1521020152 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1521020148} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.26666668, g: 0.26666668, b: 0.26666668, a: 0.019607844} + m_projectionMatrixMode: 1 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_GateFitMode: 2 + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 100 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1521020153 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1521020148} + m_LocalRotation: {x: 0, y: -1, z: 0, w: -0.00000004371139} + m_LocalPosition: {x: 0, y: 1.1463037, z: 2.4115133} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Scenes/scene_demo.unity.meta b/Assets/Scenes/scene_demo.unity.meta new file mode 100644 index 00000000..ef8d05c9 --- /dev/null +++ b/Assets/Scenes/scene_demo.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d1035eaa2a250cf43a80265375086f12 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/SerializableDictionary.meta b/Assets/SerializableDictionary.meta deleted file mode 100644 index 67b5d50c..00000000 --- a/Assets/SerializableDictionary.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2d762dd0108f21340a170723767648cb -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/SerializableDictionary/Editor.meta b/Assets/SerializableDictionary/Editor.meta deleted file mode 100644 index 5bfd990a..00000000 --- a/Assets/SerializableDictionary/Editor.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 20029ee1c099f4b47afbac48208879b9 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs b/Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs deleted file mode 100644 index 7758c4a0..00000000 --- a/Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs +++ /dev/null @@ -1,566 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; -using System.Reflection; -using System; - -public class SerializableDictionaryPropertyDrawer : PropertyDrawer -{ - const string KeysFieldName = "m_keys"; - const string ValuesFieldName = "m_values"; - protected const float IndentWidth = 15f; - - static GUIContent s_iconPlus = IconContent ("Toolbar Plus", "Add entry"); - static GUIContent s_iconMinus = IconContent ("Toolbar Minus", "Remove entry"); - static GUIContent s_warningIconConflict = IconContent ("console.warnicon.sml", "Conflicting key, this entry will be lost"); - static GUIContent s_warningIconOther = IconContent ("console.infoicon.sml", "Conflicting key"); - static GUIContent s_warningIconNull = IconContent ("console.warnicon.sml", "Null key, this entry will be lost"); - static GUIStyle s_buttonStyle = GUIStyle.none; - static GUIContent s_tempContent = new GUIContent(); - - - class ConflictState - { - public object conflictKey = null; - public object conflictValue = null; - public int conflictIndex = -1 ; - public int conflictOtherIndex = -1 ; - public bool conflictKeyPropertyExpanded = false; - public bool conflictValuePropertyExpanded = false; - public float conflictLineHeight = 0f; - } - - struct PropertyIdentity - { - public PropertyIdentity(SerializedProperty property) - { - this.instance = property.serializedObject.targetObject; - this.propertyPath = property.propertyPath; - } - - public UnityEngine.Object instance; - public string propertyPath; - } - - static Dictionary s_conflictStateDict = new Dictionary(); - - enum Action - { - None, - Add, - Remove - } - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - label = EditorGUI.BeginProperty(position, label, property); - - Action buttonAction = Action.None; - int buttonActionIndex = 0; - - var keyArrayProperty = property.FindPropertyRelative(KeysFieldName); - var valueArrayProperty = property.FindPropertyRelative(ValuesFieldName); - - ConflictState conflictState = GetConflictState(property); - - if(conflictState.conflictIndex != -1) - { - keyArrayProperty.InsertArrayElementAtIndex(conflictState.conflictIndex); - var keyProperty = keyArrayProperty.GetArrayElementAtIndex(conflictState.conflictIndex); - SetPropertyValue(keyProperty, conflictState.conflictKey); - keyProperty.isExpanded = conflictState.conflictKeyPropertyExpanded; - - valueArrayProperty.InsertArrayElementAtIndex(conflictState.conflictIndex); - var valueProperty = valueArrayProperty.GetArrayElementAtIndex(conflictState.conflictIndex); - SetPropertyValue(valueProperty, conflictState.conflictValue); - valueProperty.isExpanded = conflictState.conflictValuePropertyExpanded; - } - - var buttonWidth = s_buttonStyle.CalcSize(s_iconPlus).x; - - var labelPosition = position; - labelPosition.height = EditorGUIUtility.singleLineHeight; - if (property.isExpanded) - labelPosition.xMax -= s_buttonStyle.CalcSize(s_iconPlus).x; - - EditorGUI.PropertyField(labelPosition, property, label, false); - //property.isExpanded = EditorGUI.Foldout(labelPosition, property.isExpanded, label); - if (property.isExpanded) - { - var buttonPosition = position; - buttonPosition.xMin = buttonPosition.xMax - buttonWidth; - buttonPosition.height = EditorGUIUtility.singleLineHeight; - EditorGUI.BeginDisabledGroup(conflictState.conflictIndex != -1); - if(GUI.Button(buttonPosition, s_iconPlus, s_buttonStyle)) - { - buttonAction = Action.Add; - buttonActionIndex = keyArrayProperty.arraySize; - } - EditorGUI.EndDisabledGroup(); - - EditorGUI.indentLevel++; - var linePosition = position; - linePosition.y += EditorGUIUtility.singleLineHeight; - linePosition.xMax -= buttonWidth; - - foreach(var entry in EnumerateEntries(keyArrayProperty, valueArrayProperty)) - { - var keyProperty = entry.keyProperty; - var valueProperty = entry.valueProperty; - int i = entry.index; - - float lineHeight = DrawKeyValueLine(keyProperty, valueProperty, linePosition, i); - - buttonPosition = linePosition; - buttonPosition.x = linePosition.xMax; - buttonPosition.height = EditorGUIUtility.singleLineHeight; - if(GUI.Button(buttonPosition, s_iconMinus, s_buttonStyle)) - { - buttonAction = Action.Remove; - buttonActionIndex = i; - } - - if(i == conflictState.conflictIndex && conflictState.conflictOtherIndex == -1) - { - var iconPosition = linePosition; - iconPosition.size = s_buttonStyle.CalcSize(s_warningIconNull); - GUI.Label(iconPosition, s_warningIconNull); - } - else if(i == conflictState.conflictIndex) - { - var iconPosition = linePosition; - iconPosition.size = s_buttonStyle.CalcSize(s_warningIconConflict); - GUI.Label(iconPosition, s_warningIconConflict); - } - else if(i == conflictState.conflictOtherIndex) - { - var iconPosition = linePosition; - iconPosition.size = s_buttonStyle.CalcSize(s_warningIconOther); - GUI.Label(iconPosition, s_warningIconOther); - } - - - linePosition.y += lineHeight; - } - - EditorGUI.indentLevel--; - } - - if(buttonAction == Action.Add) - { - keyArrayProperty.InsertArrayElementAtIndex(buttonActionIndex); - valueArrayProperty.InsertArrayElementAtIndex(buttonActionIndex); - } - else if(buttonAction == Action.Remove) - { - DeleteArrayElementAtIndex(keyArrayProperty, buttonActionIndex); - DeleteArrayElementAtIndex(valueArrayProperty, buttonActionIndex); - } - - conflictState.conflictKey = null; - conflictState.conflictValue = null; - conflictState.conflictIndex = -1; - conflictState.conflictOtherIndex = -1; - conflictState.conflictLineHeight = 0f; - conflictState.conflictKeyPropertyExpanded = false; - conflictState.conflictValuePropertyExpanded = false; - - foreach(var entry1 in EnumerateEntries(keyArrayProperty, valueArrayProperty)) - { - var keyProperty1 = entry1.keyProperty; - int i = entry1.index; - object keyProperty1Value = GetPropertyValue(keyProperty1); - - if(keyProperty1Value == null) - { - var valueProperty1 = entry1.valueProperty; - SaveProperty(keyProperty1, valueProperty1, i, -1, conflictState); - DeleteArrayElementAtIndex(valueArrayProperty, i); - DeleteArrayElementAtIndex(keyArrayProperty, i); - - break; - } - - - foreach(var entry2 in EnumerateEntries(keyArrayProperty, valueArrayProperty, i + 1)) - { - var keyProperty2 = entry2.keyProperty; - int j = entry2.index; - object keyProperty2Value = GetPropertyValue(keyProperty2); - - if(ComparePropertyValues(keyProperty1Value, keyProperty2Value)) - { - var valueProperty2 = entry2.valueProperty; - SaveProperty(keyProperty2, valueProperty2, j, i, conflictState); - DeleteArrayElementAtIndex(keyArrayProperty, j); - DeleteArrayElementAtIndex(valueArrayProperty, j); - - goto breakLoops; - } - } - } - breakLoops: - - EditorGUI.EndProperty(); - } - - static float DrawKeyValueLine(SerializedProperty keyProperty, SerializedProperty valueProperty, Rect linePosition, int index) - { - bool keyCanBeExpanded = CanPropertyBeExpanded(keyProperty); - bool valueCanBeExpanded = CanPropertyBeExpanded(valueProperty); - - if(!keyCanBeExpanded && valueCanBeExpanded) - { - return DrawKeyValueLineExpand(keyProperty, valueProperty, linePosition); - } - else - { - var keyLabel = keyCanBeExpanded ? ("Key " + index.ToString()) : ""; - var valueLabel = valueCanBeExpanded ? ("Value " + index.ToString()) : ""; - return DrawKeyValueLineSimple(keyProperty, valueProperty, keyLabel, valueLabel, linePosition); - } - } - - static float DrawKeyValueLineSimple(SerializedProperty keyProperty, SerializedProperty valueProperty, string keyLabel, string valueLabel, Rect linePosition) - { - float labelWidth = EditorGUIUtility.labelWidth; - float labelWidthRelative = labelWidth / linePosition.width; - - float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); - var keyPosition = linePosition; - keyPosition.height = keyPropertyHeight; - keyPosition.width = labelWidth - IndentWidth; - EditorGUIUtility.labelWidth = keyPosition.width * labelWidthRelative; - EditorGUI.PropertyField(keyPosition, keyProperty, TempContent(keyLabel), true); - - float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); - var valuePosition = linePosition; - valuePosition.height = valuePropertyHeight; - valuePosition.xMin += labelWidth; - EditorGUIUtility.labelWidth = valuePosition.width * labelWidthRelative; - EditorGUI.indentLevel--; - EditorGUI.PropertyField(valuePosition, valueProperty, TempContent(valueLabel), true); - EditorGUI.indentLevel++; - - EditorGUIUtility.labelWidth = labelWidth; - - return Mathf.Max(keyPropertyHeight, valuePropertyHeight); - } - - static float DrawKeyValueLineExpand(SerializedProperty keyProperty, SerializedProperty valueProperty, Rect linePosition) - { - float labelWidth = EditorGUIUtility.labelWidth; - - float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); - var keyPosition = linePosition; - keyPosition.height = keyPropertyHeight; - keyPosition.width = labelWidth - IndentWidth; - keyPosition.x += 15; - EditorGUI.PropertyField(keyPosition, keyProperty, GUIContent.none, true); - - float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); - var valuePosition = linePosition; - valuePosition.height = valuePropertyHeight; - EditorGUI.PropertyField(valuePosition, valueProperty, GUIContent.none, true); - - EditorGUIUtility.labelWidth = labelWidth; - - return Mathf.Max(keyPropertyHeight, valuePropertyHeight); - } - - static bool CanPropertyBeExpanded(SerializedProperty property) - { - switch(property.propertyType) - { - case SerializedPropertyType.Generic: - case SerializedPropertyType.Vector4: - case SerializedPropertyType.Quaternion: - return true; - default: - return false; - } - } - - static void SaveProperty(SerializedProperty keyProperty, SerializedProperty valueProperty, int index, int otherIndex, ConflictState conflictState) - { - conflictState.conflictKey = GetPropertyValue(keyProperty); - conflictState.conflictValue = GetPropertyValue(valueProperty); - float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); - float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); - float lineHeight = Mathf.Max(keyPropertyHeight, valuePropertyHeight); - conflictState.conflictLineHeight = lineHeight; - conflictState.conflictIndex = index; - conflictState.conflictOtherIndex = otherIndex; - conflictState.conflictKeyPropertyExpanded = keyProperty.isExpanded; - conflictState.conflictValuePropertyExpanded = valueProperty.isExpanded; - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - float propertyHeight = EditorGUIUtility.singleLineHeight; - - if (property.isExpanded) - { - var keysProperty = property.FindPropertyRelative(KeysFieldName); - var valuesProperty = property.FindPropertyRelative(ValuesFieldName); - - foreach(var entry in EnumerateEntries(keysProperty, valuesProperty)) - { - var keyProperty = entry.keyProperty; - var valueProperty = entry.valueProperty; - float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); - float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); - float lineHeight = Mathf.Max(keyPropertyHeight, valuePropertyHeight); - propertyHeight += lineHeight; - } - - ConflictState conflictState = GetConflictState(property); - - if(conflictState.conflictIndex != -1) - { - propertyHeight += conflictState.conflictLineHeight; - } - } - - return propertyHeight; - } - - static ConflictState GetConflictState(SerializedProperty property) - { - ConflictState conflictState; - PropertyIdentity propId = new PropertyIdentity(property); - if(!s_conflictStateDict.TryGetValue(propId, out conflictState)) - { - conflictState = new ConflictState(); - s_conflictStateDict.Add(propId, conflictState); - } - return conflictState; - } - - static Dictionary s_serializedPropertyValueAccessorsDict; - - static SerializableDictionaryPropertyDrawer() - { - Dictionary serializedPropertyValueAccessorsNameDict = new Dictionary() { - { SerializedPropertyType.Integer, "intValue" }, - { SerializedPropertyType.Boolean, "boolValue" }, - { SerializedPropertyType.Float, "floatValue" }, - { SerializedPropertyType.String, "stringValue" }, - { SerializedPropertyType.Color, "colorValue" }, - { SerializedPropertyType.ObjectReference, "objectReferenceValue" }, - { SerializedPropertyType.LayerMask, "intValue" }, - { SerializedPropertyType.Enum, "intValue" }, - { SerializedPropertyType.Vector2, "vector2Value" }, - { SerializedPropertyType.Vector3, "vector3Value" }, - { SerializedPropertyType.Vector4, "vector4Value" }, - { SerializedPropertyType.Rect, "rectValue" }, - { SerializedPropertyType.ArraySize, "intValue" }, - { SerializedPropertyType.Character, "intValue" }, - { SerializedPropertyType.AnimationCurve, "animationCurveValue" }, - { SerializedPropertyType.Bounds, "boundsValue" }, - { SerializedPropertyType.Quaternion, "quaternionValue" }, - }; - Type serializedPropertyType = typeof(SerializedProperty); - - s_serializedPropertyValueAccessorsDict = new Dictionary(); - BindingFlags flags = BindingFlags.Instance | BindingFlags.Public; - - foreach(var kvp in serializedPropertyValueAccessorsNameDict) - { - PropertyInfo propertyInfo = serializedPropertyType.GetProperty(kvp.Value, flags); - s_serializedPropertyValueAccessorsDict.Add(kvp.Key, propertyInfo); - } - } - - static GUIContent IconContent(string name, string tooltip) - { - var builtinIcon = EditorGUIUtility.IconContent (name); - return new GUIContent(builtinIcon.image, tooltip); - } - - static GUIContent TempContent(string text) - { - s_tempContent.text = text; - return s_tempContent; - } - - static void DeleteArrayElementAtIndex(SerializedProperty arrayProperty, int index) - { - var property = arrayProperty.GetArrayElementAtIndex(index); - // if(arrayProperty.arrayElementType.StartsWith("PPtr<$")) - if(property.propertyType == SerializedPropertyType.ObjectReference) - { - property.objectReferenceValue = null; - } - - arrayProperty.DeleteArrayElementAtIndex(index); - } - - public static object GetPropertyValue(SerializedProperty p) - { - PropertyInfo propertyInfo; - if(s_serializedPropertyValueAccessorsDict.TryGetValue(p.propertyType, out propertyInfo)) - { - return propertyInfo.GetValue(p, null); - } - else - { - if(p.isArray) - return GetPropertyValueArray(p); - else - return GetPropertyValueGeneric(p); - } - } - - static void SetPropertyValue(SerializedProperty p, object v) - { - PropertyInfo propertyInfo; - if(s_serializedPropertyValueAccessorsDict.TryGetValue(p.propertyType, out propertyInfo)) - { - propertyInfo.SetValue(p, v, null); - } - else - { - if(p.isArray) - SetPropertyValueArray(p, v); - else - SetPropertyValueGeneric(p, v); - } - } - - static object GetPropertyValueArray(SerializedProperty property) - { - object[] array = new object[property.arraySize]; - for(int i = 0; i < property.arraySize; i++) - { - SerializedProperty item = property.GetArrayElementAtIndex(i); - array[i] = GetPropertyValue(item); - } - return array; - } - - static object GetPropertyValueGeneric(SerializedProperty property) - { - Dictionary dict = new Dictionary(); - var iterator = property.Copy(); - if(iterator.Next(true)) - { - var end = property.GetEndProperty(); - do - { - string name = iterator.name; - object value = GetPropertyValue(iterator); - dict.Add(name, value); - } while(iterator.Next(false) && iterator.propertyPath != end.propertyPath); - } - return dict; - } - - static void SetPropertyValueArray(SerializedProperty property, object v) - { - object[] array = (object[]) v; - property.arraySize = array.Length; - for(int i = 0; i < property.arraySize; i++) - { - SerializedProperty item = property.GetArrayElementAtIndex(i); - SetPropertyValue(item, array[i]); - } - } - - static void SetPropertyValueGeneric(SerializedProperty property, object v) - { - Dictionary dict = (Dictionary) v; - var iterator = property.Copy(); - if(iterator.Next(true)) - { - var end = property.GetEndProperty(); - do - { - string name = iterator.name; - SetPropertyValue(iterator, dict[name]); - } while(iterator.Next(false) && iterator.propertyPath != end.propertyPath); - } - } - - static bool ComparePropertyValues(object value1, object value2) - { - if(value1 is Dictionary && value2 is Dictionary) - { - var dict1 = (Dictionary)value1; - var dict2 = (Dictionary)value2; - return CompareDictionaries(dict1, dict2); - } - else - { - return object.Equals(value1, value2); - } - } - - static bool CompareDictionaries(Dictionary dict1, Dictionary dict2) - { - if(dict1.Count != dict2.Count) - return false; - - foreach(var kvp1 in dict1) - { - var key1 = kvp1.Key; - object value1 = kvp1.Value; - - object value2; - if(!dict2.TryGetValue(key1, out value2)) - return false; - - if(!ComparePropertyValues(value1, value2)) - return false; - } - - return true; - } - - struct EnumerationEntry - { - public SerializedProperty keyProperty; - public SerializedProperty valueProperty; - public int index; - - public EnumerationEntry(SerializedProperty keyProperty, SerializedProperty valueProperty, int index) - { - this.keyProperty = keyProperty; - this.valueProperty = valueProperty; - this.index = index; - } - } - - static IEnumerable EnumerateEntries(SerializedProperty keyArrayProperty, SerializedProperty valueArrayProperty, int startIndex = 0) - { - if(keyArrayProperty.arraySize > startIndex) - { - int index = startIndex; - var keyProperty = keyArrayProperty.GetArrayElementAtIndex(startIndex); - var valueProperty = valueArrayProperty.GetArrayElementAtIndex(startIndex); - var endProperty = keyArrayProperty.GetEndProperty(); - - do - { - yield return new EnumerationEntry(keyProperty, valueProperty, index); - index++; - } while(keyProperty.Next(false) && valueProperty.Next(false) && !SerializedProperty.EqualContents(keyProperty, endProperty)); - } - } -} - -public class SerializableDictionaryStoragePropertyDrawer : PropertyDrawer -{ - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - property.Next(true); - EditorGUI.PropertyField(position, property, label, true); - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - property.Next(true); - return EditorGUI.GetPropertyHeight(property); - } -} diff --git a/Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta b/Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta deleted file mode 100644 index e10f405f..00000000 --- a/Assets/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 91da51d02ab9ebc459d80d5965d40d19 -timeCreated: 1492869349 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/SerializableDictionary/Example.meta b/Assets/SerializableDictionary/Example.meta deleted file mode 100644 index 5bbdabde..00000000 --- a/Assets/SerializableDictionary/Example.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: ea574807be3814126807ca7b22d13988 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/SerializableDictionary/Example/Editor.meta b/Assets/SerializableDictionary/Example/Editor.meta deleted file mode 100644 index f3048e56..00000000 --- a/Assets/SerializableDictionary/Example/Editor.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: b9e966b834ddb48d0815c494d4f511da -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs b/Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs deleted file mode 100644 index 5c63f1ea..00000000 --- a/Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -[CustomPropertyDrawer(typeof(StringStringDictionary))] -[CustomPropertyDrawer(typeof(ObjectColorDictionary))] -[CustomPropertyDrawer(typeof(StringColorArrayDictionary))] -public class AnySerializableDictionaryPropertyDrawer : SerializableDictionaryPropertyDrawer {} - -[CustomPropertyDrawer(typeof(ColorArrayStorage))] -public class AnySerializableDictionaryStoragePropertyDrawer: SerializableDictionaryStoragePropertyDrawer {} diff --git a/Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta b/Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta deleted file mode 100644 index 0c101e13..00000000 --- a/Assets/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 3089b6c771301cc44ba23b7f8f469e14 -timeCreated: 1493639898 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity b/Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity deleted file mode 100644 index ce09708d..00000000 --- a/Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity +++ /dev/null @@ -1,251 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 3 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &4 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 0 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 1 - m_BakeResolution: 50 - m_AtlasSize: 1024 - m_AO: 1 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 0 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 1 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 0 ---- !u!196 &5 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666666 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &714127983 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 714127989} - - component: {fileID: 714127988} - - component: {fileID: 714127987} - - component: {fileID: 714127986} - - component: {fileID: 714127985} - - component: {fileID: 714127984} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &714127984 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 714127983} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d5ff00a74ccb984498070d9930a7944c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_stringStringDictionary: - m_keys: - - first key - - second key - - third key - m_values: - - value A - - value B - - value C - m_objectColorDictionary: - m_keys: - - {fileID: 714127983} - - {fileID: 714127984} - m_values: - - {r: 0, g: 0, b: 1, a: 1} - - {r: 1, g: 0, b: 0, a: 1} - m_objectColorArrayDictionary: - m_keys: - - rainbow - - grayscale - m_values: - - data: - - {r: 1, g: 0, b: 0, a: 1} - - {r: 1, g: 0.40000004, b: 0, a: 1} - - {r: 1, g: 0.9333334, b: 0, a: 1} - - {r: 0, g: 1, b: 0, a: 1} - - {r: 0, g: 0.6, b: 1, a: 1} - - {r: 0.26666668, g: 0, b: 1, a: 1} - - {r: 0.6, g: 0, b: 1, a: 1} - - data: - - {r: 0, g: 0, b: 0, a: 0} - - {r: 0.2509804, g: 0.2509804, b: 0.2509804, a: 0.2509804} - - {r: 0.5019608, g: 0.5019608, b: 0.5019608, a: 0.5019608} - - {r: 0.7529412, g: 0.7529412, b: 0.7529412, a: 0.7529412} - - {r: 1, g: 1, b: 1, a: 1} ---- !u!81 &714127985 -AudioListener: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 714127983} - m_Enabled: 1 ---- !u!124 &714127986 -Behaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 714127983} - m_Enabled: 1 ---- !u!92 &714127987 -Behaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 714127983} - m_Enabled: 1 ---- !u!20 &714127988 -Camera: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 714127983} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &714127989 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 714127983} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta b/Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta deleted file mode 100644 index 25ff160d..00000000 --- a/Assets/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 6c0758ade4ba74b7493ce3806fa2f38b -DefaultImporter: - userData: diff --git a/Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs b/Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs deleted file mode 100644 index f47a8923..00000000 --- a/Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class SerializableDictionaryExample : MonoBehaviour { - // The dictionaries can be accessed throught a property - [SerializeField] - StringStringDictionary m_stringStringDictionary; - public IDictionary StringStringDictionary - { - get { return m_stringStringDictionary; } - set { m_stringStringDictionary.CopyFrom (value); } - } - - public ObjectColorDictionary m_objectColorDictionary; - public StringColorArrayDictionary m_objectColorArrayDictionary; - - void Reset () - { - // access by property - StringStringDictionary = new Dictionary() { {"first key", "value A"}, {"second key", "value B"}, {"third key", "value C"} }; - m_objectColorDictionary = new ObjectColorDictionary() { {gameObject, Color.blue}, {this, Color.red} }; - } -} diff --git a/Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta b/Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta deleted file mode 100644 index 84a0fd47..00000000 --- a/Assets/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d5ff00a74ccb984498070d9930a7944c -timeCreated: 1492868873 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs b/Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs deleted file mode 100644 index b20b24bd..00000000 --- a/Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System; -using UnityEngine; - -[Serializable] -public class StringStringDictionary : SerializableDictionary {} - -[Serializable] -public class ObjectColorDictionary : SerializableDictionary {} - -[Serializable] -public class ColorArrayStorage : SerializableDictionary.Storage {} - -[Serializable] -public class StringColorArrayDictionary : SerializableDictionary {} - -[Serializable] -public class MyClass -{ - public int i; - public string str; -} - -[Serializable] -public class QuaternionMyClassDictionary : SerializableDictionary {} \ No newline at end of file diff --git a/Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta b/Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta deleted file mode 100644 index 0a39089b..00000000 --- a/Assets/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bd910530dd8f6b5429c65a494644ed09 -timeCreated: 1493639913 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/SerializableDictionary/SerializableDictionary.cs b/Assets/SerializableDictionary/SerializableDictionary.cs deleted file mode 100644 index 4614ed7f..00000000 --- a/Assets/SerializableDictionary/SerializableDictionary.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using UnityEngine; - -public abstract class SerializableDictionaryBase : Dictionary, ISerializationCallbackReceiver -{ - [SerializeField] - TKey[] m_keys; - [SerializeField] - TValueStorage[] m_values; - - public SerializableDictionaryBase() - { - } - - public SerializableDictionaryBase(IDictionary dict) : base(dict.Count) - { - foreach (var kvp in dict) - { - this[kvp.Key] = kvp.Value; - } - } - - protected SerializableDictionaryBase(SerializationInfo info, StreamingContext context) : base(info,context){} - - protected abstract void SetValue(TValueStorage[] storage, int i, TValue value); - protected abstract TValue GetValue(TValueStorage[] storage, int i); - - public void CopyFrom(IDictionary dict) - { - this.Clear(); - foreach (var kvp in dict) - { - this[kvp.Key] = kvp.Value; - } - } - - public void OnAfterDeserialize() - { - if(m_keys != null && m_values != null && m_keys.Length == m_values.Length) - { - this.Clear(); - int n = m_keys.Length; - for(int i = 0; i < n; ++i) - { - this[m_keys[i]] = GetValue(m_values, i); - } - - m_keys = null; - m_values = null; - } - - } - - public void OnBeforeSerialize() - { - int n = this.Count; - m_keys = new TKey[n]; - m_values = new TValueStorage[n]; - - int i = 0; - foreach(var kvp in this) - { - m_keys[i] = kvp.Key; - SetValue(m_values, i, kvp.Value); - ++i; - } - } -} - -public class SerializableDictionary : SerializableDictionaryBase -{ - public SerializableDictionary() - { - } - - public SerializableDictionary(IDictionary dict) : base(dict) - { - } - - protected SerializableDictionary(SerializationInfo info, StreamingContext context) : base(info,context){} - - protected override TValue GetValue(TValue[] storage, int i) - { - return storage[i]; - } - - protected override void SetValue(TValue[] storage, int i, TValue value) - { - storage[i] = value; - } -} - -public static class SerializableDictionary -{ - public class Storage - { - public T data; - } -} - -public class SerializableDictionary : SerializableDictionaryBase where TValueStorage : SerializableDictionary.Storage, new() -{ - public SerializableDictionary() - { - } - - public SerializableDictionary(IDictionary dict) : base(dict) - { - } - - protected SerializableDictionary(SerializationInfo info, StreamingContext context) : base(info,context){} - - protected override TValue GetValue(TValueStorage[] storage, int i) - { - return storage[i].data; - } - - protected override void SetValue(TValueStorage[] storage, int i, TValue value) - { - storage[i] = new TValueStorage(); - storage[i].data = value; - } -} diff --git a/Assets/SerializableDictionary/SerializableDictionary.cs.meta b/Assets/SerializableDictionary/SerializableDictionary.cs.meta deleted file mode 100644 index cdf58f09..00000000 --- a/Assets/SerializableDictionary/SerializableDictionary.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e7be1c9624387604fba4005ccf7dbd5a -timeCreated: 1492868176 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/SerializableDictionary/SerializableDictionary.pdf b/Assets/SerializableDictionary/SerializableDictionary.pdf deleted file mode 100644 index cad88c37..00000000 Binary files a/Assets/SerializableDictionary/SerializableDictionary.pdf and /dev/null differ diff --git a/Assets/SerializableDictionary/SerializableDictionary.pdf.meta b/Assets/SerializableDictionary/SerializableDictionary.pdf.meta deleted file mode 100644 index 4325a38f..00000000 --- a/Assets/SerializableDictionary/SerializableDictionary.pdf.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8eb73a56b3a6ee64ab2c30cac8878d8f -timeCreated: 1492869030 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer.meta b/Assets/ThirdParty/Behavior Designer.meta new file mode 100644 index 00000000..850cf77a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 7b303277dfa449d4a93437535228816d +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Documentation.pdf b/Assets/ThirdParty/Behavior Designer/Documentation.pdf new file mode 100644 index 00000000..b59d4714 Binary files /dev/null and b/Assets/ThirdParty/Behavior Designer/Documentation.pdf differ diff --git a/Assets/ThirdParty/Behavior Designer/Documentation.pdf.meta b/Assets/ThirdParty/Behavior Designer/Documentation.pdf.meta new file mode 100644 index 00000000..aa4bb294 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Documentation.pdf.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 4646946da2762db46a08e76a6c42f832 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Editor.meta b/Assets/ThirdParty/Behavior Designer/Editor.meta new file mode 100644 index 00000000..8584cfce --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 3aa7d582439bc2f4da8254d1364e0f41 diff --git a/Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll new file mode 100644 index 00000000..64a9c2a1 Binary files /dev/null and b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll differ diff --git a/Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll.meta b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll.meta new file mode 100644 index 00000000..82215805 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorDesignerEditor.dll.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 0465f9ab3d9c3be4485885ec2882f20f +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + WindowsStoreApps: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs new file mode 100644 index 00000000..49272dd0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs @@ -0,0 +1,11 @@ +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/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta new file mode 100644 index 00000000..7e42bbed --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/BehaviorTreeInspector.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 94693c6931cea70439c26417a1fc0d33 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs b/Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs new file mode 100644 index 00000000..e0dfa80d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs @@ -0,0 +1,12 @@ +using UnityEngine; +using UnityEditor; +using BehaviorDesigner.Runtime; + +namespace BehaviorDesigner.Editor +{ + [CustomEditor(typeof(ExternalBehaviorTree))] + public class ExternalBehaviorTreeInspector : ExternalBehaviorInspector + { + // intentionally left blank + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta b/Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta new file mode 100644 index 00000000..a1169745 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/ExternalBehaviorTreeInspector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f0cb79f53e760c4d950b8c6ade6a242 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader b/Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader new file mode 100644 index 00000000..7f7d9eef --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader @@ -0,0 +1,44 @@ +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/ThirdParty/Behavior Designer/Editor/GridShader.shader.meta b/Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader.meta new file mode 100644 index 00000000..43ccf5cf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/GridShader.shader.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: afbd9f0fb1c22d1409403fdef158479f +ShaderImporter: + defaultTextures: [] + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers.meta b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers.meta new file mode 100644 index 00000000..6b6fa761 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 956347559c803f7489f75873ef2715e5 +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs new file mode 100644 index 00000000..ada9607b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs @@ -0,0 +1,22 @@ +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/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta new file mode 100644 index 00000000..9fd520f8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5f0987c6ff37141458ff776277e2b65a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs new file mode 100644 index 00000000..53a532ff --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs @@ -0,0 +1,22 @@ +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/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta new file mode 100644 index 00000000..8c3203a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ed5dac524fa5f61468bb6ca49a556b3b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Release Notes.pdf b/Assets/ThirdParty/Behavior Designer/Release Notes.pdf new file mode 100644 index 00000000..1ae6e217 Binary files /dev/null and b/Assets/ThirdParty/Behavior Designer/Release Notes.pdf differ diff --git a/Assets/ThirdParty/Behavior Designer/Release Notes.pdf.meta b/Assets/ThirdParty/Behavior Designer/Release Notes.pdf.meta new file mode 100644 index 00000000..1e0775fc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Release Notes.pdf.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: a42b132a1220b5c40bde3a68c47bc32f +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf b/Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf new file mode 100644 index 00000000..3ae9649d Binary files /dev/null and b/Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf differ diff --git a/Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf.meta b/Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf.meta new file mode 100644 index 00000000..af4426a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime Source Code Location.pdf.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: f76522f0ea27769479b1c38979bac10a +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime.meta b/Assets/ThirdParty/Behavior Designer/Runtime.meta new file mode 100644 index 00000000..b907fb90 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 33b3095a3727f544dbe47311776edb53 diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions.meta new file mode 100644 index 00000000..b016b581 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 45c329b28adc8de439b3ee381ccc759b diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs new file mode 100644 index 00000000..b0611bce --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs @@ -0,0 +1,17 @@ + + +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 + // http://www.opsive.com/assets/BehaviorDesigner/samples.php. + [TaskDescription("Behavior Tree Reference allows you to run another behavior tree within the current behavior tree.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=53")] + [TaskIcon("BehaviorTreeReferenceIcon.png")] + public class BehaviorTreeReference : BehaviorReference + { + // intentionally left blank - subclass of BehaviorReference + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs.meta new file mode 100644 index 00000000..f81a791a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/BehaviorTreeReference.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: af7b6fcbc7258f34aad1bb82b5b3fdc8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs new file mode 100644 index 00000000..2cd9f2f4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs @@ -0,0 +1,15 @@ + + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns a TaskStatus of running. Will only stop when interrupted or a conditional abort is triggered.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=112")] + [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/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs.meta new file mode 100644 index 00000000..6b5a4977 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Idle.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 759252a4ffada80419ef06ce1c625246 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs new file mode 100644 index 00000000..a2363d43 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs @@ -0,0 +1,33 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=16")] + [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; + + public override TaskStatus OnUpdate() + { + // Log the text and return success + if (logError.Value) { + Debug.LogError(text); + } else { + Debug.Log(text); + } + return TaskStatus.Success; + } + + public override void OnReset() + { + // Reset the properties back to their original values + text = ""; + logError = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs.meta new file mode 100644 index 00000000..2c0c0b18 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Log.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d53794347878c7c479da37533dce2024 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs new file mode 100644 index 00000000..05c20a68 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs @@ -0,0 +1,29 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=17")] + [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/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs.meta new file mode 100644 index 00000000..773c0f51 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 72d2d6051b23e86468e2f715f044dad8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection.meta new file mode 100644 index 00000000..b0bb23d7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 70f925868ab5ebe4cbc702810c2c5857 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs new file mode 100644 index 00000000..a5b31bc4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs @@ -0,0 +1,58 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=147")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs.meta new file mode 100644 index 00000000..34bf75c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetFieldValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bc317dd7feb2085499edb0d0c4604640 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs new file mode 100644 index 00000000..be81eee4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs @@ -0,0 +1,58 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=148")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs.meta new file mode 100644 index 00000000..587385b3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/GetPropertyValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dda9c9b7c6ff2ee4f95a2e208cddae64 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs new file mode 100644 index 00000000..7c239dbd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs @@ -0,0 +1,86 @@ +using UnityEngine; +using System; +using System.Collections.Generic; +using System.Reflection; + +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=145")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs.meta new file mode 100644 index 00000000..eed4a86a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/InvokeMethod.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 359bd67578f53034ab2eb00e7696d317 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs new file mode 100644 index 00000000..79675c97 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs @@ -0,0 +1,57 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=149")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs.meta new file mode 100644 index 00000000..433a991c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 21e389787213ba24ab1a6817def634ae +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs new file mode 100644 index 00000000..9ec7cd08 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs @@ -0,0 +1,57 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=150")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs.meta new file mode 100644 index 00000000..012823b6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Reflection/SetPropertyValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d98b13b7ae4b36b4092b439731466d9b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs new file mode 100644 index 00000000..a63d9e6c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs @@ -0,0 +1,56 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Restarts a behavior tree, returns success after it has been restarted.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=66")] + [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/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs.meta new file mode 100644 index 00000000..d1110668 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/RestartBehaviorTree.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2765e7ece98046542880a1249b87e096 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs new file mode 100644 index 00000000..76007309 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs @@ -0,0 +1,73 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Sends an event to the behavior tree, returns success after sending the event.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=121")] + [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() + { + // 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/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs.meta new file mode 100644 index 00000000..82bd42cd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/SendEvent.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 53b90428a37913c40b6d415ced4e12f9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs new file mode 100644 index 00000000..4bc5ebee --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs @@ -0,0 +1,92 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Start a new behavior tree and return success after it has been started.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=20")] + [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/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs.meta new file mode 100644 index 00000000..31dfed3f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StartBehaviorTree.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bc3d67c80371297439385b30f4be506c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs new file mode 100644 index 00000000..fe753c5b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs @@ -0,0 +1,57 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Pause or disable a behavior tree and return success after it has been stopped.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=21")] + [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/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs.meta new file mode 100644 index 00000000..3e6fe6c7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/StopBehaviorTree.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 130afc7e6aa6e0c4aba29097334aa66b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs new file mode 100644 index 00000000..41f77a21 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs @@ -0,0 +1,67 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=22")] + [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/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs.meta new file mode 100644 index 00000000..e7138e51 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/Wait.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 67824d2e00531d84db9973773e4426e9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks.meta new file mode 100644 index 00000000..3737f10d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: de0476b4548c1d4408860e4ee2dd9471 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta new file mode 100644 index 00000000..b98c7eed --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: fa1395121fbad8b40934c69350e58065 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs new file mode 100644 index 00000000..c37744a1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta new file mode 100644 index 00000000..191ac404 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dc0640154eb6b674e89f4a2ec1632696 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs new file mode 100644 index 00000000..38fcc324 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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 amount of time it takes to blend")] + public float 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.CrossFade(animationName.Value, fadeLength, playMode); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + animationName.Value = ""; + fadeLength = 0.3f; + playMode = PlayMode.StopSameLayer; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta new file mode 100644 index 00000000..dd091e17 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 57d9d1509d13e454caae6f3219c83cc7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs new file mode 100644 index 00000000..4c2e9c89 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs @@ -0,0 +1,54 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta new file mode 100644 index 00000000..fda00b91 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c1cc2a160ee1978488696564200b3c25 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs new file mode 100644 index 00000000..5f0d49de --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta new file mode 100644 index 00000000..4bb05d26 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b5bd2b0ed07f42142934568bd6813619 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs new file mode 100644 index 00000000..f86a854b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta new file mode 100644 index 00000000..ac35dc24 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ce80475167d230d4181baa69071465ff +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs new file mode 100644 index 00000000..4661c83d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs @@ -0,0 +1,52 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta new file mode 100644 index 00000000..b89dbdf0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0b1bf3b05e79dcc468cf71b63d54a4cd +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs new file mode 100644 index 00000000..7be1b507 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta new file mode 100644 index 00000000..5a578270 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bb55ee97bf8cb3d479de025d77a9c4b6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs new file mode 100644 index 00000000..c8bc35b5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta new file mode 100644 index 00000000..29a969f7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 364beb9f6996556449b9f3e03db75290 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs new file mode 100644 index 00000000..3620122c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta new file mode 100644 index 00000000..ebb26237 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2cc64c997b5d6e640af8cc9bd7cf1b5d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs new file mode 100644 index 00000000..14bdac19 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta new file mode 100644 index 00000000..dda3f075 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f93fd0c7638add0468744d4f7249c1a7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs new file mode 100644 index 00000000..4194b81e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta new file mode 100644 index 00000000..7b815d1d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 39af69a1e220fc2419a5d34933029ff9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs new file mode 100644 index 00000000..8625b0bd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta new file mode 100644 index 00000000..8edc170a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c3dca423f03e936449fdb622cac3f430 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta new file mode 100644 index 00000000..c33fce93 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 0b46617b2906c0049b19ab613fae2882 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs new file mode 100644 index 00000000..7080ce76 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs @@ -0,0 +1,53 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta new file mode 100644 index 00000000..d67ad7da --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 09e5aba2adc719f42876293bcbea7819 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs new file mode 100644 index 00000000..7ec1ecab --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta new file mode 100644 index 00000000..de18f15c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 872c96b3950799546863110b7e54d0c8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs new file mode 100644 index 00000000..83b5903b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta new file mode 100644 index 00000000..daf50ea0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2aeb7ebc08541794aa3ed0343c49c9f9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs new file mode 100644 index 00000000..aefb2595 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta new file mode 100644 index 00000000..472f73da --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c44c26d5d6b3484397b8aa6ed658b1e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs new file mode 100644 index 00000000..565ab751 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta new file mode 100644 index 00000000..a26ba42a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f120073dca714344495aa139eea16e2b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs new file mode 100644 index 00000000..6e28cb9c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta new file mode 100644 index 00000000..3dcbccc5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d33dbb5444b5bbe44bb200e39823cfe1 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs new file mode 100644 index 00000000..a1bb9508 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta new file mode 100644 index 00000000..21b687ce --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 945593329da80b44898e7e1ae1883d07 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs new file mode 100644 index 00000000..ce424589 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta new file mode 100644 index 00000000..6834594b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c8640eaeae64c2e48ba85336474d59d8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs new file mode 100644 index 00000000..679dc943 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta new file mode 100644 index 00000000..4c0e6cab --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 346c4295a827d9e4c8029cd29a8e18ca +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs new file mode 100644 index 00000000..5382e259 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta new file mode 100644 index 00000000..c4d6ee6b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f87648f776ab12c45883b01e9bebc6a3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs new file mode 100644 index 00000000..a7a9843b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta new file mode 100644 index 00000000..f0f50384 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 234dcf26bcb550043b3b5de33f0e6a11 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs new file mode 100644 index 00000000..d958848e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta new file mode 100644 index 00000000..0753ae2d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 766d802f8842a2945b11253f60d431bb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs new file mode 100644 index 00000000..e9366eaa --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs @@ -0,0 +1,42 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta new file mode 100644 index 00000000..39c1452c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 48c086aaf693a604d8b83eabac3b568e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs new file mode 100644 index 00000000..38869983 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta new file mode 100644 index 00000000..7f8263ae --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 96051e2f6a0e7ea42a493e6245e4ccde +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs new file mode 100644 index 00000000..84664930 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs @@ -0,0 +1,42 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta new file mode 100644 index 00000000..80412d1a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c5eb4141402ab7c4abb1d4a5c687a757 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs new file mode 100644 index 00000000..c0137247 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs @@ -0,0 +1,62 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta new file mode 100644 index 00000000..d4cfe707 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e0e788b711539ed4dad258780be29de6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs new file mode 100644 index 00000000..e76934df --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs @@ -0,0 +1,50 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta new file mode 100644 index 00000000..5d05a683 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a62df911d37cd8349b0168f875cd58ea +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs new file mode 100644 index 00000000..c6c81be8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta new file mode 100644 index 00000000..dac11abd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f10479b97efcbb94a8089a12bf891b5b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs new file mode 100644 index 00000000..2f8a93c5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs @@ -0,0 +1,62 @@ +using UnityEngine; +using System.Collections; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta new file mode 100644 index 00000000..7bd49fa8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 04e0905e87bf90a408551067942c08c7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs new file mode 100644 index 00000000..77093432 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs @@ -0,0 +1,63 @@ +using UnityEngine; +using System.Collections; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta new file mode 100644 index 00000000..9e216986 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b601abdc989d2ce4f8dc0d3434705814 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs new file mode 100644 index 00000000..39fdcca7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs @@ -0,0 +1,63 @@ +using UnityEngine; +using System.Collections; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta new file mode 100644 index 00000000..ded6b0ed --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 07345b9144172a74892b176413bf9ac3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs new file mode 100644 index 00000000..ae5b529f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta new file mode 100644 index 00000000..6ee4ea45 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 979ffd79261d4bb499331ba9fa80ed7d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs new file mode 100644 index 00000000..9137ec56 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs @@ -0,0 +1,53 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/Animator")] + [TaskDescription("Sets the look at position. Returns Success.")] + public class SetLookAtPosition : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The position to lookAt")] + public SharedVector3 position; + + private Animator animator; + private GameObject prevGameObject; + private bool positionSet; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + animator = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + 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() + { + targetGameObject = null; + position = Vector3.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta new file mode 100644 index 00000000..9cca866d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 31c4894aafa2b7f40984915713cff50b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs new file mode 100644 index 00000000..f6b9102a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs @@ -0,0 +1,66 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/Animator")] + [TaskDescription("Sets the look at weight. Returns success immediately after.")] + public class SetLookAtWeight : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [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 GameObject prevGameObject; + private bool weightSet; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + animator = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + 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() + { + targetGameObject = null; + weight = 0; + bodyWeight = 0; + headWeight = 1; + eyesWeight = 0; + clampWeight = 0.5f; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta new file mode 100644 index 00000000..f69692c9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1d700204dde35cd4c9e5a8553089127e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs new file mode 100644 index 00000000..e38f45ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta new file mode 100644 index 00000000..f30c47bd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b5cd3c9afb48ee541afcce2dade6bc6a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs new file mode 100644 index 00000000..085fe89b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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.Value = ""; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta new file mode 100644 index 00000000..fc5f8f1e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 004807d2b68cad7459f6d84ce1274c16 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs new file mode 100644 index 00000000..6c35b0e9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta new file mode 100644 index 00000000..7332f68e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 46d4b19160ba8774ea6100dda4288753 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs new file mode 100644 index 00000000..f9ebf502 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta new file mode 100644 index 00000000..87f0ddb2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d6f14b502ed889444a0e44e8cb06e767 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs new file mode 100644 index 00000000..8096b930 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta new file mode 100644 index 00000000..eb10c87f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7daa3c083e51ad44a8c8b05bb4e70689 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs new file mode 100644 index 00000000..cd531c7f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta new file mode 100644 index 00000000..d8001590 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c62c2817a5d72054caebff852d50ef17 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta new file mode 100644 index 00000000..e4a0e09d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 8d2af13ebd5ef0b428b7ea2a3eb85c95 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs new file mode 100644 index 00000000..e0906252 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta new file mode 100644 index 00000000..aca007cf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b3bd7bb287fe91747bca60ebe3d53e87 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs new file mode 100644 index 00000000..12885ddf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta new file mode 100644 index 00000000..5176b8f8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c45986918364dfc4e9eca01d2839e2e4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs new file mode 100644 index 00000000..c1cd0a7d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta new file mode 100644 index 00000000..a5d37f95 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 699b9d0d798a219459c6477d2c21d4ba +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs new file mode 100644 index 00000000..cf8b9ed3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta new file mode 100644 index 00000000..2cb3e832 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e2b2500d8e2b0c45825c0650f64eae2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs new file mode 100644 index 00000000..6fe9aed3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta new file mode 100644 index 00000000..20401fd0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cad762e82ef22644ca968b4a1c51eaec +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs new file mode 100644 index 00000000..f2cee2f2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta new file mode 100644 index 00000000..71acfb23 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 51df88b2df77e294cb673105b1c36961 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs new file mode 100644 index 00000000..21ddf55d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta new file mode 100644 index 00000000..c23193a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 930fa7881ae9236449d90546f9922656 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs new file mode 100644 index 00000000..bb519ef0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta new file mode 100644 index 00000000..4bf1ba3e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: de856d580ad945e4d846fa52d3d647cc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs new file mode 100644 index 00000000..a4b28d99 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta new file mode 100644 index 00000000..8616ca5f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ba6a60eccf688514392e782348b84628 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs new file mode 100644 index 00000000..1838133a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta new file mode 100644 index 00000000..3d1c547f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 600c95fc760afa140bd0a7b98bd5071f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs new file mode 100644 index 00000000..367f4b3f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta new file mode 100644 index 00000000..40d3ea23 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: af34adc5779f33442909ff32140dcdd4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs new file mode 100644 index 00000000..4610f4ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta new file mode 100644 index 00000000..fdb362b6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: aad3b2c644baeb646b0b33b7317413d4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs new file mode 100644 index 00000000..7b457902 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta new file mode 100644 index 00000000..e830c656 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 20fb79d98326b794fb309a291613cab4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs new file mode 100644 index 00000000..1d5347ad --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta new file mode 100644 index 00000000..140e52a3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 91db8dd58e79db745acc39f3f52da88e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs new file mode 100644 index 00000000..3e711027 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta new file mode 100644 index 00000000..52452b5a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7ac8cfb80c6a44c42b4ac4eef6f29bd5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs new file mode 100644 index 00000000..7618bd7c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta new file mode 100644 index 00000000..fb881a38 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0125706a59bb7974eb3d425d3869779a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs new file mode 100644 index 00000000..1d04f8e0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta new file mode 100644 index 00000000..4bc09ae8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 112c969d16008464f96ce23aa5b32486 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs new file mode 100644 index 00000000..d854790d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta new file mode 100644 index 00000000..8c3e45f7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 08d431471ffd8954197b88b698f0d424 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs new file mode 100644 index 00000000..71941195 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta new file mode 100644 index 00000000..df8eac5c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f52d9d404f7deab448e4f5c2bb3f7892 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs new file mode 100644 index 00000000..1b0f14b3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta new file mode 100644 index 00000000..e6c2790c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d617db8232463c444a8a3159da109798 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs new file mode 100644 index 00000000..787637b2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta new file mode 100644 index 00000000..6b86a289 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6f1f5937bfa03484296c0fb5a9ce9b29 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs new file mode 100644 index 00000000..38a47ba3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta new file mode 100644 index 00000000..d8e3cc04 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 50536bd6b5fa6924bb7217dd3b6e3f45 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs new file mode 100644 index 00000000..17487708 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta new file mode 100644 index 00000000..2d67b172 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b0c75cf2afc289c4a8962f71b5e17dd1 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs new file mode 100644 index 00000000..f693e4a8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta new file mode 100644 index 00000000..6e87631a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ccb3beba9296fc54d8427cd646af4f4e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs new file mode 100644 index 00000000..0d45e2df --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta new file mode 100644 index 00000000..7296e828 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ec553c7ad9360a24fb7ce3bf3bc48c97 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs new file mode 100644 index 00000000..bd6d1853 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs @@ -0,0 +1,46 @@ +#if UNITY_4_6 || UNITY_4_7 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/AudioSource")] + [TaskDescription("Sets the pan value of the AudioSource. Returns Success.")] + public class SetPan : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The pan value of the AudioSource")] + public SharedFloat pan; + + 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.pan = pan.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + pan = 1; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta new file mode 100644 index 00000000..5ee56ec2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ed66670f171cea24c9208fff10bfc43d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs new file mode 100644 index 00000000..b1f24307 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs @@ -0,0 +1,46 @@ +#if UNITY_4_6 || UNITY_4_7 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/AudioSource")] + [TaskDescription("Sets the pan level value of the AudioSource. Returns Success.")] + public class SetPanLevel : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The pan level value of the AudioSource")] + public SharedFloat panLevel; + + 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.panLevel = panLevel.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + panLevel = 1; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta new file mode 100644 index 00000000..ca4e90f7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 219609a4a0818d746a7828dc968c31a9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs new file mode 100644 index 00000000..9a6de27f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta new file mode 100644 index 00000000..71a8ff21 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3c7615ddc4e92fd41b72de06f039f9e1 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs new file mode 100644 index 00000000..1a1532ea --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta new file mode 100644 index 00000000..0a8e4128 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4fc15622e17101f4b95be39910433c8a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs new file mode 100644 index 00000000..0b142108 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta new file mode 100644 index 00000000..0d7fe458 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ef88d71b5b7e0a84d98bde6405eb294d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs new file mode 100644 index 00000000..b214f713 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta new file mode 100644 index 00000000..3f0af6c4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8867d64aa9a2add4f913b8b5faa9d1ce +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs new file mode 100644 index 00000000..4c5b890c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta new file mode 100644 index 00000000..4dbd7c6a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cf64b74120564064a8d9c622ccc7115a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs new file mode 100644 index 00000000..f4657fcd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta new file mode 100644 index 00000000..89329407 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f6d964d5fdf24bf449d3f59de1864dd8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs new file mode 100644 index 00000000..637789e8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta new file mode 100644 index 00000000..bc128b7a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3173ce3fda9d60f48b159759f8981f89 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs new file mode 100644 index 00000000..53dddaa0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta new file mode 100644 index 00000000..606e6903 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c26ea6b22d3fa7843a73e5088376996c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs new file mode 100644 index 00000000..80ee7189 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta new file mode 100644 index 00000000..16176d79 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: edfc39045c7af164fb340d21762e4d79 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs new file mode 100644 index 00000000..f351635c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta new file mode 100644 index 00000000..66ee21a5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bd4cec1e9e81e664d8e7782bd02bcade +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta new file mode 100644 index 00000000..1a17548b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 51de5dc2234f2d642b8b53dd9ccc9be3 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs new file mode 100644 index 00000000..c34c4133 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs @@ -0,0 +1,35 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBehaviour +{ + [TaskCategory("Basic/Behaviour")] + [TaskDescription("Stores the enabled state of the object. Returns Success.")] + public class GetIsEnabled : Action + { + [Tooltip("The Object to use")] + public SharedObject specifiedObject; + [Tooltip("The enabled/disabled state")] + [RequiredField] + public SharedBool storeValue; + + 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; + } + + storeValue.Value = (specifiedObject.Value as Behaviour).enabled; + + return TaskStatus.Success; + } + + public override void OnReset() + { + if (specifiedObject != null) { + specifiedObject.Value = null; + } + storeValue = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta new file mode 100644 index 00000000..55e67554 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ad6519dede06d7b46b95e54bb60be281 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs new file mode 100644 index 00000000..78fb031f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBehaviour +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta new file mode 100644 index 00000000..f66d6058 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 32f61cbdb8bdf1e44bf418ca21681bc3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs new file mode 100644 index 00000000..535355fd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs @@ -0,0 +1,34 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBehaviour +{ + [TaskCategory("Basic/Behaviour")] + [TaskDescription("Enables/Disables the object. Returns Success.")] + public class SetIsEnabled : Action + { + [Tooltip("The Object to use")] + public SharedObject specifiedObject; + [Tooltip("The enabled/disabled state")] + public SharedBool enabled; + + 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; + } + + (specifiedObject.Value as Behaviour).enabled = enabled.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + if (specifiedObject != null) { + specifiedObject.Value = null; + } + enabled = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta new file mode 100644 index 00000000..623d440c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cf7703ff7e9055e4f811a5b95bf18930 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta new file mode 100644 index 00000000..46645ecf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 876af1fbcf3642e4b987507ed975a15a +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs new file mode 100644 index 00000000..83bf9367 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta new file mode 100644 index 00000000..61b2c34f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c3ae13d2bd0e5f4186835c672d9461f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs new file mode 100644 index 00000000..d358a83b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta new file mode 100644 index 00000000..934ee86c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0afec21454700d3479c4f9767f9382f9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs new file mode 100644 index 00000000..e24eec2a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta new file mode 100644 index 00000000..9787d48f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 45b3b4dc79247bd46a9c2b11fa9b125c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs new file mode 100644 index 00000000..1ee03fa2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta new file mode 100644 index 00000000..e00c7d4a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d899b6ed83f6e264f8e5867cf68c0cda +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta new file mode 100644 index 00000000..0ad45570 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: c7814e7f18119144182f77f9b2a01af2 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs new file mode 100644 index 00000000..e539eb30 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider2D +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta new file mode 100644 index 00000000..362df45f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c69113b787759f340aacbb9d99a6d654 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs new file mode 100644 index 00000000..5de4a500 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider2D +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta new file mode 100644 index 00000000..f5af4e82 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1875fd00045d98848b028015a17aeeaf +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta new file mode 100644 index 00000000..0b7a7297 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 0cf43865b0892fb48ac285f63910ff97 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs new file mode 100644 index 00000000..05e4c8e4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs.meta new file mode 100644 index 00000000..3256d554 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3a032cb4c0b97b844ad53ad7bb2617c3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs new file mode 100644 index 00000000..56f394b9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs.meta new file mode 100644 index 00000000..3e32e995 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7e9f2ebb599281345a458fab17aab5fd +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs new file mode 100644 index 00000000..98c38d5e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs.meta new file mode 100644 index 00000000..8f56770b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 29e860749600e174aa61dd42be0a3126 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs new file mode 100644 index 00000000..b1df3bc9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs.meta new file mode 100644 index 00000000..006177a6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d03b50a6f076c75408ef6e843bd75539 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs new file mode 100644 index 00000000..c72abb9b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta new file mode 100644 index 00000000..8b888bdd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f8292285661aa7e4086c0b59926632c3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs new file mode 100644 index 00000000..e07ee642 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta new file mode 100644 index 00000000..15fea291 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4146b45b3a598294f86dbbac03e6e8cb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs new file mode 100644 index 00000000..2f734d5d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta new file mode 100644 index 00000000..60d24f8f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 34f947c079c1159488c80854ee53ecd8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs new file mode 100644 index 00000000..963dfe47 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta new file mode 100644 index 00000000..ae2e46ca --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fed5a0f5604af324cb2e4a3ed9315793 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta new file mode 100644 index 00000000..6034f256 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 4b58bcba0c40cfc448a1f2a5f2a57c57 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs new file mode 100644 index 00000000..a05eb82a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs.meta new file mode 100644 index 00000000..d0c9a496 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e4033e3d9c7ef994ba600b3afec28a0d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs new file mode 100644 index 00000000..1317129e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs.meta new file mode 100644 index 00000000..d1dd43b3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: eec31e6d5685c674fa2952757b4adf9a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs new file mode 100644 index 00000000..67c3d1ff --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs.meta new file mode 100644 index 00000000..81e97192 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3bf330244cdea3b43ad95e8731fdb78b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs new file mode 100644 index 00000000..cb33ff2a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs.meta new file mode 100644 index 00000000..c6bf9789 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3cb445c34dce1a14aa5134278025ec59 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs new file mode 100644 index 00000000..f4d14456 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs.meta new file mode 100644 index 00000000..17385174 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d9bb8d4be247f4d4cb9b2b05a6efd48f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs new file mode 100644 index 00000000..2c4ee10a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs.meta new file mode 100644 index 00000000..23ec32d3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 783c920567425bd4c9385eeaf8099ea4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs new file mode 100644 index 00000000..a1688d5f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs @@ -0,0 +1,43 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta new file mode 100644 index 00000000..947de51c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9ff7c43d9df5279489455a4ce2eb3b20 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs new file mode 100644 index 00000000..4d480765 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta new file mode 100644 index 00000000..536c1fa8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e8541a996b0a37b4f8bce82dd23ddb84 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs new file mode 100644 index 00000000..de40f1d2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta new file mode 100644 index 00000000..00e7570e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 546770f14f8265d4c83b94210630b644 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs new file mode 100644 index 00000000..c3aaac90 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta new file mode 100644 index 00000000..90d1e1c9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1072c5d1f7d15b24d811ee2e52f5806f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs new file mode 100644 index 00000000..7ad8e61c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta new file mode 100644 index 00000000..d42f0e0b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f3646fc892390f443ab43e4313cd0c6a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs new file mode 100644 index 00000000..53327f7d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta new file mode 100644 index 00000000..8db23e47 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d3d7c584aef3bd5468165685a1975862 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs new file mode 100644 index 00000000..ac860c57 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta new file mode 100644 index 00000000..aca63d5a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 65d4ccec4c868584a89d9037a6eec3e6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs new file mode 100644 index 00000000..d646276d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta new file mode 100644 index 00000000..5512e7e7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b062e83de9feb8a41a9e4989f2d65b97 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs new file mode 100644 index 00000000..7b999324 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta new file mode 100644 index 00000000..f3a41a05 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c760a29b8a35c044d87b7a80a58f046c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta new file mode 100644 index 00000000..88b51cd1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: e179f1af407aa8b469c6d96d7c0e2563 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs new file mode 100644 index 00000000..0dd214d3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs @@ -0,0 +1,47 @@ +#if UNITY_4_6 || UNITY_4_7 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D +{ + [TaskCategory("Basic/CircleCollider2D")] + [TaskDescription("Stores the center of the CircleCollider2D. 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 CircleCollider2D")] + [RequiredField] + public SharedVector2 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.center; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = Vector2.zero; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta new file mode 100644 index 00000000..3224c185 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f0b09bbd9fd4fbc44ba06b19dbb4cdd7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs new file mode 100644 index 00000000..a0940ef5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta new file mode 100644 index 00000000..17b98088 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5301adcc69414e44681c1d4dc7ecde58 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs new file mode 100644 index 00000000..41d5101c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs @@ -0,0 +1,46 @@ +#if UNITY_4_6 || UNITY_4_7 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D +{ + [TaskCategory("Basic/CircleCollider2D")] + [TaskDescription("Sets the center of the CircleCollider2D. 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 CircleCollider2D")] + public SharedVector2 center; + + 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.center = center.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + center = Vector2.zero; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta new file mode 100644 index 00000000..9d3181d3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 476937be0338dbf4c80b2a74a5d3ed8c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs new file mode 100644 index 00000000..44b51f3c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta new file mode 100644 index 00000000..51ed0fe3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a9f837093c996864d95d92cae654a8ba +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta new file mode 100644 index 00000000..f991fb9b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: d1140cef910ebcb4fa9817c4ec7fe2df +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs new file mode 100644 index 00000000..c4bc3464 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs @@ -0,0 +1,36 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug +{ + [TaskCategory("Basic/Debug")] + [TaskDescription("Draws a debug line")] + public class DrawLine : Action + { + [Tooltip("The start position")] + public SharedVector3 start; + [Tooltip("The end position")] + public SharedVector3 end; + [Tooltip("The color")] + public SharedColor color = Color.white; + [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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta new file mode 100644 index 00000000..224373d4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 66a533f4f027ab44bb35e498d761ce50 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs new file mode 100644 index 00000000..81aa823f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug +{ + [TaskCategory("Basic/Debug")] + [TaskDescription("Draws a debug ray")] + public class DrawRay : Action + { + [Tooltip("The position")] + public SharedVector3 start; + [Tooltip("The direction")] + public SharedVector3 direction; + [Tooltip("The color")] + public SharedColor color = Color.white; + + public override TaskStatus OnUpdate() + { + Debug.DrawRay(start.Value, direction.Value, color.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + start = Vector3.zero; + direction = Vector3.zero; + color = Color.white; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta new file mode 100644 index 00000000..8490bb34 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 786ac0c09ce982e43b444670fdfe4c74 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs new file mode 100644 index 00000000..00f96bba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs @@ -0,0 +1,76 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta new file mode 100644 index 00000000..65c27cda --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 70765819b419e8a45b326e92edf17ef5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs new file mode 100644 index 00000000..73605da8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug +{ + [TaskCategory("Basic/Debug")] + [TaskDescription("Log a variable value.")] + public class LogValue : Action + { + [Tooltip("The variable to output")] + public SharedGenericVariable variable; + + public override TaskStatus OnUpdate() + { + Debug.Log(variable.Value.value.GetValue()); + + return TaskStatus.Success; + } + + public override void OnReset() + { + variable = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta new file mode 100644 index 00000000..03ab4247 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c50983a88995f4f4197f7b39ca796667 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta new file mode 100644 index 00000000..83094ffa --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: c03de85966f0a834383cef512841e4a9 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs new file mode 100644 index 00000000..e1beca39 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta new file mode 100644 index 00000000..10414adf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0bbe57db7a21ee94f86aef75bbcd6d18 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs new file mode 100644 index 00000000..37945765 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta new file mode 100644 index 00000000..a367c1b1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 26a4530d0ecaa774aaf060511089ddc3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs new file mode 100644 index 00000000..86e676af --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta new file mode 100644 index 00000000..471d827f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fa50c2eedc866794890ff361bdd1d593 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs new file mode 100644 index 00000000..659157b5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs @@ -0,0 +1,32 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta new file mode 100644 index 00000000..0426b237 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 42a90ad4cba90604b8be494aa74df349 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs new file mode 100644 index 00000000..22338483 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta new file mode 100644 index 00000000..dfca4dbd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 81f8712bcbdbdbf4aad17ba5e1e20d8c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs new file mode 100644 index 00000000..067adeed --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/GameObject")] + [TaskDescription("Finds a GameObject by name. Returns Success.")] + 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 TaskStatus.Success; + } + + public override void OnReset() + { + gameObjectName = null; + storeValue = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta new file mode 100644 index 00000000..729c7c7d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5388c9a6fc7770f44885176c24f68aaa +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs new file mode 100644 index 00000000..db02e1bd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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() + { + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta new file mode 100644 index 00000000..51a2649d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ccc3e1d2bf7cfc74089c17d593472f98 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs new file mode 100644 index 00000000..35a0ef63 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/GameObject")] + [TaskDescription("Finds a GameObject by tag. Returns Success.")] + public class FindWithTag : Action + { + [Tooltip("The tag of the GameObject to find")] + public SharedString tag; + [Tooltip("The object found by name")] + [RequiredField] + public SharedGameObject storeValue; + + public override TaskStatus OnUpdate() + { + storeValue.Value = GameObject.FindWithTag(tag.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + tag.Value = null; + storeValue.Value = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta new file mode 100644 index 00000000..c12ea132 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d8768bdf841982f4aae662ee5dac3f2d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs new file mode 100644 index 00000000..96069ed8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta new file mode 100644 index 00000000..6d3bbf91 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 46e3dd9b1b260584b893abde5f733359 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs new file mode 100644 index 00000000..6392cb5c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta new file mode 100644 index 00000000..03efe771 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 44bf3273a8802dc408352f165f18c541 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs new file mode 100644 index 00000000..61f53469 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs @@ -0,0 +1,33 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta new file mode 100644 index 00000000..fc324f10 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 804a64515d87a0546ad7c6c4408ed53f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs new file mode 100644 index 00000000..87819e46 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs @@ -0,0 +1,33 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta new file mode 100644 index 00000000..7eee6459 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dd0f144b1db34024eaea548f6539d2ae +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs new file mode 100644 index 00000000..c3cbd84f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta new file mode 100644 index 00000000..58907327 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5237a810dcce11e499c1915171ec670b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs new file mode 100644 index 00000000..d12ab6e4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta new file mode 100644 index 00000000..6293b8dc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e275477e6962d9b4fb90d7930bb6ff5a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta new file mode 100644 index 00000000..0ec84f15 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 77642b8113f3f334d971d61be9516264 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs new file mode 100644 index 00000000..81c8be5c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta new file mode 100644 index 00000000..46720f9c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 06e82895d2abea24599ddfd6f0d7386a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs new file mode 100644 index 00000000..00249ff4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs @@ -0,0 +1,37 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta new file mode 100644 index 00000000..b15eb427 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 84fa68d3aa9286f488ee60bb7f420079 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs new file mode 100644 index 00000000..3a28cd38 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs @@ -0,0 +1,37 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta new file mode 100644 index 00000000..9f0257dc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d7ba1768defe9ae4489e2d849801caf2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs new file mode 100644 index 00000000..aafcb287 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta new file mode 100644 index 00000000..3f0dcc36 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7ca2e1ded24b0a144b628bb8ed81ccd0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs new file mode 100644 index 00000000..5fd8807a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta new file mode 100644 index 00000000..250f6552 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8d91595c5c003b948abb908c7465a7ec +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs new file mode 100644 index 00000000..2ffab1fd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta new file mode 100644 index 00000000..bef0000b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3449e6301a95d9e49a8f6b50ef862faa +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs new file mode 100644 index 00000000..c77718c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/Input")] + [TaskDescription("Stores the mouse position.")] + public class GetMousePosition : Action + { + [RequiredField] + [Tooltip("The stored result")] + public SharedVector2 storeResult; + + public override TaskStatus OnUpdate() + { + storeResult.Value = Input.mousePosition; + return TaskStatus.Success; + } + + public override void OnReset() + { + storeResult = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta new file mode 100644 index 00000000..6909b9e2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f11dbb85cfc5b3941ae4f82fa54b7d27 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs new file mode 100644 index 00000000..8a783800 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta new file mode 100644 index 00000000..82b95089 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 554c281a83ae5bb4bbcdf3bdeac6779e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs new file mode 100644 index 00000000..4912f768 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta new file mode 100644 index 00000000..5326dcbc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 71d9dda886873b943922eae52da81244 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs new file mode 100644 index 00000000..f1fe4100 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta new file mode 100644 index 00000000..bffece71 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b4c02f1f071b9604389e1c1f1bfab3eb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs new file mode 100644 index 00000000..ddeb76f8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta new file mode 100644 index 00000000..bbca872f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7d8622d5540c851448ad036016f0f426 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs new file mode 100644 index 00000000..573d6266 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta new file mode 100644 index 00000000..63169ed0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fd85264410cd9ac45b0c9c2e550f7c46 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs new file mode 100644 index 00000000..157474d1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta new file mode 100644 index 00000000..8d3608bf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b2ecc8718d19d9b46832c51de0390245 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta new file mode 100644 index 00000000..a0aceb57 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 03592e079804666408280a195c972a69 +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs new file mode 100644 index 00000000..032e47be --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLayerMask +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta new file mode 100644 index 00000000..3b4d954c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a7e0974f9cfb9945bb2d0f41ed55f10 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs new file mode 100644 index 00000000..09f218d6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLayerMask +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta new file mode 100644 index 00000000..f57d1cd8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 483904cd6081c8440a146b11481d6623 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta new file mode 100644 index 00000000..3985d7aa --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 48823f7ab681c2b4f9439c617555cf7a +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs new file mode 100644 index 00000000..29a084c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta new file mode 100644 index 00000000..c391a19f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 935c3e08c991a524fa451ba010bb7077 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs new file mode 100644 index 00000000..85dfd53b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta new file mode 100644 index 00000000..a86579e2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4c382d40893d45d46842714355d4cab4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs new file mode 100644 index 00000000..7ee3f1b3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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 = light.intensity; + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta new file mode 100644 index 00000000..dfad40c2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8af031ee741aec645bcf65ae806e78a7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs new file mode 100644 index 00000000..3156c745 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta new file mode 100644 index 00000000..220a3c67 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5ebab1924e0212c4ca589526a033fda6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs new file mode 100644 index 00000000..796f4fe0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta new file mode 100644 index 00000000..7b99160f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9d0cbb27de892b44193aaa9f12842ed2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs new file mode 100644 index 00000000..81e3ca68 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta new file mode 100644 index 00000000..76739e89 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7a7fe83e412ff344888939e6a974a064 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs new file mode 100644 index 00000000..d6b98562 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta new file mode 100644 index 00000000..74436066 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4dfc8df823e06cd45a09d929a060f99d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs new file mode 100644 index 00000000..43232caf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta new file mode 100644 index 00000000..403db7c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ba683b0b18385042b3351c660f29d33 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs new file mode 100644 index 00000000..5037c250 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta new file mode 100644 index 00000000..ad8cc7b0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 374f9a87dc387a04585b87f187d019c5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs new file mode 100644 index 00000000..b70581e3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta new file mode 100644 index 00000000..e06f1769 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fbc2d3865f928144ea551b1d927ddc96 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs new file mode 100644 index 00000000..5f6ef3e2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta new file mode 100644 index 00000000..8968b4e5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3f67673818b7e914ebf088b3752d716b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs new file mode 100644 index 00000000..9bbf21c8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta new file mode 100644 index 00000000..137b45cd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f32aa9b9681f0a4285bd60ac0607d00 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs new file mode 100644 index 00000000..975421ee --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta new file mode 100644 index 00000000..d2bb5bd3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f0b5d0c0a07806244a3c5b15e29cf90c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs new file mode 100644 index 00000000..b286c041 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta new file mode 100644 index 00000000..c364894d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f2b374e3c2e26e94ba76dd68290ff538 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs new file mode 100644 index 00000000..1f9122e8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs @@ -0,0 +1,46 @@ +#if UNITY_4_6 || UNITY_4_7 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/Light")] + [TaskDescription("Sets the shadow softness of the light.")] + public class SetShadowSoftness : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The shadow softness to set")] + public SharedFloat shadowSoftness; + + // 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.shadowSoftness = shadowSoftness.Value; + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + shadowSoftness = 0; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta new file mode 100644 index 00000000..1276066d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ca82eb780880d17499dc6de132631073 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs new file mode 100644 index 00000000..2c5047f0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs @@ -0,0 +1,46 @@ +#if UNITY_4_6 || UNITY_4_7 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/Light")] + [TaskDescription("Sets the shadow softness fade value of the light.")] + public class SetShadowSoftnessFade : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The shadow softness fade to set")] + public SharedFloat shadowSoftnessFade; + + // 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.shadowSoftnessFade = shadowSoftnessFade.Value; + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + shadowSoftnessFade = 0; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta new file mode 100644 index 00000000..074f1119 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5e7db120bd152164eb6d586a39e53175 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs new file mode 100644 index 00000000..b30cf243 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta new file mode 100644 index 00000000..f5ba4379 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 611e5846c0413be46bbc44fbd256b4e9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs new file mode 100644 index 00000000..8310dd27 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs @@ -0,0 +1,43 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta new file mode 100644 index 00000000..f528500b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6226eb03ad729445bc7ccfb1f0cd89d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs new file mode 100644 index 00000000..f017a652 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta new file mode 100644 index 00000000..b6d09a90 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9a8b9b0654618fe48953e059d4aa5ee3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs new file mode 100644 index 00000000..2d103ed9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs @@ -0,0 +1,43 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta new file mode 100644 index 00000000..c0ba834c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 85cae5f82bfcbfb41ac7c66464eef85f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta new file mode 100644 index 00000000..60031b56 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: fffa44303fdbffe4289373d6e5087b4a +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs new file mode 100644 index 00000000..0098ff55 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs @@ -0,0 +1,23 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = false; + bool2.Value = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta new file mode 100644 index 00000000..ec4e2beb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: abaa3d78e68f249428f3be7acae86b0d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs new file mode 100644 index 00000000..04fe32c9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs @@ -0,0 +1,21 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta new file mode 100644 index 00000000..44658dae --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 54aae1e47fe3be6458751bf1f9defe8f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs new file mode 100644 index 00000000..8f4eb768 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs @@ -0,0 +1,51 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = false; + bool2.Value = false; + storeResult.Value = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta new file mode 100644 index 00000000..7b4a9b28 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bd7b9dfddd114be4a8c8a8521262970d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs new file mode 100644 index 00000000..16c2e345 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta new file mode 100644 index 00000000..805bd7e7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ab5531c4ed335b643a6f310c048a6b00 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs new file mode 100644 index 00000000..89f406b9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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 = minValue = maxValue = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta new file mode 100644 index 00000000..dbe8a35c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 75c3634f2c8f1dd49b826a7ac0c7bdbe +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs new file mode 100644 index 00000000..1aa5c83e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs @@ -0,0 +1,50 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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 float1.Value == float2.Value ? TaskStatus.Success : TaskStatus.Failure; + case Operation.NotEqualTo: + return 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta new file mode 100644 index 00000000..f4f6d874 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 79c81f4e67dbdc44880734e78153117c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs new file mode 100644 index 00000000..c4cebd9d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs @@ -0,0 +1,65 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = 0; + float2.Value = 0; + storeResult.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta new file mode 100644 index 00000000..1641d6ce --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9144ac2a8b796c941aeb3d6a4bc2cf7c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs new file mode 100644 index 00000000..05f97250 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta new file mode 100644 index 00000000..b3363f74 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8edcbab77068fe044842381cfe0acc19 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs new file mode 100644 index 00000000..fed3a146 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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 = minValue = maxValue = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta new file mode 100644 index 00000000..c1bf1d66 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 67cbe30015f2b4940a069cbbee22d888 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs new file mode 100644 index 00000000..d0eda4f5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs @@ -0,0 +1,50 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta new file mode 100644 index 00000000..e8807d6b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 99108c35b6d8e9942b8cf441a63f97b5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs new file mode 100644 index 00000000..1ad1bc62 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs @@ -0,0 +1,66 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = 0; + integer2.Value = 0; + storeResult.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta new file mode 100644 index 00000000..fc1fa364 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 84208004fb80c0945acc5685aa0a2681 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs new file mode 100644 index 00000000..9a106fde --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs @@ -0,0 +1,20 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta new file mode 100644 index 00000000..6502aa63 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: db01d0da1f282134ca0ff7332eb19208 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs new file mode 100644 index 00000000..66fd1e7d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs @@ -0,0 +1,20 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta new file mode 100644 index 00000000..0fd5bd95 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0caff63c23ae17343a455fcbe6eab40a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs new file mode 100644 index 00000000..1e39179c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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 = toValue = lerpAmount = storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta new file mode 100644 index 00000000..b6e18c51 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 355f3f83182cc434cb3a1bfb66862e29 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs new file mode 100644 index 00000000..11cd8165 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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 = toValue = lerpAmount = storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta new file mode 100644 index 00000000..6b5fc782 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c3b148edcb926b744a2bb789f7967e24 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs new file mode 100644 index 00000000..2cb731d3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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; + } + + public override void OnReset() + { + storeResult.Value = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta new file mode 100644 index 00000000..e666e5ed --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 76d2565ca99ca26459dbefb44dcac109 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs new file mode 100644 index 00000000..57ca24f8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs @@ -0,0 +1,36 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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 + 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.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta new file mode 100644 index 00000000..9b1e5fc8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9f81e111c77731b418178f1226975c3f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs new file mode 100644 index 00000000..6fa4db81 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs @@ -0,0 +1,36 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta new file mode 100644 index 00000000..2d3efdac --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 067384c41f33cff49bcdf6adec9da049 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs new file mode 100644 index 00000000..e4821682 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs @@ -0,0 +1,24 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = false; + storeResult.Value = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta new file mode 100644 index 00000000..33f077c7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 55f244424a532d24bba59542e2f0fc59 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs new file mode 100644 index 00000000..e9892ece --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs @@ -0,0 +1,24 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = 0; + storeResult.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta new file mode 100644 index 00000000..794328f7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4d915065ba447c64ba05f8e2841c6efd +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs new file mode 100644 index 00000000..e16fb31a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs @@ -0,0 +1,24 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.Math +{ + [TaskCategory("Basic/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.Value = 0; + storeResult.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta new file mode 100644 index 00000000..c5a42a46 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da57a0a43f227e445b9311bae043401f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta new file mode 100644 index 00000000..277f90de --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 7e052e6171d06ed43bea8c8143e7bce5 +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs new file mode 100644 index 00000000..050f35e4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs.meta new file mode 100644 index 00000000..8640a76e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7e00211632663cc43bc88ab068ab5d44 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs new file mode 100644 index 00000000..f5378f2d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs.meta new file mode 100644 index 00000000..6fd470cc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 110bcd7b4d1baae4096b5da6737c1e16 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs new file mode 100644 index 00000000..c85ef613 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs.meta new file mode 100644 index 00000000..e6090098 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4368ae3e22d36604697d420dff004cbe +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs new file mode 100644 index 00000000..e2f49731 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs.meta new file mode 100644 index 00000000..8ac9d355 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ab046b37543b6744aa440cd708a93b81 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs new file mode 100644 index 00000000..1969545f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs.meta new file mode 100644 index 00000000..d395eea4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6397854a3aea4b44a5ab4ccf98d082d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs new file mode 100644 index 00000000..c3ad27fb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs @@ -0,0 +1,48 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta new file mode 100644 index 00000000..4217e2de --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 55ea16e678f6fae47a46affd3d22b883 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs new file mode 100644 index 00000000..3aa1a4bc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs @@ -0,0 +1,45 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta new file mode 100644 index 00000000..2e95416c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e90973887b9e7d04aafc5d13ecdfc8b9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs new file mode 100644 index 00000000..bf62cb97 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 || UNITY_5_5 + navMeshAgent.Resume(); +#else + navMeshAgent.isStopped = false; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta new file mode 100644 index 00000000..16e07057 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2c87e343e0ec23041b0cf7d8090d4814 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs new file mode 100644 index 00000000..9473466d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs @@ -0,0 +1,48 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta new file mode 100644 index 00000000..e3090bce --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a8357209bccc16442b549c580872bb05 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs new file mode 100644 index 00000000..3c7c7721 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs @@ -0,0 +1,48 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta new file mode 100644 index 00000000..0b1d44a5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0d8e213aa17540848b83b17ba1609c74 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs new file mode 100644 index 00000000..0efa0dba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs @@ -0,0 +1,47 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta new file mode 100644 index 00000000..d5f1bde8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 55d9c2d20e895104181ae1b484868ead +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs new file mode 100644 index 00000000..a1a4a51b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs @@ -0,0 +1,48 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs.meta new file mode 100644 index 00000000..79a97d26 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 34372b45870504b419f34165fb1fa4fb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs new file mode 100644 index 00000000..0af7d480 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs @@ -0,0 +1,49 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 || UNITY_5_5 + navMeshAgent.Stop(); +#else + navMeshAgent.isStopped = true; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta new file mode 100644 index 00000000..7a6ada0c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b20958b8b92e47f40ba3178c99576182 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs new file mode 100644 index 00000000..d8107173 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs @@ -0,0 +1,48 @@ +using UnityEngine; +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4) +using UnityEngine.AI; +#endif + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta new file mode 100644 index 00000000..8a6d4812 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9d2356bfaf0a64b4d9d65d32708630db +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta new file mode 100644 index 00000000..7226ca30 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 5c6c53ae71570844abe4d526c0f67273 +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs new file mode 100644 index 00000000..a382f73b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs @@ -0,0 +1,12 @@ +using UnityEngine.Networking; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNetwork +{ + public class IsClient : Conditional + { + public override TaskStatus OnUpdate() + { + return NetworkClient.active ? TaskStatus.Success : TaskStatus.Failure; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta new file mode 100644 index 00000000..8e0dada2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0762b2157086f9f43a3345a2afec412f +timeCreated: 1433120444 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs new file mode 100644 index 00000000..737b6f32 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs @@ -0,0 +1,12 @@ +using UnityEngine.Networking; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNetwork +{ + public class IsServer : Conditional + { + public override TaskStatus OnUpdate() + { + return NetworkServer.active ? TaskStatus.Success : TaskStatus.Failure; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta new file mode 100644 index 00000000..dc684d4e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7cf87bcdeb87b54698789a35a4b8ff0 +timeCreated: 1433120429 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta new file mode 100644 index 00000000..2c1fd0b2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 298b24307673c7a49b5cabe1dbcae115 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs new file mode 100644 index 00000000..38988c82 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta new file mode 100644 index 00000000..63db0e0c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: de273e542591d5946a8728190438ae27 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs new file mode 100644 index 00000000..4ea0f3a3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + storeResult.Value = particleSystem.duration; +#else + storeResult.Value = particleSystem.main.duration; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta new file mode 100644 index 00000000..f41e7cee --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 02a4d610e82f1854c87701c4d51957fb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs new file mode 100644 index 00000000..740466e5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/ParticleSystem")] + [TaskDescription("Stores the emission rate of the Particle System.")] + public class GetEmissionRate : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The emission rate 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; + } + +#if !(UNITY_5_1 || UNITY_5_2) + Debug.Log("Warning: GetEmissionRate is not used in Unity 5.3 or later."); +#else + storeResult.Value = particleSystem.emissionRate; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta new file mode 100644 index 00000000..1658d847 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3adb98115d27ec64da9b5f56391570be +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs new file mode 100644 index 00000000..2b6b57d2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if !(UNITY_5_1 || UNITY_5_2) + storeResult.Value = particleSystem.emission.enabled; +#else + storeResult.Value = particleSystem.enableEmission; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta new file mode 100644 index 00000000..e894a6e4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 81dc1a241a2c872409a7919742df7581 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs new file mode 100644 index 00000000..b5a97797 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs @@ -0,0 +1,47 @@ +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/ParticleSystem")] + [TaskDescription("Stores the gravity modifier of the Particle System.")] + public class GetGravityModifier : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The gravity modifier 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.duration; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = 0; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta new file mode 100644 index 00000000..3412f534 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7001d2ab41ef4e64190afc7f9bce1876 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs new file mode 100644 index 00000000..5ee3b1de --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + storeResult.Value = particleSystem.loop; +#else + storeResult.Value = particleSystem.main.loop; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = false; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta new file mode 100644 index 00000000..bfa703a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 82f4ee8cf50887a4488fe6d0da18afc0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs new file mode 100644 index 00000000..c53bbddd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + storeResult.Value = particleSystem.maxParticles; +#else + storeResult.Value = particleSystem.main.maxParticles; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta new file mode 100644 index 00000000..8e026028 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 429771af65df81c49aaf4b34630473fe +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs new file mode 100644 index 00000000..06c4fe96 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta new file mode 100644 index 00000000..c1cfbc05 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f32e2ff9de4ff7b47a256ac3b51123c6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs new file mode 100644 index 00000000..e23aac68 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs @@ -0,0 +1,50 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + storeResult.Value = particleSystem.playbackSpeed; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + storeResult.Value = mainParticleSystem.simulationSpeed; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta new file mode 100644 index 00000000..12e27063 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f8f29f170ac706b498e7c933136d8036 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs new file mode 100644 index 00000000..315474d5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta new file mode 100644 index 00000000..0cd924dc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9b15c7efbf98f7649adf8dd4474b0579 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs new file mode 100644 index 00000000..49f56b98 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta new file mode 100644 index 00000000..aa294a13 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3d554784e9a9fa040a2446402ba3f10e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs new file mode 100644 index 00000000..d0180464 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta new file mode 100644 index 00000000..00a5c85f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e4e9ab132f20dfa4095b3c90303ebf74 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs new file mode 100644 index 00000000..ee9f9472 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta new file mode 100644 index 00000000..d3f13e4d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 654b51e99f64bfb489e12866a569f00e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs new file mode 100644 index 00000000..39642507 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta new file mode 100644 index 00000000..d0a054fb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c719a7379c22b184380b4e63ccdfd064 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs new file mode 100644 index 00000000..496b2db5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta new file mode 100644 index 00000000..d6e60239 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c9c9cc56691817b49af4fd1cfbc3e363 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs new file mode 100644 index 00000000..6797351c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta new file mode 100644 index 00000000..276c73c4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a8ffb889d35074d4fb08d8502155c0b2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs new file mode 100644 index 00000000..2034a071 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/ParticleSystem")] + [TaskDescription("Sets the emission rate of the Particle System.")] + public class SetEmissionRate : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The emission rate of the ParticleSystem")] + public SharedFloat emissionRate; + + 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; + } + +#if !(UNITY_5_1 || UNITY_5_2) + Debug.Log("Warning: SetEmissionRate is not used in Unity 5.3 or later."); +#else + particleSystem.emissionRate = emissionRate.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + emissionRate = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta new file mode 100644 index 00000000..ac56602a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a8300eee629ad77419f2eb91477a0b62 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs new file mode 100644 index 00000000..eedcc59e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if !(UNITY_5_1 || UNITY_5_2) + var emission = particleSystem.emission; + emission.enabled = enable.Value; +#else + particleSystem.enableEmission = enable.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + enable = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta new file mode 100644 index 00000000..d5d77a69 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f7c295b4d24628146a885d21bf699993 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs new file mode 100644 index 00000000..e11dcd85 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs @@ -0,0 +1,46 @@ +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/ParticleSystem")] + [TaskDescription("Sets the gravity modifier of the Particle System.")] + public class SetGravityModifier : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The gravity modifier of the ParticleSystem")] + public SharedFloat gravityModifier; + + 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.gravityModifier = gravityModifier.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + gravityModifier = 0; + } + } +} +#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta new file mode 100644 index 00000000..8337a101 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c1a6694791042df4ea2097a2508bd8de +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs new file mode 100644 index 00000000..27e49635 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.loop = loop.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.loop = loop.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + loop = false; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta new file mode 100644 index 00000000..169ffad8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b9fa90adc0377cc4592de00e410a4060 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs new file mode 100644 index 00000000..705c7919 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.maxParticles = maxParticles.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.maxParticles = maxParticles.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + maxParticles = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta new file mode 100644 index 00000000..8549f671 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: eadca930ad32a404886060ee43e4d802 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs new file mode 100644 index 00000000..a520a196 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.playbackSpeed = playbackSpeed.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.simulationSpeed= playbackSpeed.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + playbackSpeed = 1; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta new file mode 100644 index 00000000..1c0afbdb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8f4d79e34ac8820458a2813895d3962d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs new file mode 100644 index 00000000..498c96cc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.startColor = startColor.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.startColor = startColor.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + startColor = Color.white; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta new file mode 100644 index 00000000..12432173 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f91be163d0c01ec42bf120c267dcceea +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs new file mode 100644 index 00000000..e11bcdb1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.startDelay = startDelay.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.startDelay = startDelay.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + startDelay = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta new file mode 100644 index 00000000..fb4c01f5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 532026cf3b430c840897e66bdde5006e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs new file mode 100644 index 00000000..9246543a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.startLifetime = startLifetime.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.startLifetime = startLifetime.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + startLifetime = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta new file mode 100644 index 00000000..361689aa --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 311b9ed850b4e2243ae44487b9ece819 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs new file mode 100644 index 00000000..4cd78608 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.startRotation = startRotation.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.startRotation = startRotation.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + startRotation = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta new file mode 100644 index 00000000..c995958e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ae611ab09913de6438aeb81d7a621c51 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs new file mode 100644 index 00000000..87dbbe39 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.startSize = startSize.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.startSize = startSize.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + startSize = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta new file mode 100644 index 00000000..d697099c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d7be6a1da3f4f7a418e5739a6cc6e78e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs new file mode 100644 index 00000000..52bd8072 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs @@ -0,0 +1,49 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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; + } + +#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 + particleSystem.startSpeed = startSpeed.Value; +#else + ParticleSystem.MainModule mainParticleSystem = particleSystem.main; + mainParticleSystem.startSpeed = startSpeed.Value; +#endif + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + startSpeed = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta new file mode 100644 index 00000000..f87bf954 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b7716318475d3854a96729d1a7540d4a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs new file mode 100644 index 00000000..41f2e9eb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta new file mode 100644 index 00000000..2788eb15 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 103e78e9c755fe3469e63115eb1c0d80 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs new file mode 100644 index 00000000..fcf70cfb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta new file mode 100644 index 00000000..c703cb24 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 24d79d661acf61e44918320624b49dd5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs new file mode 100644 index 00000000..2ed84c15 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta new file mode 100644 index 00000000..695ec19d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fd83617024d6bff44824a83b472db8e6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta new file mode 100644 index 00000000..ef52383d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: f029d04458be91f4d9b9bec1c9ccfde7 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs new file mode 100644 index 00000000..fb82128e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics +{ + [TaskCategory("Basic/Physics")] + [TaskDescription("Returns success if there is any collider intersecting the line between start and end")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=117")] + public class Linecast : Action + { + [Tooltip("The starting position of the linecast")] + SharedVector3 startPosition; + [Tooltip("The ending position of the linecast")] + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta new file mode 100644 index 00000000..c380726f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 163f5567b8906cd45adf138c3c022152 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs new file mode 100644 index 00000000..d79c9ae9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs @@ -0,0 +1,71 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics +{ + [TaskCategory("Basic/Physics")] + [TaskDescription("Casts a ray against all colliders in the scene. Returns success if a collider was hit.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=117")] + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta new file mode 100644 index 00000000..b5f5d6d9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: afcf9d39edef45146ad7a043b8bfa76e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs new file mode 100644 index 00000000..da1c646e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs @@ -0,0 +1,74 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics +{ + [TaskCategory("Basic/Physics")] + [TaskDescription("Casts a sphere against all colliders in the scene. Returns success if a collider was hit.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=117")] + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta new file mode 100644 index 00000000..24ed1701 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2058f3f94c5bdf5409f9ff80ea61d44a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta new file mode 100644 index 00000000..001ba091 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 056a8d0f58dcb4749949548a468e90c0 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs new file mode 100644 index 00000000..516abc72 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs @@ -0,0 +1,73 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics2D +{ + [TaskCategory("Basic/Physics2D")] + [TaskDescription("Casts a circle against all colliders in the scene. Returns success if a collider was hit.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=118")] + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta new file mode 100644 index 00000000..541b96a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6989aa8730764ee459a07f88d84302e0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs new file mode 100644 index 00000000..914b6fee --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics2D +{ + [TaskCategory("Basic/Physics2D")] + [TaskDescription("Returns success if there is any collider intersecting the line between start and end")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=118")] + public class Linecast : Action + { + [Tooltip("The starting position of the linecast.")] + SharedVector2 startPosition; + [Tooltip("The ending position of the linecast.")] + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta new file mode 100644 index 00000000..6aa9170f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a402dbfe872764f49b3a03d7048e866e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs new file mode 100644 index 00000000..2bc51b80 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs @@ -0,0 +1,72 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics2D +{ + [TaskCategory("Basic/Physics2D")] + [TaskDescription("Casts a ray against all colliders in the scene. Returns success if a collider was hit.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=118")] + 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; +#if !UNITY_4_3 + storeHitDistance.Value = hit.distance; +#endif + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta new file mode 100644 index 00000000..f2f98446 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 513dc641bb68bcc4d9c3bdfb1ccc57b6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta new file mode 100644 index 00000000..f2ebde67 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: ae97053a4ac34f74d8edc5c635b28bda +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs new file mode 100644 index 00000000..0562303f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta new file mode 100644 index 00000000..707b849e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0c6d6b2dabc08ac42875cdbe1f86642b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs new file mode 100644 index 00000000..8fc4c352 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta new file mode 100644 index 00000000..4f322aea --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ed24098bd046f724e90474d47e1677d3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs new file mode 100644 index 00000000..839980b5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta new file mode 100644 index 00000000..1252e252 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 14752e1987d17d546838a32459045c67 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs new file mode 100644 index 00000000..3dca7702 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta new file mode 100644 index 00000000..6e1a400d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 66c5c9cfd0fb52344875db0cefc5d6f8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs new file mode 100644 index 00000000..a3d98a97 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta new file mode 100644 index 00000000..155d968b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 418066da4d19f1742a6435c0ee7aa01b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs new file mode 100644 index 00000000..2983fc05 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta new file mode 100644 index 00000000..49883dfe --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3b16fab74ec9f364f911696814716ca2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs new file mode 100644 index 00000000..627fe81a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta new file mode 100644 index 00000000..a03bd8c4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 898765f1bc90e154e9cab895a814221e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs new file mode 100644 index 00000000..69b578ca --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta new file mode 100644 index 00000000..87a00ef2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 88feec854545b9b428ed714fbebe872f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs new file mode 100644 index 00000000..3e41760f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta new file mode 100644 index 00000000..c9920342 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ad23859aa9f9e68468891ba9600b9828 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs new file mode 100644 index 00000000..69426c56 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta new file mode 100644 index 00000000..bb989dbd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 923ae6162a2661e47be9af80a19e48b6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta new file mode 100644 index 00000000..8e62c708 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: fdfca1ec6223a5644919a38e092a933c +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs new file mode 100644 index 00000000..a6e485ef --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta new file mode 100644 index 00000000..0aa20992 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0d316a25dcddd6f4a981df05a1eeaf7c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs new file mode 100644 index 00000000..4c6eecf9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta new file mode 100644 index 00000000..99c4ba7b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 82152b844829f8f43ab44f35bf7d786f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs new file mode 100644 index 00000000..d00fa95b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta new file mode 100644 index 00000000..40a00107 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fa9235523569d574aa7d22ce89423eca +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs new file mode 100644 index 00000000..e9930832 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta new file mode 100644 index 00000000..048cc76c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b4d275b4450a324409ace385a718d9ee +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs new file mode 100644 index 00000000..5e68b434 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta new file mode 100644 index 00000000..d5836cfa --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 56740b2c218d500408dd75c6c15006ec +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs new file mode 100644 index 00000000..5c8c104a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta new file mode 100644 index 00000000..e8968d73 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f4eefb6e25898904688a422ca79d763c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs new file mode 100644 index 00000000..e0085ded --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta new file mode 100644 index 00000000..e255f8bf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ab8f5048bc0e5ce409bf3408c60bc3eb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs new file mode 100644 index 00000000..faea9019 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta new file mode 100644 index 00000000..4711a2b8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fb19d83a245337542a5c0f02593e8dab +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs new file mode 100644 index 00000000..8e8bf5ab --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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; + [Tooltip("The stored quaternion")] + [RequiredField] + public SharedQuaternion storeResult; + + public override TaskStatus OnUpdate() + { + storeResult.Value = Quaternion.LookRotation(forwardVector.Value); + return TaskStatus.Success; + } + + public override void OnReset() + { + forwardVector = Vector3.zero; + storeResult = Quaternion.identity; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta new file mode 100644 index 00000000..b58cb08b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e006fb91f87854448b9bd6cb1d20b2f1 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs new file mode 100644 index 00000000..77975891 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta new file mode 100644 index 00000000..4a037c77 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b5e043a106ab4784aab997fa0e27f972 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs new file mode 100644 index 00000000..88cac7e6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta new file mode 100644 index 00000000..6e1d7577 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b36eacb0f1a46624193a622ef50979ff +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta new file mode 100644 index 00000000..700baf06 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: b7bee06bd6fde844784243b656f96db8 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs new file mode 100644 index 00000000..b0e6df91 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRenderer +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta new file mode 100644 index 00000000..da61b0d5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3b6ba7f7e8884c14c9ef4a74b50b0a8e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs new file mode 100644 index 00000000..e6ebbb37 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRenderer +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta new file mode 100644 index 00000000..b77ae7d1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bf71e4b9292cad342877356107f76d39 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta new file mode 100644 index 00000000..fdb14dec --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: f560fb42f946dcb4a819c0cca91d9c9d +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs new file mode 100644 index 00000000..2d313eb4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs @@ -0,0 +1,57 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta new file mode 100644 index 00000000..46e4e7f6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ccb592e850d4c734995a2a1c3f930b62 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs new file mode 100644 index 00000000..9e7ff1a9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [RequiredComponent(typeof(Rigidbody))] + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta new file mode 100644 index 00000000..2ff832db --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5748d4214b99b8c49ba67902a8495a30 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs new file mode 100644 index 00000000..c76f34c1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta new file mode 100644 index 00000000..e299a9ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c3938bcd4e88b45419aa86adee51a2c2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs new file mode 100644 index 00000000..57e1a9d2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta new file mode 100644 index 00000000..be56eac2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1de05a2b6197b2d4b9da1c36bf382649 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs new file mode 100644 index 00000000..ec901665 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs @@ -0,0 +1,43 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta new file mode 100644 index 00000000..3bba15eb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 71136c1193309b24c93d450b5f2e47be +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs new file mode 100644 index 00000000..35282d09 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta new file mode 100644 index 00000000..4e6e47c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 88c726c1cb324e6429637f55d36c3d01 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs new file mode 100644 index 00000000..9aed491c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta new file mode 100644 index 00000000..f82dda03 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5fb34b334a02db64db2d6a2fb2448be5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs new file mode 100644 index 00000000..556f52e1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta new file mode 100644 index 00000000..c4f98927 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 492dc3a13d07ed149bcd19d36e2f7ee7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs new file mode 100644 index 00000000..59c7429c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta new file mode 100644 index 00000000..8c175632 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b993020e1d60f5242a7e3618501f871e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs new file mode 100644 index 00000000..423e79b0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta new file mode 100644 index 00000000..ab90b18b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 69bd087f6899c604f82441b108ead2a8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs new file mode 100644 index 00000000..0a26f2c1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta new file mode 100644 index 00000000..dad7aad7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 889065cfad95df04a802761fcccb8359 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs new file mode 100644 index 00000000..ee981ed7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta new file mode 100644 index 00000000..0bef7e35 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a531151d14b8a9640be8d499d9db4538 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs new file mode 100644 index 00000000..62d0138b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta new file mode 100644 index 00000000..71b86955 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2638ca749ba5a404f84fd72811b16c81 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs new file mode 100644 index 00000000..9f4dc201 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta new file mode 100644 index 00000000..732ae424 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 25f9090c180831b4daaa1a24894681ac +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs new file mode 100644 index 00000000..53d4101f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta new file mode 100644 index 00000000..539000a1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 937400bc82220b543aa9b3074f17f4d6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs new file mode 100644 index 00000000..dc20ef51 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta new file mode 100644 index 00000000..ab211284 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1d7358afc7810ca4aa2ae8a2cd4b9e6e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs new file mode 100644 index 00000000..de66c4ad --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta new file mode 100644 index 00000000..62f5920f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c18365eb6865164ebb5b0057dcc6bb4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs new file mode 100644 index 00000000..1144ea46 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta new file mode 100644 index 00000000..ec59f524 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 30be28b36412643418c2e61640147eac +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs new file mode 100644 index 00000000..1252e643 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta new file mode 100644 index 00000000..c0c0a203 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 37e8153613f519240a11c3f6583d1030 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs new file mode 100644 index 00000000..81ac9191 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta new file mode 100644 index 00000000..75fc531c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 87176662744aee049b8af51b01bcb526 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs new file mode 100644 index 00000000..9133cb77 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta new file mode 100644 index 00000000..65a02522 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f1ba2e66d5ca98a4ba4020b4eff4da6e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs new file mode 100644 index 00000000..c08194d2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta new file mode 100644 index 00000000..bfa75a99 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2883595af7ee1c649ae45353482beed8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs new file mode 100644 index 00000000..78f35260 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta new file mode 100644 index 00000000..1c2b78f9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8652396368a6dad4eb6e1259e680595c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs new file mode 100644 index 00000000..f57cb25a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta new file mode 100644 index 00000000..3a229ffb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 594f2d37fbfc0d545a0377cf63543f41 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs new file mode 100644 index 00000000..0b174602 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta new file mode 100644 index 00000000..8affb848 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dd098240974b0184ca8c66cb6e450753 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs new file mode 100644 index 00000000..e755cf6e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta new file mode 100644 index 00000000..370e0d8b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8984a684f33e6644abbb9cfe6c9068d9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs new file mode 100644 index 00000000..9b6342ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta new file mode 100644 index 00000000..67fd3cac --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4160755a1f5174546b6ccbabff469187 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs new file mode 100644 index 00000000..49ead821 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta new file mode 100644 index 00000000..78a73857 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6d93194d82815024cadf3f4f842666d0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs new file mode 100644 index 00000000..48c1da8f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta new file mode 100644 index 00000000..b1ab1a4e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 82f7a92bee3553d49bbb1ebabfaffc12 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs new file mode 100644 index 00000000..86b564a5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta new file mode 100644 index 00000000..62b9cac0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8a33b86eb94a87c449e1f3344973cc50 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs new file mode 100644 index 00000000..ffa231a8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta new file mode 100644 index 00000000..cf104f74 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c5ac2e84278f4a845ba47d1e4469e869 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs new file mode 100644 index 00000000..a95330a5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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 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.useGravity = isKinematic.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + isKinematic = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta new file mode 100644 index 00000000..8e3be08a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 19548f438ad1c684180d41713cbdeb76 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs new file mode 100644 index 00000000..e488ebc5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta new file mode 100644 index 00000000..c1756a01 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e3fc3ca798c87644a42b1c930fff3f0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs new file mode 100644 index 00000000..796f7f29 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs @@ -0,0 +1,42 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta new file mode 100644 index 00000000..dc6ae392 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1683ca7168c4ce74db4396c4d3cb65ce +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs new file mode 100644 index 00000000..1cdcb762 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta new file mode 100644 index 00000000..446f7f0d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a0d11b67c4ae058469e7f7b00db7103f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs new file mode 100644 index 00000000..fcb4fe74 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs @@ -0,0 +1,42 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta new file mode 100644 index 00000000..d65620b9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d4314af88b4d86046bdac1f10f6f9a47 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta new file mode 100644 index 00000000..9c0f800c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 842427c186c2e5941b1b02873f6480e3 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs new file mode 100644 index 00000000..bc084e41 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Applies a force to the Rigidbody2D. Returns Success.")] + public class AddForce : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The amount of force to apply")] + public SharedVector2 force; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.AddForce(force.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + force = Vector2.zero; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta new file mode 100644 index 00000000..3f52d151 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9ea79154ee01cf441a9744c877542a1f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs new file mode 100644 index 00000000..c1a187c6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Applies a force at the specified position to the Rigidbody2D. Returns Success.")] + public class AddForceAtPosition : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The amount of force to apply")] + public SharedVector2 force; + [Tooltip("The position of the force")] + public SharedVector2 position; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.AddForceAtPosition(force.Value, position.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + force = Vector2.zero; + position = Vector2.zero; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta new file mode 100644 index 00000000..e1edb20c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dd82f0f77306bad46bae7944a5c66664 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs new file mode 100644 index 00000000..9f065e34 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Applies a torque to the Rigidbody2D. Returns Success.")] + public class AddTorque : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The amount of torque to apply")] + public SharedFloat torque; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.AddTorque(torque.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + torque = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta new file mode 100644 index 00000000..d79e4975 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cc561d806d4518044becff628e148424 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs new file mode 100644 index 00000000..17080d53 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the angular drag of the Rigidbody2D. Returns Success.")] + public class GetAngularDrag : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The angular drag of the Rigidbody2D")] + [RequiredField] + public SharedFloat storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.angularDrag; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta new file mode 100644 index 00000000..4aefa782 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 10833270578d69041b561c5126bb31f2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs new file mode 100644 index 00000000..17be28db --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the angular velocity of the Rigidbody2D. Returns Success.")] + public class GetAngularVelocity : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The angular velocity of the Rigidbody2D")] + [RequiredField] + public SharedFloat storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.angularVelocity; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta new file mode 100644 index 00000000..15cae45b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 68ac62a9384c11245a850220f1bc72b8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs new file mode 100644 index 00000000..b01bf9a2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the drag of the Rigidbody2D. Returns Success.")] + public class GetDrag : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The drag of the Rigidbody2D")] + [RequiredField] + public SharedFloat storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.drag; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta new file mode 100644 index 00000000..872fb557 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6e39198e5d65d514185f2816cced7c7b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs new file mode 100644 index 00000000..9b1ef3a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the gravity scale of the Rigidbody2D. Returns Success.")] + public class GetGravityScale : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The gravity scale of the Rigidbody2D")] + [RequiredField] + public SharedFloat storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.gravityScale; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta new file mode 100644 index 00000000..ee205b51 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e2d17fb9baea6554082f2edc46483e8c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs new file mode 100644 index 00000000..94221a04 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the is kinematic value of the Rigidbody2D. Returns Success.")] + public class GetIsKinematic : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The is kinematic value of the Rigidbody2D")] + [RequiredField] + public SharedBool storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.isKinematic; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = false; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta new file mode 100644 index 00000000..10f9161a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 66c6175d42bd49e48be458378e0a7875 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs new file mode 100644 index 00000000..245f2b9e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the mass of the Rigidbody2D. Returns Success.")] + public class GetMass : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The mass of the Rigidbody2D")] + [RequiredField] + public SharedFloat storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.mass; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta new file mode 100644 index 00000000..d9588541 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 72d52ef5efe5e974994c91279536555e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs new file mode 100644 index 00000000..b22333ad --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the position of the Rigidbody2D. Returns Success.")] + public class GetPosition : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The velocity of the Rigidbody2D")] + [RequiredField] + public SharedVector2 storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.position; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta new file mode 100644 index 00000000..00083e0e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 98dff23734f3a834cbf5ccf87c9904f7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs new file mode 100644 index 00000000..061646e0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the rotation of the Rigidbody2D. Returns Success.")] + public class GetRotation : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The rotation of the Rigidbody2D")] + [RequiredField] + public SharedFloat storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.rotation; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta new file mode 100644 index 00000000..6be4219c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a7d82ab7ef780f34cb5df06366b0bdbf +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs new file mode 100644 index 00000000..bbba8a51 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Stores the velocity of the Rigidbody2D. Returns Success.")] + public class GetVelocity : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The velocity of the Rigidbody2D")] + [RequiredField] + public SharedVector2 storeValue; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + storeValue.Value = rigidbody2D.velocity; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + storeValue = Vector2.zero; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta new file mode 100644 index 00000000..d92cc9fd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 13009f7b6ee1bc04884442484a065cc3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs new file mode 100644 index 00000000..9bccbaef --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Returns Success if the Rigidbody2D is kinematic, otherwise Failure.")] + public class IsKinematic : Conditional + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + return rigidbody2D.isKinematic ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + targetGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta new file mode 100644 index 00000000..edf168f7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 47d2e6e60a2251c41a2c548dc9a8c922 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs new file mode 100644 index 00000000..d010d1cc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Returns Success if the Rigidbody2D is sleeping, otherwise Failure.")] + public class IsSleeping : Conditional + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + return rigidbody2D.IsSleeping() ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + targetGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta new file mode 100644 index 00000000..3b38a447 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 52859810158277a4a917e70a834a82a5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs new file mode 100644 index 00000000..5ce7edbc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Moves the Rigidbody2D to the specified position. Returns Success.")] + public class MovePosition : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The new position of the Rigidbody")] + public SharedVector2 position; + + // cache the rigidbody component + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody is null"); + return TaskStatus.Failure; + } + + rigidbody2D.MovePosition(position.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + position = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta new file mode 100644 index 00000000..79762af7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e72fab171287194ea2d8eb2aa239cd4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs new file mode 100644 index 00000000..e0b221a0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Rotates the Rigidbody2D to the specified rotation. Returns Success.")] + public class MoveRotation : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The new rotation of the Rigidbody")] + public SharedFloat rotation; + + // cache the rigidbody component + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody is null"); + return TaskStatus.Failure; + } + + rigidbody2D.MoveRotation(rotation.Value); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + rotation = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta new file mode 100644 index 00000000..09bb16a9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 38b0095c420511f4b9ed263b1b5c6054 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs new file mode 100644 index 00000000..3bb17e07 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the angular drag of the Rigidbody2D. Returns Success.")] + public class SetAngularDrag : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The angular drag of the Rigidbody2D")] + public SharedFloat angularDrag; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.angularDrag = angularDrag.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + angularDrag = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta new file mode 100644 index 00000000..1ec92fe3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1717a737318274e4caa244f86c908851 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs new file mode 100644 index 00000000..9fc45f3d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the angular velocity of the Rigidbody2D. Returns Success.")] + public class SetAngularVelocity : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The angular velocity of the Rigidbody2D")] + public SharedFloat angularVelocity; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.angularVelocity = angularVelocity.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + angularVelocity = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta new file mode 100644 index 00000000..a559685e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c73dfb332d90cbe4280c21fafa59e2fa +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs new file mode 100644 index 00000000..1530cc07 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the drag of the Rigidbody2D. Returns Success.")] + public class SetDrag : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The drag of the Rigidbody2D")] + public SharedFloat drag; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.drag = drag.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + drag = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta new file mode 100644 index 00000000..96d06ce2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3148efd94c23d634a9f02cc9c808de80 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs new file mode 100644 index 00000000..a6ce28a4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the gravity scale of the Rigidbody2D. Returns Success.")] + public class SetGravityScale : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The gravity scale of the Rigidbody2D")] + public SharedFloat gravityScale; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.gravityScale = gravityScale.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + gravityScale = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta new file mode 100644 index 00000000..516e6ac5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ac896135858701649bcaffc7ef00637f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs new file mode 100644 index 00000000..c8e2563e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the is kinematic value of the Rigidbody2D. Returns Success.")] + public class SetIsKinematic : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The is kinematic value of the Rigidbody2D")] + public SharedBool isKinematic; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.isKinematic = isKinematic.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + isKinematic = false; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta new file mode 100644 index 00000000..ff7f5f2c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b7c96d64d821e304a8c67c031565d902 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs new file mode 100644 index 00000000..c218e087 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the mass of the Rigidbody2D. Returns Success.")] + public class SetMass : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The mass of the Rigidbody2D")] + public SharedFloat mass; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.mass = mass.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + mass = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta new file mode 100644 index 00000000..042c36e0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: facbfd14ece02214889d587f06215105 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs new file mode 100644 index 00000000..7f1f782a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Sets the velocity of the Rigidbody2D. Returns Success.")] + public class SetVelocity : Action + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + [Tooltip("The velocity of the Rigidbody2D")] + public SharedVector2 velocity; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.velocity = velocity.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + velocity = Vector2.zero; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta new file mode 100644 index 00000000..a78bc24c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5830960da4f9a3148ba5d8cd87228748 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs new file mode 100644 index 00000000..9357826c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Forces the Rigidbody2D to sleep at least one frame. Returns Success.")] + public class Sleep : Conditional + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.Sleep(); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta new file mode 100644 index 00000000..9e50b4e1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7e24fd00ca72fda48a132dc9bfa71070 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs new file mode 100644 index 00000000..66a3318d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D +{ + [TaskCategory("Basic/Rigidbody2D")] + [TaskDescription("Forces the Rigidbody2D to wake up. Returns Success.")] + public class WakeUp : Conditional + { + [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] + public SharedGameObject targetGameObject; + + private Rigidbody2D rigidbody2D; + private GameObject prevGameObject; + + public override void OnStart() + { + var currentGameObject = GetDefaultGameObject(targetGameObject.Value); + if (currentGameObject != prevGameObject) { + rigidbody2D = currentGameObject.GetComponent(); + prevGameObject = currentGameObject; + } + } + + public override TaskStatus OnUpdate() + { + if (rigidbody2D == null) { + Debug.LogWarning("Rigidbody2D is null"); + return TaskStatus.Failure; + } + + rigidbody2D.WakeUp(); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta new file mode 100644 index 00000000..ce6821bb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 954f1f9c196c39345b2fd389516ad613 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta new file mode 100644 index 00000000..d9527db4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 1ca8022ad636ccc4ab940c05d58dfd6b +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs new file mode 100644 index 00000000..73fd634c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs @@ -0,0 +1,23 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedBool : Conditional + { + [Tooltip("The first variable to compare")] + public SharedBool variable; + [Tooltip("The variable to compare to")] + public SharedBool compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = false; + compareTo = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta new file mode 100644 index 00000000..1e856966 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ba0766a97c2e5c94fbc49d8cb1dea8e3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs new file mode 100644 index 00000000..58e23442 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedColor : Conditional + { + [Tooltip("The first variable to compare")] + public SharedColor variable; + [Tooltip("The variable to compare to")] + public SharedColor compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = Color.black; + compareTo = Color.black; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta new file mode 100644 index 00000000..2a8f288a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c9e83747d98bd064b9a5ad62b36d7657 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs new file mode 100644 index 00000000..967ad9d6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs @@ -0,0 +1,23 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedFloat : Conditional + { + [Tooltip("The first variable to compare")] + public SharedFloat variable; + [Tooltip("The variable to compare to")] + public SharedFloat compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = 0; + compareTo = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta new file mode 100644 index 00000000..42430338 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6925a99e92b6d804db1f4b607e7501d3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs new file mode 100644 index 00000000..fda37a7e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedGameObject : Conditional + { + [Tooltip("The first variable to compare")] + public SharedGameObject variable; + [Tooltip("The variable to compare to")] + public SharedGameObject compareTo; + + public override TaskStatus OnUpdate() + { + if (variable.Value == null && compareTo.Value != null) + return TaskStatus.Failure; + if (variable.Value == null && compareTo.Value == null) + return TaskStatus.Success; + + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = null; + compareTo = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta new file mode 100644 index 00000000..b0e3b516 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: daa5c3b8a325bcd4bb3da10a6715f6d0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs new file mode 100644 index 00000000..97af31c9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs @@ -0,0 +1,35 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedGameObjectList : Conditional + { + [Tooltip("The first variable to compare")] + public SharedGameObjectList variable; + [Tooltip("The variable to compare to")] + public SharedGameObjectList compareTo; + + public override TaskStatus OnUpdate() + { + if (variable.Value == null && compareTo.Value != null) + return TaskStatus.Failure; + if (variable.Value == null && compareTo.Value == null) + return TaskStatus.Success; + if (variable.Value.Count != compareTo.Value.Count) + return TaskStatus.Failure; + + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta new file mode 100644 index 00000000..6db560f6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a2b81932d36a0be4fba0868f7ed3e53c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs new file mode 100644 index 00000000..7183e8e6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs @@ -0,0 +1,23 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedInt : Conditional + { + [Tooltip("The first variable to compare")] + public SharedInt variable; + [Tooltip("The variable to compare to")] + public SharedInt compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = 0; + compareTo = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta new file mode 100644 index 00000000..0ea01290 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 40307a4117777b4479a1402fd67811ff +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs new file mode 100644 index 00000000..b53daf88 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedObject : Conditional + { + [Tooltip("The first variable to compare")] + public SharedObject variable; + [Tooltip("The variable to compare to")] + public SharedObject compareTo; + + public override TaskStatus OnUpdate() + { + if (variable.Value == null && compareTo.Value != null) + return TaskStatus.Failure; + if (variable.Value == null && compareTo.Value == null) + return TaskStatus.Success; + + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = null; + compareTo = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta new file mode 100644 index 00000000..08e55c50 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 66a9105498519ae4082d9ac7adcf5da4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs new file mode 100644 index 00000000..e15644c9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs @@ -0,0 +1,35 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedObjectList : Conditional + { + [Tooltip("The first variable to compare")] + public SharedObjectList variable; + [Tooltip("The variable to compare to")] + public SharedObjectList compareTo; + + public override TaskStatus OnUpdate() + { + if (variable.Value == null && compareTo.Value != null) + return TaskStatus.Failure; + if (variable.Value == null && compareTo.Value == null) + return TaskStatus.Success; + if (variable.Value.Count != compareTo.Value.Count) + return TaskStatus.Failure; + + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta new file mode 100644 index 00000000..0183b3f4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ac4cab9acc737904885d379388e83950 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs new file mode 100644 index 00000000..9a17ec10 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedQuaternion : Conditional + { + [Tooltip("The first variable to compare")] + public SharedQuaternion variable; + [Tooltip("The variable to compare to")] + public SharedQuaternion compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = Quaternion.identity; + compareTo = Quaternion.identity; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta new file mode 100644 index 00000000..a5b7ad50 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 101b2ac215bf58149ab91be3b55d5145 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs new file mode 100644 index 00000000..ccbe413b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedRect : Conditional + { + [Tooltip("The first variable to compare")] + public SharedRect variable; + [Tooltip("The variable to compare to")] + public SharedRect compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = new Rect(); + compareTo = new Rect(); + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta new file mode 100644 index 00000000..975e83ed --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d73d97622bbe61d4c91f9b4cacb3e0c2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs new file mode 100644 index 00000000..f6306a0f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs @@ -0,0 +1,23 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedString : Conditional + { + [Tooltip("The first variable to compare")] + public SharedString variable; + [Tooltip("The variable to compare to")] + public SharedString compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = ""; + compareTo = ""; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta new file mode 100644 index 00000000..19000027 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8b1a3248c84732345914404e47a55fcc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs new file mode 100644 index 00000000..34c35cf2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs @@ -0,0 +1,30 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedTransform : Conditional + { + [Tooltip("The first variable to compare")] + public SharedTransform variable; + [Tooltip("The variable to compare to")] + public SharedTransform compareTo; + + public override TaskStatus OnUpdate() + { + if (variable.Value == null && compareTo.Value != null) + return TaskStatus.Failure; + if (variable.Value == null && compareTo.Value == null) + return TaskStatus.Success; + + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = null; + compareTo = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta new file mode 100644 index 00000000..ecaf052e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a21f70566ff2afc4e95454d3d658c1fa +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs new file mode 100644 index 00000000..9091d0a1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs @@ -0,0 +1,35 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedTransformList : Conditional + { + [Tooltip("The first variable to compare")] + public SharedTransformList variable; + [Tooltip("The variable to compare to")] + public SharedTransformList compareTo; + + public override TaskStatus OnUpdate() + { + if (variable.Value == null && compareTo.Value != null) + return TaskStatus.Failure; + if (variable.Value == null && compareTo.Value == null) + return TaskStatus.Success; + if (variable.Value.Count != compareTo.Value.Count) + return TaskStatus.Failure; + + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta new file mode 100644 index 00000000..fb7a667a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8ea22243f4fc22946a0033142f3a2380 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs new file mode 100644 index 00000000..c419b558 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedVector2 : Conditional + { + [Tooltip("The first variable to compare")] + public SharedVector2 variable; + [Tooltip("The variable to compare to")] + public SharedVector2 compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = Vector2.zero; + compareTo = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta new file mode 100644 index 00000000..1952f213 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ce90fa6ac7a64b044936fa647e5f0e80 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs new file mode 100644 index 00000000..03c89378 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedVector3 : Conditional + { + [Tooltip("The first variable to compare")] + public SharedVector3 variable; + [Tooltip("The variable to compare to")] + public SharedVector3 compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = Vector3.zero; + compareTo = Vector3.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta new file mode 100644 index 00000000..b9ea65fc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 617192db87511d844940d400c960d13d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs new file mode 100644 index 00000000..e502fe99 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Returns success if the variable value is equal to the compareTo value.")] + public class CompareSharedVector4 : Conditional + { + [Tooltip("The first variable to compare")] + public SharedVector4 variable; + [Tooltip("The variable to compare to")] + public SharedVector4 compareTo; + + public override TaskStatus OnUpdate() + { + return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure; + } + + public override void OnReset() + { + variable = Vector4.zero; + compareTo = Vector4.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta new file mode 100644 index 00000000..119336b2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9738be23ad39d2c4ba8adc018b545ece +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs new file mode 100644 index 00000000..1043c0fa --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedBool variable to the specified object. Returns Success.")] + public class SetSharedBool : Action + { + [Tooltip("The value to set the SharedBool to")] + public SharedBool targetValue; + [RequiredField] + [Tooltip("The SharedBool to set")] + public SharedBool targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = false; + targetVariable = false; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta new file mode 100644 index 00000000..251b180c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 54f63c79d78692a4e84e502f7cd705a6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs new file mode 100644 index 00000000..120bdb1a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedColor variable to the specified object. Returns Success.")] + public class SetSharedColor : Action + { + [Tooltip("The value to set the SharedColor to")] + public SharedColor targetValue; + [RequiredField] + [Tooltip("The SharedColor to set")] + public SharedColor targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = Color.black; + targetVariable = Color.black; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta new file mode 100644 index 00000000..7132dddb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 48c49264be0e7244ba46b8c970027a20 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs new file mode 100644 index 00000000..d065be9f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedFloat variable to the specified object. Returns Success.")] + public class SetSharedFloat : Action + { + [Tooltip("The value to set the SharedFloat to")] + public SharedFloat targetValue; + [RequiredField] + [Tooltip("The SharedFloat to set")] + public SharedFloat targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = 0; + targetVariable = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta new file mode 100644 index 00000000..5f1588ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4d5b15c88fb154446b9b1ad90cb3987f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs new file mode 100644 index 00000000..ac7f7540 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs @@ -0,0 +1,29 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedGameObject variable to the specified object. Returns Success.")] + public class SetSharedGameObject : Action + { + [Tooltip("The value to set the SharedGameObject to. If null the variable will be set to the current GameObject")] + public SharedGameObject targetValue; + [RequiredField] + [Tooltip("The SharedGameObject to set")] + public SharedGameObject targetVariable; + [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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta new file mode 100644 index 00000000..859f7776 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bf4af224a0ebd5946bc4f01f18d0627b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs new file mode 100644 index 00000000..fb3a5efe --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedGameObjectList variable to the specified object. Returns Success.")] + public class SetSharedGameObjectList : Action + { + [Tooltip("The value to set the SharedGameObjectList to.")] + public SharedGameObjectList targetValue; + [RequiredField] + [Tooltip("The SharedGameObjectList to set")] + public SharedGameObjectList targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = null; + targetVariable = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta new file mode 100644 index 00000000..f5b14ddc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b02b163c1dc1b894ca53f80378e39b26 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs new file mode 100644 index 00000000..ae27d8b8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedInt variable to the specified object. Returns Success.")] + public class SetSharedInt : Action + { + [Tooltip("The value to set the SharedInt to")] + public SharedInt targetValue; + [RequiredField] + [Tooltip("The SharedInt to set")] + public SharedInt targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = 0; + targetVariable = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta new file mode 100644 index 00000000..279e8dba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 742d2b1426f291e45b03bcf845c53a67 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs new file mode 100644 index 00000000..5e0a39a8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedObject variable to the specified object. Returns Success.")] + public class SetSharedObject : Action + { + [Tooltip("The value to set the SharedObject to")] + public SharedObject targetValue; + [RequiredField] + [Tooltip("The SharedTransform to set")] + public SharedObject targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = null; + targetVariable = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta new file mode 100644 index 00000000..f779b22c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f80da138a03cfdd4e98af96ed5f6681b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs new file mode 100644 index 00000000..463cd0bb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedObjectList variable to the specified object. Returns Success.")] + public class SetSharedObjectList : Action + { + [Tooltip("The value to set the SharedObjectList to.")] + public SharedObjectList targetValue; + [RequiredField] + [Tooltip("The SharedObjectList to set")] + public SharedObjectList targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = null; + targetVariable = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta new file mode 100644 index 00000000..0a74168d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b5c211b64a2cf364e99b99dab3ce3c87 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs new file mode 100644 index 00000000..7f4e95da --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs @@ -0,0 +1,27 @@ +using UnityEngine; +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedQuaternion variable to the specified object. Returns Success.")] + public class SetSharedQuaternion : Action + { + [Tooltip("The value to set the SharedQuaternion to")] + public SharedQuaternion targetValue; + [RequiredField] + [Tooltip("The SharedQuaternion to set")] + public SharedQuaternion targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = Quaternion.identity; + targetVariable = Quaternion.identity; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta new file mode 100644 index 00000000..c5975461 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 42f84705fc5571e4088098d1239b5f46 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs new file mode 100644 index 00000000..bcef0665 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedRect variable to the specified object. Returns Success.")] + public class SetSharedRect : Action + { + [Tooltip("The value to set the SharedRect to")] + public SharedRect targetValue; + [RequiredField] + [Tooltip("The SharedRect to set")] + public SharedRect targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = new Rect(); + targetVariable = new Rect(); + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta new file mode 100644 index 00000000..97568cdc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7313c7640a9d92b4294a7702b3c5339b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs new file mode 100644 index 00000000..d95ce9d8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedString variable to the specified object. Returns Success.")] + public class SetSharedString : Action + { + [Tooltip("The value to set the SharedString to")] + public SharedString targetValue; + [RequiredField] + [Tooltip("The SharedString to set")] + public SharedString targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = ""; + targetVariable = ""; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta new file mode 100644 index 00000000..c36a773e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 92060068b2f07c54f930e1b8a8976c11 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs new file mode 100644 index 00000000..43f66caf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedTransform variable to the specified object. Returns Success.")] + public class SetSharedTransform : Action + { + [Tooltip("The value to set the SharedTransform to. If null the variable will be set to the current Transform")] + public SharedTransform targetValue; + [RequiredField] + [Tooltip("The SharedTransform to set")] + public SharedTransform targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = (targetValue.Value != null ? targetValue.Value : transform); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = null; + targetVariable = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta new file mode 100644 index 00000000..dee1b887 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 78e7da45e8b6c2e4cbbf4fdf474070e5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs new file mode 100644 index 00000000..f7edfd0d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedTransformList variable to the specified object. Returns Success.")] + public class SetSharedTransformList : Action + { + [Tooltip("The value to set the SharedTransformList to.")] + public SharedTransformList targetValue; + [RequiredField] + [Tooltip("The SharedTransformList to set")] + public SharedTransformList targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = null; + targetVariable = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta new file mode 100644 index 00000000..11b0bb2a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fae9cd59e50283949a2cc8ec460ffafe +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs new file mode 100644 index 00000000..6c086a23 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedVector2 variable to the specified object. Returns Success.")] + public class SetSharedVector2 : Action + { + [Tooltip("The value to set the SharedVector2 to")] + public SharedVector2 targetValue; + [RequiredField] + [Tooltip("The SharedVector2 to set")] + public SharedVector2 targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = Vector2.zero; + targetVariable = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta new file mode 100644 index 00000000..b9b672f9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c70cf248c723950409d74c11d0781c06 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs new file mode 100644 index 00000000..ef2ae959 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedVector3 variable to the specified object. Returns Success.")] + public class SetSharedVector3 : Action + { + [Tooltip("The value to set the SharedVector3 to")] + public SharedVector3 targetValue; + [RequiredField] + [Tooltip("The SharedVector3 to set")] + public SharedVector3 targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = Vector3.zero; + targetVariable = Vector3.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta new file mode 100644 index 00000000..6b80394d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 281820e8b30038d48b4fa8f25728e6c3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs new file mode 100644 index 00000000..a9a97753 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedVector4 variable to the specified object. Returns Success.")] + public class SetSharedVector4 : Action + { + [Tooltip("The value to set the SharedVector4 to")] + public SharedVector4 targetValue; + [RequiredField] + [Tooltip("The SharedVector4 to set")] + public SharedVector4 targetVariable; + + public override TaskStatus OnUpdate() + { + targetVariable.Value = targetValue.Value; + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetValue = Vector4.zero; + targetVariable = Vector4.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta new file mode 100644 index 00000000..501d083c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5ca30d99da0685a4fa32d79624a5c0a0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs new file mode 100644 index 00000000..e24d8835 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs @@ -0,0 +1,32 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Gets the Transform from the GameObject. Returns Success.")] + public class SharedGameObjectToTransform : Action + { + [Tooltip("The GameObject to get the Transform of")] + public SharedGameObject sharedGameObject; + [RequiredField] + [Tooltip("The Transform to set")] + public SharedTransform sharedTransform; + + public override TaskStatus OnUpdate() + { + if (sharedGameObject.Value == null) { + return TaskStatus.Failure; + } + + sharedTransform.Value = sharedGameObject.Value.GetComponent(); + + return TaskStatus.Success; + } + + public override void OnReset() + { + sharedGameObject = null; + sharedTransform = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta new file mode 100644 index 00000000..58b9caa8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c08dcd1e915bef6448649ffe4d3bef3d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs new file mode 100644 index 00000000..5849ac45 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs @@ -0,0 +1,41 @@ +using UnityEngine; +using System.Collections.Generic; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedGameObjectList values from the GameObjects. Returns Success.")] + public class SharedGameObjectsToGameObjectList : Action + { + [Tooltip("The GameObjects value")] + public SharedGameObject[] gameObjects; + [RequiredField] + [Tooltip("The SharedTransformList to set")] + public SharedGameObjectList storedGameObjectList; + + public override void OnAwake() + { + storedGameObjectList.Value = new List(); + } + + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta new file mode 100644 index 00000000..4d5c325a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4460871f1a9671343896ef9e56d9ceab +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs new file mode 100644 index 00000000..bc8d10ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs @@ -0,0 +1,32 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Gets the GameObject from the Transform component. Returns Success.")] + public class SharedTransformToGameObject : Action + { + [Tooltip("The Transform component")] + public SharedTransform sharedTransform; + [RequiredField] + [Tooltip("The GameObject to set")] + public SharedGameObject sharedGameObject; + + public override TaskStatus OnUpdate() + { + if (sharedTransform.Value == null) { + return TaskStatus.Failure; + } + + sharedGameObject.Value = sharedTransform.Value.gameObject; + + return TaskStatus.Success; + } + + public override void OnReset() + { + sharedTransform = null; + sharedGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta new file mode 100644 index 00000000..a5bb06c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f2fd208ea1a8e1642a32148186f9e077 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs new file mode 100644 index 00000000..06ed2690 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs @@ -0,0 +1,41 @@ +using UnityEngine; +using System.Collections.Generic; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables +{ + [TaskCategory("Basic/SharedVariable")] + [TaskDescription("Sets the SharedTransformList values from the Transforms. Returns Success.")] + public class SharedTransformsToTransformList : Action + { + [Tooltip("The Transforms value")] + public SharedTransform[] transforms; + [RequiredField] + [Tooltip("The SharedTransformList to set")] + public SharedTransformList storedTransformList; + + public override void OnAwake() + { + storedTransformList.Value = new List(); + } + + 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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta new file mode 100644 index 00000000..5aa0a81e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3533c6733499e9446b1eae98c8fcaeea +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta new file mode 100644 index 00000000..4d3517e7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 79bf48a44f2371244a34ff82aaeaaded +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs new file mode 100644 index 00000000..84793c5b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta new file mode 100644 index 00000000..19d5324a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d95a2896b550c5b4382b7ed35860f504 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs new file mode 100644 index 00000000..81531b9e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs.meta new file mode 100644 index 00000000..483f418a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2ff93bf538eee1444b3c51aadfc9bb7f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs new file mode 100644 index 00000000..068800e1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta new file mode 100644 index 00000000..a9af8a3a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dffebfe905e60814ab75e0d7c57432ec +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs new file mode 100644 index 00000000..483bae53 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta new file mode 100644 index 00000000..c1855dd0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5f45a94e6b603f2498481f61218b1769 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta new file mode 100644 index 00000000..c2e70631 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: f1fb420b7a56bfa4ebafed6237009045 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs new file mode 100644 index 00000000..f681b02a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs @@ -0,0 +1,28 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta new file mode 100644 index 00000000..771073df --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9373af75c434e1a4784c2a165ad3ce3b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs new file mode 100644 index 00000000..b4958d4f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs @@ -0,0 +1,28 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta new file mode 100644 index 00000000..5c5500d2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c752378530d87cb4c98ba15e55936abf +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs new file mode 100644 index 00000000..96e57f85 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs @@ -0,0 +1,47 @@ +using UnityEngine; +using System; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta new file mode 100644 index 00000000..4ddacf96 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d96c5da37483da346b96ef02fde824cb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs new file mode 100644 index 00000000..c2de2405 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs @@ -0,0 +1,25 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta new file mode 100644 index 00000000..61249d21 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5ab3e7e038a50c14f9fa0b019399f3be +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs new file mode 100644 index 00000000..9d64210d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta new file mode 100644 index 00000000..b2ddfee1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 355abdec2d73d2545b16d5e0d5f4c589 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs new file mode 100644 index 00000000..6ede171f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs @@ -0,0 +1,35 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta new file mode 100644 index 00000000..0849def5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6ce20430f88c32b418f29b42531eca4a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs new file mode 100644 index 00000000..21593120 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs @@ -0,0 +1,20 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta new file mode 100644 index 00000000..9cb87727 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f6f4d4c690c09bb48a388f36f4e30245 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs new file mode 100644 index 00000000..869df7a5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs @@ -0,0 +1,32 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta new file mode 100644 index 00000000..35f25181 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 30fc7adfdddc39245a433ea477c01adf +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs new file mode 100644 index 00000000..050f3a48 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs @@ -0,0 +1,26 @@ +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta new file mode 100644 index 00000000..5c2c6bc4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da59105cbc94b5d4da3c805897f4a099 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta new file mode 100644 index 00000000..bb8379ab --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: d8d2d4d347504b146a2c930a2b806d71 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs new file mode 100644 index 00000000..75b87840 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime +{ + [TaskCategory("Basic/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.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta new file mode 100644 index 00000000..a895d9d5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d9d47b1b40fc1214298a3f6bfdc37e87 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs new file mode 100644 index 00000000..eb54ab7f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime +{ + [TaskCategory("Basic/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.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta new file mode 100644 index 00000000..9c3e68ec --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c265b103d220b0e4fa45138fcd605f62 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs new file mode 100644 index 00000000..f0585de6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime +{ + [TaskCategory("Basic/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.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta new file mode 100644 index 00000000..fe77d1cd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5afd2ca3dda059243bf7a9156438475e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs new file mode 100644 index 00000000..7e5cf4f5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime +{ + [TaskCategory("Basic/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.Value = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta new file mode 100644 index 00000000..7835d60c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 79be8ba43b4c1db468d2476318e7e71a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs new file mode 100644 index 00000000..e02937e0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta new file mode 100644 index 00000000..9987e403 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6283d9f4bb690c64b9d986b6ff1271f0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta new file mode 100644 index 00000000..022d6cd3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: d2f1ebdae5c7ffb4d8c7a9daa37b5130 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs new file mode 100644 index 00000000..8f45f378 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/Transform")] + [TaskDescription("Finds a transform by name. Returns Success.")] + 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 TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + transformName = null; + storeValue = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta new file mode 100644 index 00000000..b0220ca3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 387fd22087393ab4e91f0ad4fce4e77f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs new file mode 100644 index 00000000..a6c31655 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/Transform")] + [TaskDescription("Finds a child transform by name. Returns Success.")] + public class FindChild : 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 TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + transformName = null; + storeValue = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta new file mode 100644 index 00000000..7f6d7a53 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 62d28af7da95a12409245b2682550bcc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs new file mode 100644 index 00000000..cee67ccb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs @@ -0,0 +1,66 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta new file mode 100644 index 00000000..d34a2704 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ae176a605fff9a2468198085313c26ad +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs new file mode 100644 index 00000000..337e2341 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta new file mode 100644 index 00000000..a90dba3a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 04ea225bb12181a4daf7f3d6a21eaa5d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs new file mode 100644 index 00000000..aca95e80 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs.meta new file mode 100644 index 00000000..0ff26358 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8e31c13112e4d334ab9d67feaac94d3f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs new file mode 100644 index 00000000..a7764a8b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs.meta new file mode 100644 index 00000000..0118e3b4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 43295a23f5d9cb345ae408d5ac843b52 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs new file mode 100644 index 00000000..0420db5b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs.meta new file mode 100644 index 00000000..6bda0d73 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a5748c07a5ebe54429eb3e9ae032b5e2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs new file mode 100644 index 00000000..fee24dde --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs.meta new file mode 100644 index 00000000..40c781a6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 459c793e1b836104f901813471414ccc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs new file mode 100644 index 00000000..56737de6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs.meta new file mode 100644 index 00000000..57d121c8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4fdc0d751b2c91f438142cf65fcbba34 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs new file mode 100644 index 00000000..e2572ab1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta new file mode 100644 index 00000000..6cc867c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2334ddf0e58b67e40ad16e2f63dad8ee +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs new file mode 100644 index 00000000..bfdc2831 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs.meta new file mode 100644 index 00000000..115bef16 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e0b10fe3fcda1914fbbdde4a860cd403 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs new file mode 100644 index 00000000..53f2ee1e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta new file mode 100644 index 00000000..2dffa644 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f149245d8fce789498c301657a7eaf88 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs new file mode 100644 index 00000000..4a6b9cf1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs.meta new file mode 100644 index 00000000..207a32c8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9ce1fdc3f652b3043b5116efba12cc48 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs new file mode 100644 index 00000000..370d14a9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs.meta new file mode 100644 index 00000000..202902a1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6b5147164f2674547888db24cba68770 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs new file mode 100644 index 00000000..d8a16aec --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta new file mode 100644 index 00000000..ca52e97b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5384b69809f40f5489ca7d7d345471d2 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs new file mode 100644 index 00000000..e557b713 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs.meta new file mode 100644 index 00000000..0e6f55a2 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 605a7c93705031042be47bd4a4ab6079 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs new file mode 100644 index 00000000..4e4886b4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs @@ -0,0 +1,42 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta new file mode 100644 index 00000000..9f93239e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 304e488eb1caa4f45a8bd903292492ca +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs new file mode 100644 index 00000000..bee3c7a9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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("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; + } + + targetTransform.LookAt(worldPosition.Value, worldUp); + + return TaskStatus.Success; + } + + public override void OnReset() + { + targetGameObject = null; + worldPosition = Vector3.up; + worldUp = Vector3.up; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta new file mode 100644 index 00000000..6e3189ff --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 64883614392671f438244b3aa5b91c6c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs new file mode 100644 index 00000000..267fe653 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta new file mode 100644 index 00000000..b4a9c387 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: db0cba6372babb541a0da57412963760 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs new file mode 100644 index 00000000..ac3feb57 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs @@ -0,0 +1,50 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta new file mode 100644 index 00000000..8bd780cc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 65cef920fcc4ec449a1e6a29fe79c024 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs new file mode 100644 index 00000000..bc509186 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta new file mode 100644 index 00000000..4a20efd1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: edad3f12ad10ba14aac656b7f431ff31 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs new file mode 100644 index 00000000..6deec202 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs.meta new file mode 100644 index 00000000..283c1b33 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4cf669b5419d7294cb72c90881267c0c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs new file mode 100644 index 00000000..fcb72a1a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta new file mode 100644 index 00000000..644c7104 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2e1ed691ebf9f154e88bb8be7319baad +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs new file mode 100644 index 00000000..9ef9f235 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta new file mode 100644 index 00000000..53cc9193 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5af08673c7a3bb54c974bb23094d4587 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs new file mode 100644 index 00000000..f21d3b5a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta new file mode 100644 index 00000000..26baaac4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: de22c6e6826367540b2f25957757a1d4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs new file mode 100644 index 00000000..7b0f68ad --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta new file mode 100644 index 00000000..63025bea --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 354ce71974ea2b44ab820c8285f72421 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs new file mode 100644 index 00000000..92673a8a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta new file mode 100644 index 00000000..17981286 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a19c91d6c31b48d45b2ea97efeae14aa +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs new file mode 100644 index 00000000..28bcf0b1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs.meta new file mode 100644 index 00000000..1273580e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d0586a5078618624398df51fd677a2e0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs new file mode 100644 index 00000000..9479a024 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs.meta new file mode 100644 index 00000000..a27cf794 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4629bee77af22ca42a716dfa8ad3e669 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs new file mode 100644 index 00000000..8885fa78 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta new file mode 100644 index 00000000..53f60e32 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fb61cc6175ff14c4d84c3c72541bc30d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs new file mode 100644 index 00000000..8edbbc3b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs.meta new file mode 100644 index 00000000..4b2cc9fe --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2e65dee462c24694a9835796a770af6e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs new file mode 100644 index 00000000..bc636713 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta new file mode 100644 index 00000000..7a7a81b5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d4a788705b79d3745a26867acf47a63a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta new file mode 100644 index 00000000..c6faa103 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: ea5a99c944135bb47be3809004f4ca10 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs new file mode 100644 index 00000000..c5f623ad --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = storeResult = Vector2.zero; + maxLength = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta new file mode 100644 index 00000000..e11a61d7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a2a5d2ecd681ef64ea5b5fbf81cc0b2d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs new file mode 100644 index 00000000..2cbd2c92 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = secondVector2 = Vector2.zero; + storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta new file mode 100644 index 00000000..389ce4b6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a35c2cb53a768894f8d81c2e8dc87b9b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs new file mode 100644 index 00000000..4af9ad76 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = rightHandSide = Vector2.zero; + storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta new file mode 100644 index 00000000..6b58750a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c9c233b5173aece4493146b736d4e65d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs new file mode 100644 index 00000000..859ad120 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta new file mode 100644 index 00000000..6f801cb5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 64a63651c7294144197858c8b6387b49 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs new file mode 100644 index 00000000..cf72120f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta new file mode 100644 index 00000000..94690766 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f46062197c393bb4a809f7faf8e9fc70 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs new file mode 100644 index 00000000..d9e14486 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta new file mode 100644 index 00000000..07dbd02b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5366ccb4258ea7f49ae280d05d2a195c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs new file mode 100644 index 00000000..0cd73e00 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta new file mode 100644 index 00000000..0d51499d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7ec54e34058d3a04dbd9ed27538731b0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs new file mode 100644 index 00000000..f4d024f0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta new file mode 100644 index 00000000..f5233585 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 89ba2f45bfecb9c40a4de0394c8019e0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs new file mode 100644 index 00000000..a9bae4d0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta new file mode 100644 index 00000000..8a640ee7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e258a57c9873ecf4fb8a1432e418ecb4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs new file mode 100644 index 00000000..32c71287 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = toVector2 = storeResult = Vector2.zero; + lerpAmount = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta new file mode 100644 index 00000000..35226670 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6f709035ad060c04d9f758980ad7e2c3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs new file mode 100644 index 00000000..c84fd517 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = targetPosition = storeResult = Vector2.zero; + speed = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta new file mode 100644 index 00000000..f07218be --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ab464382cafa087498bef68f6988dff7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs new file mode 100644 index 00000000..3fccd123 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta new file mode 100644 index 00000000..d736ec3d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7f21148eaa498684baa11ac8ac177599 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs new file mode 100644 index 00000000..cdd999b0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = storeResult = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta new file mode 100644 index 00000000..6d170e15 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ed5b59611a512984f9755c358afc67d8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs new file mode 100644 index 00000000..36d9a29f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = secondVector2 = storeResult = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta new file mode 100644 index 00000000..7414ab28 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2ae8ac6f41714174fa63df41c7e32019 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs new file mode 100644 index 00000000..98c9d496 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = vector2Variable = Vector2.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta new file mode 100644 index 00000000..44d21ec4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 61e3d384c43977148b829dab4090ab3b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs new file mode 100644 index 00000000..a4035d0f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs @@ -0,0 +1,35 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2 +{ + [TaskCategory("Basic/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 = yValue = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta new file mode 100644 index 00000000..c7e52233 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a24836a22bca9bd4ab701e35bf36f6a9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta new file mode 100644 index 00000000..8133f780 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 65391955a7357ef4e82aa0214dc9b407 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs new file mode 100644 index 00000000..910ee6fe --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = secondVector3 = Vector3.zero; + storeResult = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta new file mode 100644 index 00000000..60a69e2f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1e3b18a7f2f7db54992b881f449091ad +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs new file mode 100644 index 00000000..c2a7c261 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = storeResult = Vector3.zero; + maxLength = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta new file mode 100644 index 00000000..5d1bc9d7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e3d2efd14a9499b47a17ea16bf45512f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs new file mode 100644 index 00000000..d8777328 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = secondVector3 = Vector3.zero; + storeResult = 0; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta new file mode 100644 index 00000000..fbe88045 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8c4522b996b52d040822fb808cfc9d97 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs new file mode 100644 index 00000000..37daaa41 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = rightHandSide = Vector3.zero; + storeResult = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta new file mode 100644 index 00000000..de0a620f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fe5e2655abffbe94eba3f6a0abd34b5c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs new file mode 100644 index 00000000..12c8b6fc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta new file mode 100644 index 00000000..599a8210 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b09c11f987794eb45b65e0ef249cdb3f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs new file mode 100644 index 00000000..9bf51c68 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta new file mode 100644 index 00000000..c06d20e0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dcf2397966692fe4a819a0db18186778 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs new file mode 100644 index 00000000..ee8b33cf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta new file mode 100644 index 00000000..654a6945 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ca338b1189144fe47ab9b1fa6a54e970 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs new file mode 100644 index 00000000..99fe0e2c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta new file mode 100644 index 00000000..56daef6a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fb704714eacb92948bd59ddd38865b59 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs new file mode 100644 index 00000000..b6d270ae --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta new file mode 100644 index 00000000..9601373f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 225a4566a02bdec4e82a2335b4e6c5fc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs new file mode 100644 index 00000000..db33cebd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta new file mode 100644 index 00000000..76cebfab --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 959ed107c681b1c44af1b842ed7ca445 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs new file mode 100644 index 00000000..efed738a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs @@ -0,0 +1,35 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = storeY = storeZ = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta new file mode 100644 index 00000000..5cee68be --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fbab043af227fe14e8875a1df65cbae4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs new file mode 100644 index 00000000..4819bc78 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta new file mode 100644 index 00000000..3304331f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ef769062529820342a12a00e9cf8611d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs new file mode 100644 index 00000000..75d80cc4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs @@ -0,0 +1,31 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = targetPosition = storeResult = Vector3.zero; + speed = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta new file mode 100644 index 00000000..7e9c4c19 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6562a7b02f6ab1478612f41defc5299 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs new file mode 100644 index 00000000..9c693267 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = storeResult = Vector3.zero; + multiplyBy = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta new file mode 100644 index 00000000..7bde7ce4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1d1d7bd2678e229468abd363ac4a3dd6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs new file mode 100644 index 00000000..64c583b7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = storeResult = Vector3.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta new file mode 100644 index 00000000..5cde0a68 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bc8d58dc29ef6ab49a11e77f517e30ca +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs new file mode 100644 index 00000000..fbb467ef --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs @@ -0,0 +1,47 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = secondVector3 = storeResult = Vector3.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta new file mode 100644 index 00000000..96cbfbd6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 606d84afee1cfbe4892d452884d36be8 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs new file mode 100644 index 00000000..e012d875 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs @@ -0,0 +1,33 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = targetRotation = storeResult = Vector3.zero; + maxDegreesDelta = maxMagnitudeDelta = 0; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta new file mode 100644 index 00000000..5847704a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 55175ed9420ee88429fbb91a9b433b9c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs new file mode 100644 index 00000000..20034af0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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 = vector3Variable = Vector3.zero; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta new file mode 100644 index 00000000..d574f5ee --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d512a8eb2bde4ea49868fdd746dafb0d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs new file mode 100644 index 00000000..82d466ca --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3 +{ + [TaskCategory("Basic/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/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta new file mode 100644 index 00000000..56cef77b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: efcd4530935b0c445804e64d0820f27b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll new file mode 100644 index 00000000..13c2c25e Binary files /dev/null and b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll differ diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll.meta b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll.meta new file mode 100644 index 00000000..1c32fa46 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorDesignerRuntime.dll.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 1575c1ccf5c9d9b4880372d854f9fcd4 +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true + WindowsStoreApps: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs new file mode 100644 index 00000000..868201b1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs @@ -0,0 +1,11 @@ +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/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs.meta new file mode 100644 index 00000000..9b13e097 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/BehaviorTree.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8d7b55c7ecdb49a4a89fa5e6f9022861 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites.meta new file mode 100644 index 00000000..546cbf1d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 0728f016e441f9a48b8da3084d5668c9 diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs new file mode 100644 index 00000000..79969d26 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs @@ -0,0 +1,87 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=27")] + [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/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs.meta new file mode 100644 index 00000000..4d4def85 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Parallel.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4a7063721a0dbc04787bec1b0507f9ae +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs new file mode 100644 index 00000000..cfbab87a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs @@ -0,0 +1,81 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=136")] + [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) + { + // Return the child task's status as soon as a child task returns success or failure. + for (int i = 0; i < executionStatus.Length; ++i) { + if (executionStatus[i] == TaskStatus.Success || executionStatus[i] == TaskStatus.Failure) { + return executionStatus[i]; + } else if (executionStatus[i] == TaskStatus.Inactive) { + return TaskStatus.Success; + } + } + 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/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs.meta new file mode 100644 index 00000000..fc7dd0a8 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelComplete.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef4b3eb51f6ede04bba3598677fe8531 +timeCreated: 1487379311 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs new file mode 100644 index 00000000..13e6624a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs @@ -0,0 +1,87 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=28")] + [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/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs.meta new file mode 100644 index 00000000..dde9d512 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/ParallelSelector.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 52e4e27ad95cedb41a3bc2c5f5ed0b54 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs new file mode 100644 index 00000000..5f2dac27 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs @@ -0,0 +1,72 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=29")] + [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/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs.meta new file mode 100644 index 00000000..828e4c7a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/PrioritySelector.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8b5aa86ad86e94f41841abd04bd96f2a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs new file mode 100644 index 00000000..e4c55f0f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs @@ -0,0 +1,106 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=30")] + [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) { +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3) + Random.InitState(seed); +#else + Random.seed = seed; +#endif + } + + // 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/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs.meta new file mode 100644 index 00000000..d5528712 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSelector.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4952cbfc1e77be24b99e34c9acffc2a0 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs new file mode 100644 index 00000000..a392c7b1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs @@ -0,0 +1,107 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=31")] + [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) { +#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3) + Random.InitState(seed); +#else + Random.seed = seed; +#endif + } + + // 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/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs.meta new file mode 100644 index 00000000..28baf39d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/RandomSequence.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 11b102c97eb687b4a9ce1473a334c3dd +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs new file mode 100644 index 00000000..e85b1ca5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs @@ -0,0 +1,46 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=26")] + [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/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs.meta new file mode 100644 index 00000000..a3f6291c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Selector.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7cb8dcec14880a443841212e6b595d4f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs new file mode 100644 index 00000000..25505d63 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs @@ -0,0 +1,118 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=109")] + [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) + { + // 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); + } 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/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs.meta new file mode 100644 index 00000000..b55971ba --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/SelectorEvaluator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 15b5d0aafd7d4f04f8332d33705ebd63 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs new file mode 100644 index 00000000..c82ce730 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs @@ -0,0 +1,46 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=25")] + [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/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs.meta new file mode 100644 index 00000000..89002187 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/Sequence.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b7226608b64066c40a656d7260249fce +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs new file mode 100644 index 00000000..23fd6a54 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs @@ -0,0 +1,150 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=134")] + [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); + executionStatus = TaskStatus.Inactive; + } + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs.meta new file mode 100644 index 00000000..f65ef498 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Composites/UtilitySelector.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c21b01ca0aa9004fa3a76c9d596eeb1 +timeCreated: 1465679373 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals.meta new file mode 100644 index 00000000..3c584b3a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 71086b036fe4eb440ac8c7ff333239d6 diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs new file mode 100644 index 00000000..964ecc3a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs @@ -0,0 +1,114 @@ +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success as soon as the event specified by eventName has been received.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=123")] + [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/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs.meta new file mode 100644 index 00000000..9fd1d4e1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/HasReceivedEvent.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7c0c7f545b074cb48bd552b038ede7af +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics.meta new file mode 100644 index 00000000..8b5c7dcc --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 0c5a19b8daa7dbf4abe7505888ef0376 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs new file mode 100644 index 00000000..480e4093 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when a collision starts.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(collision.gameObject.tag)) { + collidedGameObject.Value = collision.gameObject; + enteredCollision = true; + } + } + + public override void OnReset() + { + tag = ""; + collidedGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs.meta new file mode 100644 index 00000000..b6f4d04b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c1841a802d7ceda449423f001897ecae +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs new file mode 100644 index 00000000..51feb050 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when a 2D collision starts.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(collision.gameObject.tag)) { + collidedGameObject.Value = collision.gameObject; + enteredCollision = true; + } + } + + public override void OnReset() + { + tag = ""; + collidedGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs.meta new file mode 100644 index 00000000..1f0e945e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredCollision2D.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ac128198630a2d4b9fee93cc9a1f8fd +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs new file mode 100644 index 00000000..648850fd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when an object enters the trigger.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(other.gameObject.tag)) { + otherGameObject.Value = other.gameObject; + enteredTrigger = true; + } + } + + public override void OnReset() + { + tag = ""; + otherGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs.meta new file mode 100644 index 00000000..bccb63ad --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5987844efe0fca7499cec04a9e3962cc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs new file mode 100644 index 00000000..05dfe9ec --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when an object enters the 2D trigger.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(other.gameObject.tag)) { + otherGameObject.Value = other.gameObject; + enteredTrigger = true; + } + } + + public override void OnReset() + { + tag = ""; + otherGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs.meta new file mode 100644 index 00000000..4e98e7c7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasEnteredTrigger2D.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 84e2afb791fe67243a15e45e4af81bb4 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs new file mode 100644 index 00000000..05a4fe3d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when a collision ends.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(collision.gameObject.tag)) { + collidedGameObject.Value = collision.gameObject; + exitedCollision = true; + } + } + + public override void OnReset() + { + collidedGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs.meta new file mode 100644 index 00000000..40e22c8b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 900905a3e42f74c49a6e503349ee651e +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs new file mode 100644 index 00000000..e5a1a03a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when a 2D collision ends.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(collision.gameObject.tag)) { + collidedGameObject.Value = collision.gameObject; + exitedCollision = true; + } + } + + public override void OnReset() + { + tag = ""; + collidedGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs.meta new file mode 100644 index 00000000..48510c2a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedCollision2D.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 31cf8edd114ac5c4db22ec65babb3dd3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs new file mode 100644 index 00000000..ec33e923 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when an object exits the trigger.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(other.gameObject.tag)) { + otherGameObject.Value = other.gameObject; + exitedTrigger = true; + } + } + + public override void OnReset() + { + tag = ""; + otherGameObject = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs.meta new file mode 100644 index 00000000..83c2828f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c7ccd4a2c35d4c748b65ccd086e777e1 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs new file mode 100644 index 00000000..95ad2f1a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Returns success when an object exits the 2D trigger.")] + [TaskCategory("Physics")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=110")] + 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) || tag.Value.Equals(other.gameObject.tag)) { + otherGameObject.Value = other.gameObject; + exitedTrigger = true; + } + } + + public override void OnReset() + { + tag = ""; + otherGameObject = null; + } + } +} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs.meta new file mode 100644 index 00000000..3d6d4f8a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Physics/HasExitedTrigger2D.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ff0486d46da2f7844ac74c6e2ad5af89 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs new file mode 100644 index 00000000..e971bb3d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs @@ -0,0 +1,44 @@ +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("The random probability task will return success when the random probability is above the succeed probability. It will otherwise return failure.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=33")] + 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; + + private System.Random random; + + public override void OnAwake() + { + // If specified, use the seed provided. + if (useSeed.Value) { + random = new System.Random(seed.Value); + } else { + random = new System.Random(); + } + } + + public override TaskStatus OnUpdate() + { + // Return success if random value is less than the success probability. Otherwise return failure. + float randomValue = (float)random.NextDouble(); + 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/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs.meta new file mode 100644 index 00000000..9c3993af --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/RandomProbability.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 468a21510e9558c49a47238ebe4c2270 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection.meta new file mode 100644 index 00000000..e671a26f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: caf1fead4d83193488aaa4560c36880c +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs new file mode 100644 index 00000000..d66bf706 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs @@ -0,0 +1,61 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=151")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs.meta new file mode 100644 index 00000000..42f0e6bb --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/CompareFieldValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cc6496fb6757b684c8cc0c4ac8929319 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs new file mode 100644 index 00000000..4f7fbdf1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs @@ -0,0 +1,61 @@ +using UnityEngine; +using System; +using System.Reflection; + +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("Compares the property value to the value specified. Returns success if the values are the same.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=152")] + [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: + // http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=46 + 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/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs.meta new file mode 100644 index 00000000..59fbef22 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Conditionals/Reflection/ComparePropertyValue.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f8b0fa403f826a74087ece4b81fec1c7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators.meta new file mode 100644 index 00000000..a70717c0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 97695fc9a59c6984d82dd3359c07ff3a diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs new file mode 100644 index 00000000..0f82e08f --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs @@ -0,0 +1,100 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=146")] + [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; + + // 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 void OnReset() + { + // Reset the public properties back to their original values. + conditionalTask = null; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs.meta new file mode 100644 index 00000000..8f2340fd --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ConditionalEvaluator.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 632578e05169d1d45a1ab77ae8bb45ad +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs new file mode 100644 index 00000000..a7e575a6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs @@ -0,0 +1,49 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=35")] + [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); + } + + 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/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs.meta new file mode 100644 index 00000000..68e9f463 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Interrupt.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 81c44aaaa87500145831c0e167a5bfd3 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs new file mode 100644 index 00000000..ce70d2f6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs @@ -0,0 +1,41 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=36")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs.meta new file mode 100644 index 00000000..14b2f28b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Inverter.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 577fcf144ebc85642889f2dd11147272 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs new file mode 100644 index 00000000..b6c3d733 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs @@ -0,0 +1,48 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=37")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs.meta new file mode 100644 index 00000000..70379781 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/Repeater.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e62515fa6915f0d4f88b808e2e77d3ff +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs new file mode 100644 index 00000000..96afec6a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs @@ -0,0 +1,38 @@ +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("The return failure task will always return failure except when the child task is running.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=38")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs.meta new file mode 100644 index 00000000..233d57c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnFailure.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f34d21f1bb4e761478bdf76222fcf135 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs new file mode 100644 index 00000000..e44e69d4 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs @@ -0,0 +1,38 @@ +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("The return success task will always return success except when the child task is running.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=39")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs.meta new file mode 100644 index 00000000..e5ef1629 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/ReturnSuccess.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 27d103b9f961fd44da3c4d83dadd90ca +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs new file mode 100644 index 00000000..86bb841e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs @@ -0,0 +1,77 @@ +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.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=40")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs.meta new file mode 100644 index 00000000..99461010 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/TaskGuard.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7e2ae4ab352f20c41be106f92efc3b43 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs new file mode 100644 index 00000000..4bcd2c5d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs @@ -0,0 +1,29 @@ +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("The until failure task will keep executing its child task until the child task returns failure.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=41")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs.meta new file mode 100644 index 00000000..6147662b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilFailure.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 934b87f8f563272469cd9a9b14046ae7 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs new file mode 100644 index 00000000..77e0f77b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs @@ -0,0 +1,29 @@ +namespace BehaviorDesigner.Runtime.Tasks +{ + [TaskDescription("The until success task will keep executing its child task until the child task returns success.")] + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=42")] + [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/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs.meta new file mode 100644 index 00000000..c3887bf0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Decorators/UntilSuccess.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6d5c2cbf6c58f6b419831477bde98317 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs b/Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs new file mode 100644 index 00000000..b6212946 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs @@ -0,0 +1,14 @@ +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. + [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=23")] + [TaskIcon("{SkinColor}EntryIcon.png")] + public class EntryTask : ParentTask + { + public override int MaxChildren() + { + return 1; + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs.meta new file mode 100644 index 00000000..dda8982e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/EntryTask.cs.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 143ae0c3fc255864893a532a2571f3d9 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs b/Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs new file mode 100644 index 00000000..b3c10285 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs @@ -0,0 +1,8 @@ +namespace BehaviorDesigner.Runtime +{ + [System.Serializable] + public class ExternalBehaviorTree : ExternalBehavior + { + // intentionally left blank + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta new file mode 100644 index 00000000..6ef4f066 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/ExternalBehaviorTree.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b23f08d2ae4cba14087c1ed36193d82b +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers.meta new file mode 100644 index 00000000..670a0100 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 29d0d8866b4fa984bbc7dbf5d988ebcc +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs new file mode 100644 index 00000000..d5dfe07d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs @@ -0,0 +1,16 @@ +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/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta new file mode 100644 index 00000000..3596e7a7 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/FloatSliderAttribute.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 92948bfcff9a1fc48834935ebb0dbdcb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs new file mode 100644 index 00000000..753df253 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs @@ -0,0 +1,16 @@ +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/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta new file mode 100644 index 00000000..5cb8e094 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Object Drawers/IntSliderAttribute.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2373bfe29d0e5bc47b88a46226aa6a61 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables.meta new file mode 100644 index 00000000..5aac262d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: a52d5a185c5a1614f875fcb1828d78d8 +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs new file mode 100644 index 00000000..ec17b0d5 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs @@ -0,0 +1,8 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs.meta new file mode 100644 index 00000000..24a56fe0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedBool.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c2f4e02925f3d454c8a49a9f9cc1d497 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs new file mode 100644 index 00000000..1b07bd9d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs.meta new file mode 100644 index 00000000..5cb6438b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedColor.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1aebb6343767438449d67bf4118aeefe +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs new file mode 100644 index 00000000..5cfee32b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs @@ -0,0 +1,8 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta new file mode 100644 index 00000000..f2d785c3 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedFloat.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 954735ce9c49fd845add7abd7883211c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs new file mode 100644 index 00000000..9e44ef31 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta new file mode 100644 index 00000000..aee365b0 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: df84e4f8f0e526344a46be1b083e0218 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs new file mode 100644 index 00000000..b5760184 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs @@ -0,0 +1,11 @@ +using UnityEngine; +using System.Collections.Generic; + +namespace BehaviorDesigner.Runtime +{ + [System.Serializable] + public class SharedGameObjectList : SharedVariable> + { + public static implicit operator SharedGameObjectList(List value) { return new SharedGameObjectList { mValue = value }; } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta new file mode 100644 index 00000000..956e5020 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedGameObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 70650d45c2fa6794a9fdd7d2a74bb59a +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs new file mode 100644 index 00000000..b74b41d1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs @@ -0,0 +1,8 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs.meta new file mode 100644 index 00000000..0f06a31e --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedInt.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 00de328b40e8ac84ebf75e48fe353f38 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs new file mode 100644 index 00000000..57afa4f6 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta new file mode 100644 index 00000000..c99828bf --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedMaterial.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2e84514e0f685a64795ecdb776888407 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs new file mode 100644 index 00000000..cdea9ce9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs.meta new file mode 100644 index 00000000..f9c153e9 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObject.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d5ffddfc2d65c6e4ca1dedda5afd6ccc +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs new file mode 100644 index 00000000..26092e6a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs @@ -0,0 +1,11 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta new file mode 100644 index 00000000..674f2268 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedObjectList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c7644e981f746b5458fb6adbda412b2d +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs new file mode 100644 index 00000000..10ce8229 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta new file mode 100644 index 00000000..027e0ace --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedQuaternion.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1ec5ca504fe011b449506c42d3e5ac7f +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs new file mode 100644 index 00000000..21a0b2fe --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs.meta new file mode 100644 index 00000000..68fded8a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedRect.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 23ef607e9df5ab742afbea152c79eed5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs new file mode 100644 index 00000000..0381c098 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs @@ -0,0 +1,8 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs.meta new file mode 100644 index 00000000..a64cb255 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedString.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2b562573ea4266848bc3f78352dca3a5 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs new file mode 100644 index 00000000..7dc1479a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta new file mode 100644 index 00000000..226ae88d --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransform.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e084053b0dbe6541bc2408005c85606 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs new file mode 100644 index 00000000..6872404c --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs @@ -0,0 +1,11 @@ +using UnityEngine; +using System.Collections.Generic; + +namespace BehaviorDesigner.Runtime +{ + [System.Serializable] + public class SharedTransformList : SharedVariable> + { + public static implicit operator SharedTransformList(List value) { return new SharedTransformList { mValue = value }; } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta new file mode 100644 index 00000000..33e37c1a --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedTransformList.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 11f38abc81b11804aabe69ae80011a60 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs new file mode 100644 index 00000000..379c4d55 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta new file mode 100644 index 00000000..4eb4d791 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector2.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2398d4531b638134384482dcac3e850c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs new file mode 100644 index 00000000..efda6408 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta new file mode 100644 index 00000000..6588f7ac --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector3.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2093670c041663d4096c217e7c790683 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs new file mode 100644 index 00000000..971eea3b --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs @@ -0,0 +1,10 @@ +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/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta new file mode 100644 index 00000000..b42454b1 --- /dev/null +++ b/Assets/ThirdParty/Behavior Designer/Runtime/Variables/SharedVector4.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e12e4a2550a6e5f4aa39fdd59126ed66 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/ThirdParty/SerializableDictionary.meta b/Assets/ThirdParty/SerializableDictionary.meta new file mode 100644 index 00000000..67b5d50c --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2d762dd0108f21340a170723767648cb +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/SerializableDictionary/Editor.meta b/Assets/ThirdParty/SerializableDictionary/Editor.meta new file mode 100644 index 00000000..5bfd990a --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Editor.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 20029ee1c099f4b47afbac48208879b9 +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs b/Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs new file mode 100644 index 00000000..7758c4a0 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs @@ -0,0 +1,566 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; +using System.Reflection; +using System; + +public class SerializableDictionaryPropertyDrawer : PropertyDrawer +{ + const string KeysFieldName = "m_keys"; + const string ValuesFieldName = "m_values"; + protected const float IndentWidth = 15f; + + static GUIContent s_iconPlus = IconContent ("Toolbar Plus", "Add entry"); + static GUIContent s_iconMinus = IconContent ("Toolbar Minus", "Remove entry"); + static GUIContent s_warningIconConflict = IconContent ("console.warnicon.sml", "Conflicting key, this entry will be lost"); + static GUIContent s_warningIconOther = IconContent ("console.infoicon.sml", "Conflicting key"); + static GUIContent s_warningIconNull = IconContent ("console.warnicon.sml", "Null key, this entry will be lost"); + static GUIStyle s_buttonStyle = GUIStyle.none; + static GUIContent s_tempContent = new GUIContent(); + + + class ConflictState + { + public object conflictKey = null; + public object conflictValue = null; + public int conflictIndex = -1 ; + public int conflictOtherIndex = -1 ; + public bool conflictKeyPropertyExpanded = false; + public bool conflictValuePropertyExpanded = false; + public float conflictLineHeight = 0f; + } + + struct PropertyIdentity + { + public PropertyIdentity(SerializedProperty property) + { + this.instance = property.serializedObject.targetObject; + this.propertyPath = property.propertyPath; + } + + public UnityEngine.Object instance; + public string propertyPath; + } + + static Dictionary s_conflictStateDict = new Dictionary(); + + enum Action + { + None, + Add, + Remove + } + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + label = EditorGUI.BeginProperty(position, label, property); + + Action buttonAction = Action.None; + int buttonActionIndex = 0; + + var keyArrayProperty = property.FindPropertyRelative(KeysFieldName); + var valueArrayProperty = property.FindPropertyRelative(ValuesFieldName); + + ConflictState conflictState = GetConflictState(property); + + if(conflictState.conflictIndex != -1) + { + keyArrayProperty.InsertArrayElementAtIndex(conflictState.conflictIndex); + var keyProperty = keyArrayProperty.GetArrayElementAtIndex(conflictState.conflictIndex); + SetPropertyValue(keyProperty, conflictState.conflictKey); + keyProperty.isExpanded = conflictState.conflictKeyPropertyExpanded; + + valueArrayProperty.InsertArrayElementAtIndex(conflictState.conflictIndex); + var valueProperty = valueArrayProperty.GetArrayElementAtIndex(conflictState.conflictIndex); + SetPropertyValue(valueProperty, conflictState.conflictValue); + valueProperty.isExpanded = conflictState.conflictValuePropertyExpanded; + } + + var buttonWidth = s_buttonStyle.CalcSize(s_iconPlus).x; + + var labelPosition = position; + labelPosition.height = EditorGUIUtility.singleLineHeight; + if (property.isExpanded) + labelPosition.xMax -= s_buttonStyle.CalcSize(s_iconPlus).x; + + EditorGUI.PropertyField(labelPosition, property, label, false); + //property.isExpanded = EditorGUI.Foldout(labelPosition, property.isExpanded, label); + if (property.isExpanded) + { + var buttonPosition = position; + buttonPosition.xMin = buttonPosition.xMax - buttonWidth; + buttonPosition.height = EditorGUIUtility.singleLineHeight; + EditorGUI.BeginDisabledGroup(conflictState.conflictIndex != -1); + if(GUI.Button(buttonPosition, s_iconPlus, s_buttonStyle)) + { + buttonAction = Action.Add; + buttonActionIndex = keyArrayProperty.arraySize; + } + EditorGUI.EndDisabledGroup(); + + EditorGUI.indentLevel++; + var linePosition = position; + linePosition.y += EditorGUIUtility.singleLineHeight; + linePosition.xMax -= buttonWidth; + + foreach(var entry in EnumerateEntries(keyArrayProperty, valueArrayProperty)) + { + var keyProperty = entry.keyProperty; + var valueProperty = entry.valueProperty; + int i = entry.index; + + float lineHeight = DrawKeyValueLine(keyProperty, valueProperty, linePosition, i); + + buttonPosition = linePosition; + buttonPosition.x = linePosition.xMax; + buttonPosition.height = EditorGUIUtility.singleLineHeight; + if(GUI.Button(buttonPosition, s_iconMinus, s_buttonStyle)) + { + buttonAction = Action.Remove; + buttonActionIndex = i; + } + + if(i == conflictState.conflictIndex && conflictState.conflictOtherIndex == -1) + { + var iconPosition = linePosition; + iconPosition.size = s_buttonStyle.CalcSize(s_warningIconNull); + GUI.Label(iconPosition, s_warningIconNull); + } + else if(i == conflictState.conflictIndex) + { + var iconPosition = linePosition; + iconPosition.size = s_buttonStyle.CalcSize(s_warningIconConflict); + GUI.Label(iconPosition, s_warningIconConflict); + } + else if(i == conflictState.conflictOtherIndex) + { + var iconPosition = linePosition; + iconPosition.size = s_buttonStyle.CalcSize(s_warningIconOther); + GUI.Label(iconPosition, s_warningIconOther); + } + + + linePosition.y += lineHeight; + } + + EditorGUI.indentLevel--; + } + + if(buttonAction == Action.Add) + { + keyArrayProperty.InsertArrayElementAtIndex(buttonActionIndex); + valueArrayProperty.InsertArrayElementAtIndex(buttonActionIndex); + } + else if(buttonAction == Action.Remove) + { + DeleteArrayElementAtIndex(keyArrayProperty, buttonActionIndex); + DeleteArrayElementAtIndex(valueArrayProperty, buttonActionIndex); + } + + conflictState.conflictKey = null; + conflictState.conflictValue = null; + conflictState.conflictIndex = -1; + conflictState.conflictOtherIndex = -1; + conflictState.conflictLineHeight = 0f; + conflictState.conflictKeyPropertyExpanded = false; + conflictState.conflictValuePropertyExpanded = false; + + foreach(var entry1 in EnumerateEntries(keyArrayProperty, valueArrayProperty)) + { + var keyProperty1 = entry1.keyProperty; + int i = entry1.index; + object keyProperty1Value = GetPropertyValue(keyProperty1); + + if(keyProperty1Value == null) + { + var valueProperty1 = entry1.valueProperty; + SaveProperty(keyProperty1, valueProperty1, i, -1, conflictState); + DeleteArrayElementAtIndex(valueArrayProperty, i); + DeleteArrayElementAtIndex(keyArrayProperty, i); + + break; + } + + + foreach(var entry2 in EnumerateEntries(keyArrayProperty, valueArrayProperty, i + 1)) + { + var keyProperty2 = entry2.keyProperty; + int j = entry2.index; + object keyProperty2Value = GetPropertyValue(keyProperty2); + + if(ComparePropertyValues(keyProperty1Value, keyProperty2Value)) + { + var valueProperty2 = entry2.valueProperty; + SaveProperty(keyProperty2, valueProperty2, j, i, conflictState); + DeleteArrayElementAtIndex(keyArrayProperty, j); + DeleteArrayElementAtIndex(valueArrayProperty, j); + + goto breakLoops; + } + } + } + breakLoops: + + EditorGUI.EndProperty(); + } + + static float DrawKeyValueLine(SerializedProperty keyProperty, SerializedProperty valueProperty, Rect linePosition, int index) + { + bool keyCanBeExpanded = CanPropertyBeExpanded(keyProperty); + bool valueCanBeExpanded = CanPropertyBeExpanded(valueProperty); + + if(!keyCanBeExpanded && valueCanBeExpanded) + { + return DrawKeyValueLineExpand(keyProperty, valueProperty, linePosition); + } + else + { + var keyLabel = keyCanBeExpanded ? ("Key " + index.ToString()) : ""; + var valueLabel = valueCanBeExpanded ? ("Value " + index.ToString()) : ""; + return DrawKeyValueLineSimple(keyProperty, valueProperty, keyLabel, valueLabel, linePosition); + } + } + + static float DrawKeyValueLineSimple(SerializedProperty keyProperty, SerializedProperty valueProperty, string keyLabel, string valueLabel, Rect linePosition) + { + float labelWidth = EditorGUIUtility.labelWidth; + float labelWidthRelative = labelWidth / linePosition.width; + + float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); + var keyPosition = linePosition; + keyPosition.height = keyPropertyHeight; + keyPosition.width = labelWidth - IndentWidth; + EditorGUIUtility.labelWidth = keyPosition.width * labelWidthRelative; + EditorGUI.PropertyField(keyPosition, keyProperty, TempContent(keyLabel), true); + + float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); + var valuePosition = linePosition; + valuePosition.height = valuePropertyHeight; + valuePosition.xMin += labelWidth; + EditorGUIUtility.labelWidth = valuePosition.width * labelWidthRelative; + EditorGUI.indentLevel--; + EditorGUI.PropertyField(valuePosition, valueProperty, TempContent(valueLabel), true); + EditorGUI.indentLevel++; + + EditorGUIUtility.labelWidth = labelWidth; + + return Mathf.Max(keyPropertyHeight, valuePropertyHeight); + } + + static float DrawKeyValueLineExpand(SerializedProperty keyProperty, SerializedProperty valueProperty, Rect linePosition) + { + float labelWidth = EditorGUIUtility.labelWidth; + + float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); + var keyPosition = linePosition; + keyPosition.height = keyPropertyHeight; + keyPosition.width = labelWidth - IndentWidth; + keyPosition.x += 15; + EditorGUI.PropertyField(keyPosition, keyProperty, GUIContent.none, true); + + float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); + var valuePosition = linePosition; + valuePosition.height = valuePropertyHeight; + EditorGUI.PropertyField(valuePosition, valueProperty, GUIContent.none, true); + + EditorGUIUtility.labelWidth = labelWidth; + + return Mathf.Max(keyPropertyHeight, valuePropertyHeight); + } + + static bool CanPropertyBeExpanded(SerializedProperty property) + { + switch(property.propertyType) + { + case SerializedPropertyType.Generic: + case SerializedPropertyType.Vector4: + case SerializedPropertyType.Quaternion: + return true; + default: + return false; + } + } + + static void SaveProperty(SerializedProperty keyProperty, SerializedProperty valueProperty, int index, int otherIndex, ConflictState conflictState) + { + conflictState.conflictKey = GetPropertyValue(keyProperty); + conflictState.conflictValue = GetPropertyValue(valueProperty); + float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); + float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); + float lineHeight = Mathf.Max(keyPropertyHeight, valuePropertyHeight); + conflictState.conflictLineHeight = lineHeight; + conflictState.conflictIndex = index; + conflictState.conflictOtherIndex = otherIndex; + conflictState.conflictKeyPropertyExpanded = keyProperty.isExpanded; + conflictState.conflictValuePropertyExpanded = valueProperty.isExpanded; + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + float propertyHeight = EditorGUIUtility.singleLineHeight; + + if (property.isExpanded) + { + var keysProperty = property.FindPropertyRelative(KeysFieldName); + var valuesProperty = property.FindPropertyRelative(ValuesFieldName); + + foreach(var entry in EnumerateEntries(keysProperty, valuesProperty)) + { + var keyProperty = entry.keyProperty; + var valueProperty = entry.valueProperty; + float keyPropertyHeight = EditorGUI.GetPropertyHeight(keyProperty); + float valuePropertyHeight = EditorGUI.GetPropertyHeight(valueProperty); + float lineHeight = Mathf.Max(keyPropertyHeight, valuePropertyHeight); + propertyHeight += lineHeight; + } + + ConflictState conflictState = GetConflictState(property); + + if(conflictState.conflictIndex != -1) + { + propertyHeight += conflictState.conflictLineHeight; + } + } + + return propertyHeight; + } + + static ConflictState GetConflictState(SerializedProperty property) + { + ConflictState conflictState; + PropertyIdentity propId = new PropertyIdentity(property); + if(!s_conflictStateDict.TryGetValue(propId, out conflictState)) + { + conflictState = new ConflictState(); + s_conflictStateDict.Add(propId, conflictState); + } + return conflictState; + } + + static Dictionary s_serializedPropertyValueAccessorsDict; + + static SerializableDictionaryPropertyDrawer() + { + Dictionary serializedPropertyValueAccessorsNameDict = new Dictionary() { + { SerializedPropertyType.Integer, "intValue" }, + { SerializedPropertyType.Boolean, "boolValue" }, + { SerializedPropertyType.Float, "floatValue" }, + { SerializedPropertyType.String, "stringValue" }, + { SerializedPropertyType.Color, "colorValue" }, + { SerializedPropertyType.ObjectReference, "objectReferenceValue" }, + { SerializedPropertyType.LayerMask, "intValue" }, + { SerializedPropertyType.Enum, "intValue" }, + { SerializedPropertyType.Vector2, "vector2Value" }, + { SerializedPropertyType.Vector3, "vector3Value" }, + { SerializedPropertyType.Vector4, "vector4Value" }, + { SerializedPropertyType.Rect, "rectValue" }, + { SerializedPropertyType.ArraySize, "intValue" }, + { SerializedPropertyType.Character, "intValue" }, + { SerializedPropertyType.AnimationCurve, "animationCurveValue" }, + { SerializedPropertyType.Bounds, "boundsValue" }, + { SerializedPropertyType.Quaternion, "quaternionValue" }, + }; + Type serializedPropertyType = typeof(SerializedProperty); + + s_serializedPropertyValueAccessorsDict = new Dictionary(); + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public; + + foreach(var kvp in serializedPropertyValueAccessorsNameDict) + { + PropertyInfo propertyInfo = serializedPropertyType.GetProperty(kvp.Value, flags); + s_serializedPropertyValueAccessorsDict.Add(kvp.Key, propertyInfo); + } + } + + static GUIContent IconContent(string name, string tooltip) + { + var builtinIcon = EditorGUIUtility.IconContent (name); + return new GUIContent(builtinIcon.image, tooltip); + } + + static GUIContent TempContent(string text) + { + s_tempContent.text = text; + return s_tempContent; + } + + static void DeleteArrayElementAtIndex(SerializedProperty arrayProperty, int index) + { + var property = arrayProperty.GetArrayElementAtIndex(index); + // if(arrayProperty.arrayElementType.StartsWith("PPtr<$")) + if(property.propertyType == SerializedPropertyType.ObjectReference) + { + property.objectReferenceValue = null; + } + + arrayProperty.DeleteArrayElementAtIndex(index); + } + + public static object GetPropertyValue(SerializedProperty p) + { + PropertyInfo propertyInfo; + if(s_serializedPropertyValueAccessorsDict.TryGetValue(p.propertyType, out propertyInfo)) + { + return propertyInfo.GetValue(p, null); + } + else + { + if(p.isArray) + return GetPropertyValueArray(p); + else + return GetPropertyValueGeneric(p); + } + } + + static void SetPropertyValue(SerializedProperty p, object v) + { + PropertyInfo propertyInfo; + if(s_serializedPropertyValueAccessorsDict.TryGetValue(p.propertyType, out propertyInfo)) + { + propertyInfo.SetValue(p, v, null); + } + else + { + if(p.isArray) + SetPropertyValueArray(p, v); + else + SetPropertyValueGeneric(p, v); + } + } + + static object GetPropertyValueArray(SerializedProperty property) + { + object[] array = new object[property.arraySize]; + for(int i = 0; i < property.arraySize; i++) + { + SerializedProperty item = property.GetArrayElementAtIndex(i); + array[i] = GetPropertyValue(item); + } + return array; + } + + static object GetPropertyValueGeneric(SerializedProperty property) + { + Dictionary dict = new Dictionary(); + var iterator = property.Copy(); + if(iterator.Next(true)) + { + var end = property.GetEndProperty(); + do + { + string name = iterator.name; + object value = GetPropertyValue(iterator); + dict.Add(name, value); + } while(iterator.Next(false) && iterator.propertyPath != end.propertyPath); + } + return dict; + } + + static void SetPropertyValueArray(SerializedProperty property, object v) + { + object[] array = (object[]) v; + property.arraySize = array.Length; + for(int i = 0; i < property.arraySize; i++) + { + SerializedProperty item = property.GetArrayElementAtIndex(i); + SetPropertyValue(item, array[i]); + } + } + + static void SetPropertyValueGeneric(SerializedProperty property, object v) + { + Dictionary dict = (Dictionary) v; + var iterator = property.Copy(); + if(iterator.Next(true)) + { + var end = property.GetEndProperty(); + do + { + string name = iterator.name; + SetPropertyValue(iterator, dict[name]); + } while(iterator.Next(false) && iterator.propertyPath != end.propertyPath); + } + } + + static bool ComparePropertyValues(object value1, object value2) + { + if(value1 is Dictionary && value2 is Dictionary) + { + var dict1 = (Dictionary)value1; + var dict2 = (Dictionary)value2; + return CompareDictionaries(dict1, dict2); + } + else + { + return object.Equals(value1, value2); + } + } + + static bool CompareDictionaries(Dictionary dict1, Dictionary dict2) + { + if(dict1.Count != dict2.Count) + return false; + + foreach(var kvp1 in dict1) + { + var key1 = kvp1.Key; + object value1 = kvp1.Value; + + object value2; + if(!dict2.TryGetValue(key1, out value2)) + return false; + + if(!ComparePropertyValues(value1, value2)) + return false; + } + + return true; + } + + struct EnumerationEntry + { + public SerializedProperty keyProperty; + public SerializedProperty valueProperty; + public int index; + + public EnumerationEntry(SerializedProperty keyProperty, SerializedProperty valueProperty, int index) + { + this.keyProperty = keyProperty; + this.valueProperty = valueProperty; + this.index = index; + } + } + + static IEnumerable EnumerateEntries(SerializedProperty keyArrayProperty, SerializedProperty valueArrayProperty, int startIndex = 0) + { + if(keyArrayProperty.arraySize > startIndex) + { + int index = startIndex; + var keyProperty = keyArrayProperty.GetArrayElementAtIndex(startIndex); + var valueProperty = valueArrayProperty.GetArrayElementAtIndex(startIndex); + var endProperty = keyArrayProperty.GetEndProperty(); + + do + { + yield return new EnumerationEntry(keyProperty, valueProperty, index); + index++; + } while(keyProperty.Next(false) && valueProperty.Next(false) && !SerializedProperty.EqualContents(keyProperty, endProperty)); + } + } +} + +public class SerializableDictionaryStoragePropertyDrawer : PropertyDrawer +{ + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + property.Next(true); + EditorGUI.PropertyField(position, property, label, true); + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + property.Next(true); + return EditorGUI.GetPropertyHeight(property); + } +} diff --git a/Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta b/Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta new file mode 100644 index 00000000..e10f405f --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Editor/SerializableDictionaryPropertyDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91da51d02ab9ebc459d80d5965d40d19 +timeCreated: 1492869349 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/SerializableDictionary/Example.meta b/Assets/ThirdParty/SerializableDictionary/Example.meta new file mode 100644 index 00000000..5bbdabde --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: ea574807be3814126807ca7b22d13988 +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/SerializableDictionary/Example/Editor.meta b/Assets/ThirdParty/SerializableDictionary/Example/Editor.meta new file mode 100644 index 00000000..f3048e56 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/Editor.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: b9e966b834ddb48d0815c494d4f511da +folderAsset: yes +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs new file mode 100644 index 00000000..5c63f1ea --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +[CustomPropertyDrawer(typeof(StringStringDictionary))] +[CustomPropertyDrawer(typeof(ObjectColorDictionary))] +[CustomPropertyDrawer(typeof(StringColorArrayDictionary))] +public class AnySerializableDictionaryPropertyDrawer : SerializableDictionaryPropertyDrawer {} + +[CustomPropertyDrawer(typeof(ColorArrayStorage))] +public class AnySerializableDictionaryStoragePropertyDrawer: SerializableDictionaryStoragePropertyDrawer {} diff --git a/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta new file mode 100644 index 00000000..0c101e13 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3089b6c771301cc44ba23b7f8f469e14 +timeCreated: 1493639898 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity new file mode 100644 index 00000000..ce09708d --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity @@ -0,0 +1,251 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &4 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 10 + m_Resolution: 1 + m_BakeResolution: 50 + m_AtlasSize: 1024 + m_AO: 1 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 0 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 1 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 0 +--- !u!196 &5 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666666 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &714127983 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 714127989} + - component: {fileID: 714127988} + - component: {fileID: 714127987} + - component: {fileID: 714127986} + - component: {fileID: 714127985} + - component: {fileID: 714127984} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &714127984 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 714127983} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d5ff00a74ccb984498070d9930a7944c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_stringStringDictionary: + m_keys: + - first key + - second key + - third key + m_values: + - value A + - value B + - value C + m_objectColorDictionary: + m_keys: + - {fileID: 714127983} + - {fileID: 714127984} + m_values: + - {r: 0, g: 0, b: 1, a: 1} + - {r: 1, g: 0, b: 0, a: 1} + m_objectColorArrayDictionary: + m_keys: + - rainbow + - grayscale + m_values: + - data: + - {r: 1, g: 0, b: 0, a: 1} + - {r: 1, g: 0.40000004, b: 0, a: 1} + - {r: 1, g: 0.9333334, b: 0, a: 1} + - {r: 0, g: 1, b: 0, a: 1} + - {r: 0, g: 0.6, b: 1, a: 1} + - {r: 0.26666668, g: 0, b: 1, a: 1} + - {r: 0.6, g: 0, b: 1, a: 1} + - data: + - {r: 0, g: 0, b: 0, a: 0} + - {r: 0.2509804, g: 0.2509804, b: 0.2509804, a: 0.2509804} + - {r: 0.5019608, g: 0.5019608, b: 0.5019608, a: 0.5019608} + - {r: 0.7529412, g: 0.7529412, b: 0.7529412, a: 0.7529412} + - {r: 1, g: 1, b: 1, a: 1} +--- !u!81 &714127985 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 714127983} + m_Enabled: 1 +--- !u!124 &714127986 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 714127983} + m_Enabled: 1 +--- !u!92 &714127987 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 714127983} + m_Enabled: 1 +--- !u!20 &714127988 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 714127983} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &714127989 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 714127983} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta new file mode 100644 index 00000000..25ff160d --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDicitonary Example.unity.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 6c0758ade4ba74b7493ce3806fa2f38b +DefaultImporter: + userData: diff --git a/Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs new file mode 100644 index 00000000..f47a8923 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs @@ -0,0 +1,24 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class SerializableDictionaryExample : MonoBehaviour { + // The dictionaries can be accessed throught a property + [SerializeField] + StringStringDictionary m_stringStringDictionary; + public IDictionary StringStringDictionary + { + get { return m_stringStringDictionary; } + set { m_stringStringDictionary.CopyFrom (value); } + } + + public ObjectColorDictionary m_objectColorDictionary; + public StringColorArrayDictionary m_objectColorArrayDictionary; + + void Reset () + { + // access by property + StringStringDictionary = new Dictionary() { {"first key", "value A"}, {"second key", "value B"}, {"third key", "value C"} }; + m_objectColorDictionary = new ObjectColorDictionary() { {gameObject, Color.blue}, {this, Color.red} }; + } +} diff --git a/Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta new file mode 100644 index 00000000..84a0fd47 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/SerializableDictionaryExample.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5ff00a74ccb984498070d9930a7944c +timeCreated: 1492868873 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs b/Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs new file mode 100644 index 00000000..b20b24bd --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs @@ -0,0 +1,26 @@ +using System.Collections; +using System.Collections.Generic; +using System; +using UnityEngine; + +[Serializable] +public class StringStringDictionary : SerializableDictionary {} + +[Serializable] +public class ObjectColorDictionary : SerializableDictionary {} + +[Serializable] +public class ColorArrayStorage : SerializableDictionary.Storage {} + +[Serializable] +public class StringColorArrayDictionary : SerializableDictionary {} + +[Serializable] +public class MyClass +{ + public int i; + public string str; +} + +[Serializable] +public class QuaternionMyClassDictionary : SerializableDictionary {} \ No newline at end of file diff --git a/Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta b/Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta new file mode 100644 index 00000000..0a39089b --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/UserSerializableDictionaries.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd910530dd8f6b5429c65a494644ed09 +timeCreated: 1493639913 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs new file mode 100644 index 00000000..4614ed7f --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Runtime.Serialization; +using UnityEngine; + +public abstract class SerializableDictionaryBase : Dictionary, ISerializationCallbackReceiver +{ + [SerializeField] + TKey[] m_keys; + [SerializeField] + TValueStorage[] m_values; + + public SerializableDictionaryBase() + { + } + + public SerializableDictionaryBase(IDictionary dict) : base(dict.Count) + { + foreach (var kvp in dict) + { + this[kvp.Key] = kvp.Value; + } + } + + protected SerializableDictionaryBase(SerializationInfo info, StreamingContext context) : base(info,context){} + + protected abstract void SetValue(TValueStorage[] storage, int i, TValue value); + protected abstract TValue GetValue(TValueStorage[] storage, int i); + + public void CopyFrom(IDictionary dict) + { + this.Clear(); + foreach (var kvp in dict) + { + this[kvp.Key] = kvp.Value; + } + } + + public void OnAfterDeserialize() + { + if(m_keys != null && m_values != null && m_keys.Length == m_values.Length) + { + this.Clear(); + int n = m_keys.Length; + for(int i = 0; i < n; ++i) + { + this[m_keys[i]] = GetValue(m_values, i); + } + + m_keys = null; + m_values = null; + } + + } + + public void OnBeforeSerialize() + { + int n = this.Count; + m_keys = new TKey[n]; + m_values = new TValueStorage[n]; + + int i = 0; + foreach(var kvp in this) + { + m_keys[i] = kvp.Key; + SetValue(m_values, i, kvp.Value); + ++i; + } + } +} + +public class SerializableDictionary : SerializableDictionaryBase +{ + public SerializableDictionary() + { + } + + public SerializableDictionary(IDictionary dict) : base(dict) + { + } + + protected SerializableDictionary(SerializationInfo info, StreamingContext context) : base(info,context){} + + protected override TValue GetValue(TValue[] storage, int i) + { + return storage[i]; + } + + protected override void SetValue(TValue[] storage, int i, TValue value) + { + storage[i] = value; + } +} + +public static class SerializableDictionary +{ + public class Storage + { + public T data; + } +} + +public class SerializableDictionary : SerializableDictionaryBase where TValueStorage : SerializableDictionary.Storage, new() +{ + public SerializableDictionary() + { + } + + public SerializableDictionary(IDictionary dict) : base(dict) + { + } + + protected SerializableDictionary(SerializationInfo info, StreamingContext context) : base(info,context){} + + protected override TValue GetValue(TValueStorage[] storage, int i) + { + return storage[i].data; + } + + protected override void SetValue(TValueStorage[] storage, int i, TValue value) + { + storage[i] = new TValueStorage(); + storage[i].data = value; + } +} diff --git a/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs.meta b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs.meta new file mode 100644 index 00000000..cdf58f09 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7be1c9624387604fba4005ccf7dbd5a +timeCreated: 1492868176 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf new file mode 100644 index 00000000..cad88c37 Binary files /dev/null and b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf differ diff --git a/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf.meta b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf.meta new file mode 100644 index 00000000..4325a38f --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/SerializableDictionary.pdf.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8eb73a56b3a6ee64ab2c30cac8878d8f +timeCreated: 1492869030 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scene_demo.unity b/Assets/scene_demo.unity deleted file mode 100644 index a673abf8..00000000 --- a/Assets/scene_demo.unity +++ /dev/null @@ -1,412 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 3 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &4 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 0 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 1 - m_BakeResolution: 50 - m_AtlasSize: 1024 - m_AO: 1 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 0 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 1 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 0 ---- !u!196 &5 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666666 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &321943119 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 321943123} - - component: {fileID: 321943122} - - component: {fileID: 321943121} - - component: {fileID: 321943120} - m_Layer: 0 - m_Name: Plane - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!23 &321943120 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 321943119} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!64 &321943121 -MeshCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 321943119} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Convex: 0 - m_CookingOptions: 14 - m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} ---- !u!33 &321943122 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 321943119} - m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &321943123 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 321943119} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.7811842, y: -0.05815482, z: -0.6690309} - m_LocalScale: {x: 11.692141, y: 11.692141, z: 11.692141} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &324580047 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 324580049} - - component: {fileID: 324580048} - m_Layer: 0 - m_Name: Directional light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &324580048 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 324580047} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 1 - m_Resolution: 3 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 1 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &324580049 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 324580047} - m_LocalRotation: {x: 0.8366761, y: -0.26379114, z: 0.011802134, w: 0.47984174} - m_LocalPosition: {x: 0.5619298, y: 3.9514444, z: 1.8060138} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1001 &480412271 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400050, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: eba753e5d2c78cf418d638dc6261bb72, type: 3} ---- !u!1 &1521020148 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1521020153} - - component: {fileID: 1521020152} - - component: {fileID: 1521020151} - - component: {fileID: 1521020150} - - component: {fileID: 1521020149} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1521020149 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1521020148} - m_Enabled: 1 ---- !u!124 &1521020150 -Behaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1521020148} - m_Enabled: 1 ---- !u!92 &1521020151 -Behaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1521020148} - m_Enabled: 1 ---- !u!20 &1521020152 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1521020148} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.26666668, g: 0.26666668, b: 0.26666668, a: 0.019607844} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 100 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1521020153 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1521020148} - m_LocalRotation: {x: 0, y: -1, z: 0, w: -0.00000004371139} - m_LocalPosition: {x: 0, y: 1.1463037, z: 2.4115133} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/scene_demo.unity.meta b/Assets/scene_demo.unity.meta deleted file mode 100644 index ef8d05c9..00000000 --- a/Assets/scene_demo.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d1035eaa2a250cf43a80265375086f12 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: -- cgit v1.1-26-g67d0