init leafs and ripples particle systems alongside generic
This commit is contained in:
parent
c87a7ab183
commit
22d7a22fd1
1 changed files with 6 additions and 6 deletions
12
src/VFX.cs
12
src/VFX.cs
|
@ -5,15 +5,15 @@ namespace slash;
|
||||||
|
|
||||||
static class VFX
|
static class VFX
|
||||||
{
|
{
|
||||||
public static Particle[] particles = new Particle[64];
|
public static ParticleSystem ps = new(64);
|
||||||
static int index = 0;
|
public static ParticleSystem leafs = new(64);
|
||||||
|
public static ParticleSystem ripples = new(64);
|
||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < particles.Length; i++)
|
ps.Init();
|
||||||
{
|
leafs.Init();
|
||||||
particles[i] = new();
|
ripples.Init();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Play(Vec3 pos)
|
public static void Play(Vec3 pos)
|
||||||
|
|
Loading…
Add table
Reference in a new issue