public void CopyFrom(ConfigIndoor other) { if (other != null) { this.TintColor = other.TintColor; } }
private void SetupIndoor(ConfigIndoor indoor) { Shader.SetGlobalColor("_miHoYo_Indoor_Tint_Color", indoor.TintColor); }
public static ConfigIndoor Lerp(ConfigIndoor config1, ConfigIndoor config2, float t) { return(new ConfigIndoor { TintColor = Color.Lerp(config1.TintColor, config2.TintColor, t) }); }
public static ConfigAtmosphere Lerp(ConfigAtmosphere config1, ConfigAtmosphere config2, float t) { ConfigAtmosphere atmosphere; return(new ConfigAtmosphere { FrameTime = Mathf.Lerp(config1.FrameTime, config2.FrameTime, t), Name = atmosphere.FrameTime.ToString(), CloudStyle = ConfigCloudStyle.Lerp(config1.CloudStyle, config2.CloudStyle, t), Background = ConfigBackground.Lerp(config1.Background, config2.Background, t), Indoor = ConfigIndoor.Lerp(config1.Indoor, config2.Indoor, t) }); }