summaryrefslogtreecommitdiff
path: root/Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs')
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs
index d967061a..e62f6cf9 100644
--- a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs
+++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs
@@ -1,3 +1,4 @@
+#if UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
using UnityEngine;
namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
@@ -31,7 +32,7 @@ namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
return TaskStatus.Failure;
}
- storeResult.Value = particleSystem.main.gravityModifierMultiplier;
+ storeResult.Value = particleSystem.duration;
return TaskStatus.Success;
}
@@ -42,4 +43,5 @@ namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
storeResult = 0;
}
}
-} \ No newline at end of file
+}
+#endif \ No newline at end of file