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/AudioSource | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource')
74 files changed, 0 insertions, 1930 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs deleted file mode 100644 index e0906252..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index aca007cf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 12885ddf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 5176b8f8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index c1cd0a7d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index a5d37f95..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index cf8b9ed3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 2cb3e832..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 6fe9aed3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 20401fd0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index f2cee2f2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 71acfb23..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 21ddf55d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index c23193a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index bb519ef0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 4bf1ba3e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index a4b28d99..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 8616ca5f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1838133a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 3d1c547f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 367f4b3f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 40d3ea23..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 4610f4ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index fdb362b6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 7b457902..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs +++ /dev/null @@ -1,39 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index e830c656..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1d5347ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs +++ /dev/null @@ -1,41 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 140e52a3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 3e711027..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs +++ /dev/null @@ -1,41 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 52452b5a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 7618bd7c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index fb881a38..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1d04f8e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs +++ /dev/null @@ -1,47 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 4bc09ae8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index d854790d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 8c3e45f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 71941195..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index df8eac5c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1b0f14b3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index e6c2790c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 787637b2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 6b86a289..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 38a47ba3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index d8e3cc04..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 17487708..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 2d67b172..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index f693e4a8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 6e87631a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 0d45e2df..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 7296e828..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index bd6d1853..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs +++ /dev/null @@ -1,46 +0,0 @@ -#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<AudioSource>();
- 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 deleted file mode 100644 index 5ee56ec2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index b1f24307..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs +++ /dev/null @@ -1,46 +0,0 @@ -#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<AudioSource>();
- 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 deleted file mode 100644 index ca4e90f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 9a6de27f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 71a8ff21..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1a1532ea..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 0a8e4128..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 0b142108..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 0d7fe458..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index b214f713..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 3f0af6c4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 4c5b890c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 4dbd7c6a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index f4657fcd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 89329407..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 637789e8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index bc128b7a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 53dddaa0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 606e6903..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 80ee7189..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs +++ /dev/null @@ -1,44 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 16176d79..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index f351635c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs +++ /dev/null @@ -1,41 +0,0 @@ -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<AudioSource>();
- 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 deleted file mode 100644 index 66ee21a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bd4cec1e9e81e664d8e7782bd02bcade
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
|