} else if (getRepeatType() == RT_CYCLE) { setRepeatType(RT_WRAP); } } }
} else if (getRepeatType() == RT_CYCLE) { setRepeatType(RT_WRAP); } } isFirst = false; }
    public void update(float timeF) {        time = timeF * ps.getSpeed();        for (int i = 0; i < ps.getParticles().length; i++) {            currentP = ps.getParticles()[i];            if (getRepeatType() == RT_WRAP) {                // check if dead                if (currentP.life <= 0.0f) {                    regenerateParticle();                }                // update the particle                updateParticle();            } else if (getRepeatType() == RT_CLAMP) {                // if its the first time, generate                    if (currentP.life <= 0.0f) {                    // if particle is dead, bury it                    killParticle();                }                // update the particle                updateParticle();            } else if (getRepeatType() == RT_CYCLE) {                setRepeatType(RT_WRAP);            }        }    }