Esempio n. 1
0
        public static string GetConfigDataPath(ConfigUtilityAttribute attr)
        {
            string streamingPath = Application.streamingAssetsPath;

#if UNITY_EDITOR
            if (!Directory.Exists(streamingPath))
            {
                Directory.CreateDirectory(streamingPath);
            }
#endif
            System.Text.StringBuilder sb = new System.Text.StringBuilder(streamingPath.Length + attr.filename.Length + 7);
            sb.Append(streamingPath).Append('/').Append(attr.filename).Append(".json");
            return(sb.ToString());
        }
Esempio n. 2
0
 public TypeAndAttr(System.Type t, ConfigUtilityAttribute a)
 {
     this.type = t;
     this.attr = a;
 }