Exemplo n.º 1
0
    public void LoadEmitters(PolygonStage stage)
    {
        int i = 0;

        //load emitters and emitterManagers, dont forget to handle emitter repeat and delay ! (stored in PolygonStage)
        foreach (var emitter in stage.emitters)
        {
            emitter.life = 4000 + i++ *700;
            EmitterManager em = new EmitterManager();
            em.LoadEmitter(emitter);
            emitters.Add(em);
        }
    }
 // Use this for initialization
 void Start()
 {
     manager          = new EmitterManager();
     emitter.position = transform.position;
     manager.LoadEmitter(emitter);
 }