Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (_type == CONST_REACTOR_PARTICLETYPE.Billboard)
         _emitter = null;
     else if (_type == CONST_REACTOR_PARTICLETYPE.Point)
         _psystem.Dispose();
     else { }
 }