From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Runtime/Basic Tasks/ParticleSystem/Clear.cs | 41 ------------------ .../Basic Tasks/ParticleSystem/Clear.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/GetDuration.cs | 49 --------------------- .../Basic Tasks/ParticleSystem/GetDuration.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/GetEmissionRate.cs | 49 --------------------- .../ParticleSystem/GetEmissionRate.cs.meta | 8 ---- .../ParticleSystem/GetEnableEmission.cs | 49 --------------------- .../ParticleSystem/GetEnableEmission.cs.meta | 8 ---- .../ParticleSystem/GetGravityModifier.cs | 47 -------------------- .../ParticleSystem/GetGravityModifier.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/GetLoop.cs | 49 --------------------- .../Basic Tasks/ParticleSystem/GetLoop.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/GetMaxParticles.cs | 49 --------------------- .../ParticleSystem/GetMaxParticles.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/GetParticleCount.cs | 45 ------------------- .../ParticleSystem/GetParticleCount.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs | 50 ---------------------- .../ParticleSystem/GetPlaybackSpeed.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/GetTime.cs | 45 ------------------- .../Basic Tasks/ParticleSystem/GetTime.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/IsAlive.cs | 39 ----------------- .../Basic Tasks/ParticleSystem/IsAlive.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/IsPaused.cs | 39 ----------------- .../Basic Tasks/ParticleSystem/IsPaused.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/IsPlaying.cs | 39 ----------------- .../Basic Tasks/ParticleSystem/IsPlaying.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/IsStopped.cs | 39 ----------------- .../Basic Tasks/ParticleSystem/IsStopped.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/Pause.cs | 41 ------------------ .../Basic Tasks/ParticleSystem/Pause.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/Play.cs | 41 ------------------ .../Basic Tasks/ParticleSystem/Play.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetEmissionRate.cs | 48 --------------------- .../ParticleSystem/SetEmissionRate.cs.meta | 8 ---- .../ParticleSystem/SetEnableEmission.cs | 49 --------------------- .../ParticleSystem/SetEnableEmission.cs.meta | 8 ---- .../ParticleSystem/SetGravityModifier.cs | 46 -------------------- .../ParticleSystem/SetGravityModifier.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/SetLoop.cs | 49 --------------------- .../Basic Tasks/ParticleSystem/SetLoop.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetMaxParticles.cs | 48 --------------------- .../ParticleSystem/SetMaxParticles.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs | 49 --------------------- .../ParticleSystem/SetPlaybackSpeed.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetStartColor.cs | 49 --------------------- .../ParticleSystem/SetStartColor.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetStartDelay.cs | 49 --------------------- .../ParticleSystem/SetStartDelay.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetStartLifetime.cs | 49 --------------------- .../ParticleSystem/SetStartLifetime.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetStartRotation.cs | 49 --------------------- .../ParticleSystem/SetStartRotation.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetStartSize.cs | 49 --------------------- .../ParticleSystem/SetStartSize.cs.meta | 8 ---- .../Basic Tasks/ParticleSystem/SetStartSpeed.cs | 49 --------------------- .../ParticleSystem/SetStartSpeed.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/SetTime.cs | 44 ------------------- .../Basic Tasks/ParticleSystem/SetTime.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/Simulate.cs | 44 ------------------- .../Basic Tasks/ParticleSystem/Simulate.cs.meta | 8 ---- .../Runtime/Basic Tasks/ParticleSystem/Stop.cs | 41 ------------------ .../Basic Tasks/ParticleSystem/Stop.cs.meta | 8 ---- 62 files changed, 1671 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem') diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs deleted file mode 100644 index 38988c82..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Clear the Particle System.")] - public class Clear : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Clear(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta deleted file mode 100644 index 63db0e0c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: de273e542591d5946a8728190438ae27 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs deleted file mode 100644 index 4ea0f3a3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the duration of the Particle System.")] - public class GetDuration : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The duration of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - storeResult.Value = particleSystem.duration; -#else - storeResult.Value = particleSystem.main.duration; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta deleted file mode 100644 index f41e7cee..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 02a4d610e82f1854c87701c4d51957fb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs deleted file mode 100644 index 740466e5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the emission rate of the Particle System.")] - public class GetEmissionRate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The emission rate of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if !(UNITY_5_1 || UNITY_5_2) - Debug.Log("Warning: GetEmissionRate is not used in Unity 5.3 or later."); -#else - storeResult.Value = particleSystem.emissionRate; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta deleted file mode 100644 index 1658d847..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3adb98115d27ec64da9b5f56391570be -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs deleted file mode 100644 index 2b6b57d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores if the Particle System is emitting particles.")] - public class GetEnableEmission : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Is the Particle System emitting particles?")] - [RequiredField] - public SharedBool storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if !(UNITY_5_1 || UNITY_5_2) - storeResult.Value = particleSystem.emission.enabled; -#else - storeResult.Value = particleSystem.enableEmission; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = false; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta deleted file mode 100644 index e894a6e4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 81dc1a241a2c872409a7919742df7581 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs deleted file mode 100644 index b5a97797..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the gravity modifier of the Particle System.")] - public class GetGravityModifier : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The gravity modifier of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.duration; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta deleted file mode 100644 index 3412f534..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7001d2ab41ef4e64190afc7f9bce1876 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs deleted file mode 100644 index 5ee3b1de..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores if the Particle System should loop.")] - public class GetLoop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Should the ParticleSystem loop?")] - [RequiredField] - public SharedBool storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - storeResult.Value = particleSystem.loop; -#else - storeResult.Value = particleSystem.main.loop; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = false; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta deleted file mode 100644 index bfa703a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 82f4ee8cf50887a4488fe6d0da18afc0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs deleted file mode 100644 index c53bbddd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the max particles of the Particle System.")] - public class GetMaxParticles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The max particles of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - storeResult.Value = particleSystem.maxParticles; -#else - storeResult.Value = particleSystem.main.maxParticles; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta deleted file mode 100644 index 8e026028..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 429771af65df81c49aaf4b34630473fe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs deleted file mode 100644 index 06c4fe96..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the particle count of the Particle System.")] - public class GetParticleCount : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The particle count of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.particleCount; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta deleted file mode 100644 index c1cfbc05..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f32e2ff9de4ff7b47a256ac3b51123c6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs deleted file mode 100644 index e23aac68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs +++ /dev/null @@ -1,50 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the playback speed of the Particle System.")] - public class GetPlaybackSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - storeResult.Value = particleSystem.playbackSpeed; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - storeResult.Value = mainParticleSystem.simulationSpeed; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta deleted file mode 100644 index 12e27063..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f8f29f170ac706b498e7c933136d8036 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs deleted file mode 100644 index 315474d5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stores the time of the Particle System.")] - public class GetTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time of the ParticleSystem")] - [RequiredField] - public SharedFloat storeResult; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - storeResult.Value = particleSystem.time; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeResult = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta deleted file mode 100644 index 0cd924dc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9b15c7efbf98f7649adf8dd4474b0579 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs deleted file mode 100644 index 49f56b98..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Is the Particle System alive?")] - public class IsAlive : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.IsAlive() ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta deleted file mode 100644 index aa294a13..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3d554784e9a9fa040a2446402ba3f10e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs deleted file mode 100644 index d0180464..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Is the Particle System paused?")] - public class IsPaused : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.isPaused ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta deleted file mode 100644 index 00a5c85f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e4e9ab132f20dfa4095b3c90303ebf74 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs deleted file mode 100644 index ee9f9472..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Is the Particle System playing?")] - public class IsPlaying : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.isPlaying ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta deleted file mode 100644 index d3f13e4d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 654b51e99f64bfb489e12866a569f00e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs deleted file mode 100644 index 39642507..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Is the Particle System stopped?")] - public class IsStopped : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - return particleSystem.isStopped ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta deleted file mode 100644 index d0a054fb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c719a7379c22b184380b4e63ccdfd064 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs deleted file mode 100644 index 496b2db5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Pause the Particle System.")] - public class Pause : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Pause(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta deleted file mode 100644 index d6e60239..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c9c9cc56691817b49af4fd1cfbc3e363 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs deleted file mode 100644 index 6797351c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Play the Particle System.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Play(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta deleted file mode 100644 index 276c73c4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a8ffb889d35074d4fb08d8502155c0b2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs deleted file mode 100644 index 2034a071..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the emission rate of the Particle System.")] - public class SetEmissionRate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The emission rate of the ParticleSystem")] - public SharedFloat emissionRate; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if !(UNITY_5_1 || UNITY_5_2) - Debug.Log("Warning: SetEmissionRate is not used in Unity 5.3 or later."); -#else - particleSystem.emissionRate = emissionRate.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - emissionRate = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta deleted file mode 100644 index ac56602a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a8300eee629ad77419f2eb91477a0b62 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs deleted file mode 100644 index eedcc59e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Enables or disables the Particle System emission.")] - public class SetEnableEmission : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Enable the ParticleSystem emissions?")] - public SharedBool enable; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if !(UNITY_5_1 || UNITY_5_2) - var emission = particleSystem.emission; - emission.enabled = enable.Value; -#else - particleSystem.enableEmission = enable.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - enable = false; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta deleted file mode 100644 index d5d77a69..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f7c295b4d24628146a885d21bf699993 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs deleted file mode 100644 index e11dcd85..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the gravity modifier of the Particle System.")] - public class SetGravityModifier : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The gravity modifier of the ParticleSystem")] - public SharedFloat gravityModifier; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.gravityModifier = gravityModifier.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - gravityModifier = 0; - } - } -} -#endif \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta deleted file mode 100644 index 8337a101..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c1a6694791042df4ea2097a2508bd8de -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs deleted file mode 100644 index 27e49635..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets if the Particle System should loop.")] - public class SetLoop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Should the ParticleSystem loop?")] - public SharedBool loop; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.loop = loop.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.loop = loop.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - loop = false; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta deleted file mode 100644 index 169ffad8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b9fa90adc0377cc4592de00e410a4060 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs deleted file mode 100644 index 705c7919..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the max particles of the Particle System.")] - public class SetMaxParticles : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The max particles of the ParticleSystem")] - public SharedInt maxParticles; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.maxParticles = maxParticles.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.maxParticles = maxParticles.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - maxParticles = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta deleted file mode 100644 index 8549f671..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: eadca930ad32a404886060ee43e4d802 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs deleted file mode 100644 index a520a196..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the playback speed of the Particle System.")] - public class SetPlaybackSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the ParticleSystem")] - public SharedFloat playbackSpeed = 1; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.playbackSpeed = playbackSpeed.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.simulationSpeed= playbackSpeed.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - playbackSpeed = 1; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta deleted file mode 100644 index 1c0afbdb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8f4d79e34ac8820458a2813895d3962d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs deleted file mode 100644 index 498c96cc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the start color of the Particle System.")] - public class SetStartColor : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start color of the ParticleSystem")] - public SharedColor startColor; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.startColor = startColor.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startColor = startColor.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startColor = Color.white; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta deleted file mode 100644 index 12432173..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f91be163d0c01ec42bf120c267dcceea -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs deleted file mode 100644 index e11bcdb1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the start delay of the Particle System.")] - public class SetStartDelay : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start delay of the ParticleSystem")] - public SharedFloat startDelay; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.startDelay = startDelay.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startDelay = startDelay.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startDelay = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta deleted file mode 100644 index fb4c01f5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 532026cf3b430c840897e66bdde5006e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs deleted file mode 100644 index 9246543a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the start lifetime of the Particle System.")] - public class SetStartLifetime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start lifetime of the ParticleSystem")] - public SharedFloat startLifetime; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.startLifetime = startLifetime.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startLifetime = startLifetime.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startLifetime = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta deleted file mode 100644 index 361689aa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 311b9ed850b4e2243ae44487b9ece819 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs deleted file mode 100644 index 4cd78608..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the start rotation of the Particle System.")] - public class SetStartRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start rotation of the ParticleSystem")] - public SharedFloat startRotation; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.startRotation = startRotation.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startRotation = startRotation.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startRotation = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta deleted file mode 100644 index c995958e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ae611ab09913de6438aeb81d7a621c51 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs deleted file mode 100644 index 87dbbe39..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the start size of the Particle System.")] - public class SetStartSize : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start size of the ParticleSystem")] - public SharedFloat startSize; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.startSize = startSize.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startSize = startSize.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startSize = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta deleted file mode 100644 index d697099c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d7be6a1da3f4f7a418e5739a6cc6e78e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs deleted file mode 100644 index 52bd8072..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the start speed of the Particle System.")] - public class SetStartSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The start speed of the ParticleSystem")] - public SharedFloat startSpeed; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 - particleSystem.startSpeed = startSpeed.Value; -#else - ParticleSystem.MainModule mainParticleSystem = particleSystem.main; - mainParticleSystem.startSpeed = startSpeed.Value; -#endif - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - startSpeed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta deleted file mode 100644 index f87bf954..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b7716318475d3854a96729d1a7540d4a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs deleted file mode 100644 index 41f2e9eb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Sets the time of the Particle System.")] - public class SetTime : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The time of the ParticleSystem")] - public SharedFloat time; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.time = time.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta deleted file mode 100644 index 2788eb15..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 103e78e9c755fe3469e63115eb1c0d80 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs deleted file mode 100644 index fcf70cfb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Simulate the Particle System.")] - public class Simulate : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Time to fastfoward the Particle System to")] - public SharedFloat time; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Simulate(time.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - time = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta deleted file mode 100644 index c703cb24..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 24d79d661acf61e44918320624b49dd5 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs deleted file mode 100644 index 2ed84c15..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem -{ - [TaskCategory("Basic/ParticleSystem")] - [TaskDescription("Stop the Particle System.")] - public class Stop : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private ParticleSystem particleSystem; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - particleSystem = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (particleSystem == null) { - Debug.LogWarning("ParticleSystem is null"); - return TaskStatus.Failure; - } - - particleSystem.Stop(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta deleted file mode 100644 index 695ec19d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: fd83617024d6bff44824a83b472db8e6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -- cgit v1.1-26-g67d0