Пример #1
0
 public void CopyFrom(ConfigIndoor other)
 {
     if (other != null)
     {
         this.TintColor = other.TintColor;
     }
 }
Пример #2
0
 private void SetupIndoor(ConfigIndoor indoor)
 {
     Shader.SetGlobalColor("_miHoYo_Indoor_Tint_Color", indoor.TintColor);
 }
Пример #3
0
 public static ConfigIndoor Lerp(ConfigIndoor config1, ConfigIndoor config2, float t)
 {
     return(new ConfigIndoor {
         TintColor = Color.Lerp(config1.TintColor, config2.TintColor, t)
     });
 }
Пример #4
0
        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)
            });
        }