示例#1
0
 public static ConfigAtmosphere FromScriptable(ScriptableConfigAtmosphere target)
 {
     if (target == null)
     {
         return(null);
     }
     return(new ConfigAtmosphere {
         Name = target.name, FrameTime = target.FrameTime, CloudStyle = target.CloudStyle, Background = target.Background, Indoor = target.Indoor
     });
 }
示例#2
0
        public static ScriptableConfigAtmosphere ToScriptable(ConfigAtmosphere source)
        {
            if (source == null)
            {
                return(null);
            }
            ScriptableConfigAtmosphere atmosphere = ScriptableObject.CreateInstance <ScriptableConfigAtmosphere>();

            atmosphere.name       = source.Name;
            atmosphere.FrameTime  = source.FrameTime;
            atmosphere.CloudStyle = source.CloudStyle;
            atmosphere.Background = source.Background;
            atmosphere.Indoor     = source.Indoor;
            return(atmosphere);
        }