public static void SpawnParticleEvent(PARTICLE_EVENT Event_Type, GameObject Sender) { ParticleSpawner inst = Instance(); switch (Event_Type) { case PARTICLE_EVENT.EXPLOSION: inst.SpawnExplosionParticle(Sender); break; case PARTICLE_EVENT.FENCE_HIT: inst.SpawnFenceParticle(Sender as Fence); break; } }