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)