From 8fa0052308bc882f2258240a638fee9a5f2a4dc3 Mon Sep 17 00:00:00 2001 From: Amaan Shawkath Date: Sun, 24 Apr 2022 15:42:30 +0100 Subject: [PATCH] decreasing how much trail is increased --- Assets/Scripts/Game/Player.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Game/Player.cs b/Assets/Scripts/Game/Player.cs index e65d0fc..400d0c8 100644 --- a/Assets/Scripts/Game/Player.cs +++ b/Assets/Scripts/Game/Player.cs @@ -119,11 +119,11 @@ public class Player : MonoBehaviour private void OnParticleCollision(GameObject other) { - Debug.Log("Particle Collision" + other.name); + //Debug.Log("Particle Collision" + other.name); ParticleSystem ps = trail.GetComponent(); ps.Stop(); //TODO: refactor magic number to a variable or constant - ps.startLifetime += 2; + ps.startLifetime += 0.08f; ps.Play();