decreasing how much trail is increased

This commit is contained in:
Amaan Shawkath
2022-04-24 15:42:30 +01:00
parent b68a50fc58
commit 8fa0052308

View File

@@ -119,11 +119,11 @@ public class Player : MonoBehaviour
private void OnParticleCollision(GameObject other) private void OnParticleCollision(GameObject other)
{ {
Debug.Log("Particle Collision" + other.name); //Debug.Log("Particle Collision" + other.name);
ParticleSystem ps = trail.GetComponent<ParticleSystem>(); ParticleSystem ps = trail.GetComponent<ParticleSystem>();
ps.Stop(); ps.Stop();
//TODO: refactor magic number to a variable or constant //TODO: refactor magic number to a variable or constant
ps.startLifetime += 2; ps.startLifetime += 0.08f;
ps.Play(); ps.Play();