From 02290ccd03f3f2b373afdaeb96dc664bf0b41ce7 Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Sat, 29 Jan 2022 01:41:08 +0100 Subject: [PATCH] Typo_2 --- Assets/Scripts/PlayerController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }