Typo_2
This commit is contained in:
parent
807187e5bf
commit
02290ccd03
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user