This commit is contained in:
GamerClassN7 2022-01-29 01:41:08 +01:00
parent 807187e5bf
commit 02290ccd03

View File

@ -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();
}