This commit is contained in:
GamerClassN7 2022-01-29 01:40:26 +01:00
parent ba58b9f74a
commit 807187e5bf

View File

@ -44,11 +44,11 @@ public class PlayerController : MonoBehaviour
moveDirection = (transform.forward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime); moveDirection = (transform.forward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime);
if (isRunning && !myParticles.isPlaying()) if (isRunning && !runningParticles.isPlaying())
{ {
runningParticles.Play(); runningParticles.Play();
} }
else if (!isRunning && myParticles.isPlaying()) else if (!isRunning && runningParticles.isPlaying())
{ {
runningParticles.Stop(); runningParticles.Stop();
} }