diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light')
40 files changed, 0 insertions, 1049 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs deleted file mode 100644 index 29a084c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index c391a19f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 85dfd53b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index a86579e2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 7ee3f1b3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index dfad40c2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 3156c745..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 220a3c67..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 796f4fe0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 7b99160f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 81e3ca68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 76739e89..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index d6b98562..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 74436066..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 43232caf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 403db7c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 5037c250..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index ad8cc7b0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index b70581e3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index e06f1769..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 5f6ef3e2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 8968b4e5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 9bbf21c8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index 137b45cd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 975421ee..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index d2bb5bd3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index b286c041..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index c364894d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1f9122e8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs +++ /dev/null @@ -1,46 +0,0 @@ -#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<Light>();
- 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 deleted file mode 100644 index 1276066d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 2c5047f0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs +++ /dev/null @@ -1,46 +0,0 @@ -#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<Light>();
- 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 deleted file mode 100644 index 074f1119..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index b30cf243..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index f5ba4379..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 8310dd27..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs +++ /dev/null @@ -1,43 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index f528500b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index f017a652..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index b6d09a90..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 2d103ed9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs +++ /dev/null @@ -1,43 +0,0 @@ -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<Light>();
- 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 deleted file mode 100644 index c0ba834c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 85cae5f82bfcbfb41ac7c66464eef85f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
|