diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 22ec83b..fea4c05 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 && !runningParticles.isPlaying()) + if (isRunning && !runningParticles.isPlaying) { runningParticles.Play(); } - else if (!isRunning && runningParticles.isPlaying()) + else if (!isRunning && runningParticles.isPlaying) { runningParticles.Stop(); }