Beispiel #1
0
 public static void SaveStdData(this IKeepMyCfg s)
 {
     if (s != null)
     {
         s.ConfigStd = s.Encode().ToString();
     }
 }
Beispiel #2
0
 public static void SaveCfgData(this IKeepMyCfg s)
 {
     if (s != null)
     {
         s.ConfigStd = s.Encode().ToString();
         (s as Object).SetToDirty();
     }
 }
Beispiel #3
0
        public static void SaveCfgData(this IKeepMyCfg s, bool setDirty = true)
        {
            if (s != null)
            {
                s.ConfigStd = s.Encode().ToString();

                var scObj = s as ScriptableObject;
                if (scObj)
                {
                    scObj.SetToDirty();
                }
            }
        }