From 22d7a22fd19afc09e6fba7a42bbe393d188eec01 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sat, 21 Dec 2024 09:37:16 -0500 Subject: [PATCH] init leafs and ripples particle systems alongside generic --- src/VFX.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/VFX.cs b/src/VFX.cs index 77eed08..a13fa40 100644 --- a/src/VFX.cs +++ b/src/VFX.cs @@ -5,15 +5,15 @@ namespace slash; static class VFX { - public static Particle[] particles = new Particle[64]; - static int index = 0; + public static ParticleSystem ps = new(64); + public static ParticleSystem leafs = new(64); + public static ParticleSystem ripples = new(64); public static void Init() { - for (int i = 0; i < particles.Length; i++) - { - particles[i] = new(); - } + ps.Init(); + leafs.Init(); + ripples.Init(); } public static void Play(Vec3 pos)