From 807187e5bf454feb7a33b0e8c8476807992f6682 Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Sat, 29 Jan 2022 01:40:26 +0100 Subject: [PATCH] Typo --- 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 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(); }