public static Mod GetForIndex(Material baseMaterial, int index) { var mod = new Mod { FontMaterial = new Material(baseMaterial) }; for (int i = 0; i <= index; i++) { mod = mod.AddModForIndex(i, Random.value < 0.5f, false); } return(mod); }