diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 59674e2..22ec83b 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -44,11 +44,11 @@ public class PlayerController : MonoBehaviour moveDirection = (transform.forward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime); - if (isRunning && !myParticles.isPlaying()) + if (isRunning && !runningParticles.isPlaying()) { runningParticles.Play(); } - else if (!isRunning && myParticles.isPlaying()) + else if (!isRunning && runningParticles.isPlaying()) { runningParticles.Stop(); }