internal void CreateEmitter(CONST_REACTOR_PARTICLETYPE type) { _type = type; if (type == CONST_REACTOR_PARTICLETYPE.Billboard) { _emitter = new BillboardParticleEmitter(); _emitter.LoadContent(); } else if (type == CONST_REACTOR_PARTICLETYPE.Point) { _psystem = new PointParticleSystem(REngine.Instance._game); _psystem.Initialize(); } }
public void Dispose() { if (_type == CONST_REACTOR_PARTICLETYPE.Billboard) _emitter = null; else if (_type == CONST_REACTOR_PARTICLETYPE.Point) _psystem.Dispose(); else { } }