/// FONCTIONS DE SET dans la list de struc des slider, can we make it more compact? public void TourbilolChangeValue(int index, float newValue) { Tourbilol tourbilol = SL_Tourbilols[index]; tourbilol.setValue(newValue); SL_Tourbilols.RemoveAt(index); SL_Tourbilols.Insert(index, tourbilol); }
public void TourbilolChangeValueWanted(int index, float newValue) { Tourbilol slider = SL_Tourbilols[index]; slider.setValueWanted(newValue); SL_Tourbilols.RemoveAt(index); SL_Tourbilols.Insert(index, slider); }
public void TourbilolChangeIsPanne(int index, bool newValue) { Tourbilol slider = SL_Tourbilols[index]; slider.setIsEnPanne(newValue); SL_Tourbilols.RemoveAt(index); SL_Tourbilols.Insert(index, slider); }