//This function is called inside of DeleteSet. It reuilds our array of decal sets to not include the deleted set public void CompactSetArray() { EffectSet[] tmpSetArray = new EffectSet[maxSets]; int n = 0; for (int i = 0; i < maxSets; i++) { if (setArray[i] != null) { tmpSetArray[n] = setArray[i]; n++; } } setArray = tmpSetArray; }