Final gamerjam state #1

Merged
JanGross merged 18 commits from dev into master 2022-04-30 14:38:07 +02:00
Showing only changes of commit 8fa0052308 - Show all commits

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