Commit 15e510cd authored by Andrew Van Buren's avatar Andrew Van Buren

Adjusted walk particles and animation.

parent ae59fabf
......@@ -6,6 +6,7 @@ public class WalkParticles : MonoBehaviour {
private ParticleSystem ps;
private ParticleSystem.EmissionModule module;
private HeroMobility hm;
public float speedThreshold = 0.001f;
// Use this for initialization
......@@ -17,7 +18,7 @@ public class WalkParticles : MonoBehaviour {
// Update is called once per frame
void LateUpdate () {
if (hm.deltaPos.sqrMagnitude > 0) {
if (hm.deltaPos.sqrMagnitude > speedThreshold) {
if (!ps.isPlaying) {
ps.Simulate(0.0f, true, false);
module.enabled = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment