public string Serialize() { string str = $"{(int)meshShape}" + Saving.PropertySplit; str += $"{Saving.SaveFloat(color.r)},{Saving.SaveFloat(color.g)},{Saving.SaveFloat(color.b)},{Saving.SaveFloat(color.a)}" + Saving.PropertySplit; str += $"{Saving.SaveFloat(emission.r)},{Saving.SaveFloat(emission.g)},{Saving.SaveFloat(emission.b)}" + Saving.PropertySplit; return(str); }
public string Serialize() { string str = ((int)lightType).ToString() + Saving.PropertySplit; str += $"{Saving.SaveFloat(color.r)},{Saving.SaveFloat(color.g)},{Saving.SaveFloat(color.b)}" + Saving.PropertySplit; str += Saving.SaveFloat(brightness) + Saving.PropertySplit; str += Saving.SaveFloat(shadowStrength) + Saving.PropertySplit; str += Saving.SaveFloat(range) + Saving.PropertySplit; str += Saving.SaveFloat(fov); return(str); }