Exemple #1
0
 private static void initDic()
 {
     dic             = new ASDictionary();
     dic["common"]   = typeof(UIElementPropertyBase);
     dic["tab"]      = typeof(UITabPropertyElement);
     dic["btn"]      = typeof(UIBtnPropertyElement);
     dic["txt"]      = typeof(UITxtPropertyElement);
     dic["dele"]     = typeof(UIDelePropertyElement);
     dic["img"]      = typeof(UIImgPropertyElement);
     dic["rawImg"]   = typeof(UIRawImagPropertyElement);
     dic["icon"]     = typeof(UIIconSlotPropertyElement);
     dic["mc"]       = typeof(UIImageMovieClipPropertyElement);
     dic["list"]     = typeof(UIPageListPropertyElement);
     dic["sharedBg"] = typeof(UISharedBgPropertyElement);
 }
Exemple #2
0
        public void dispose()
        {
            parent     = null;
            gameObject = null;

            foreach (var child in children)
            {
                child.dispose();
            }

            dic.Clear();
            dic = null;
            propterties.Clear();
            propterties = null;
        }
Exemple #3
0
        static void autoCopy()
        {
            ASDictionary <string, string> dic = EditorConfigUtils.GetAutoCopys();
            int count = 0;

            foreach (string fromPath in dic.Keys)
            {
                string fPath = fromPath;
                if (Directory.Exists(fPath))
                {
                    continue;
                }
                string tPath = dic[fromPath];
                if (Directory.Exists(tPath))
                {
                    continue;
                }
                FileHelper.CopyDirectory(fPath, tPath);
                count++;
            }
            Debug.Log("auto copy directory count:" + count);
        }