예제 #1
0
 public UIComponentInfo(Transform prefabRoot, string memberName, string path, string type)
 {
     this.comType    = type;
     this.memberName = memberName;
     this.path       = path;
     uid             = MD5Hashing.HashString(string.Format("{0}:{1}|{2}", prefabRoot.name, this.memberName, this.path));
 }
예제 #2
0
 public UIComponentInfo(GameObject go, Transform prefabRoot)
 {
     this.comType    = "GameObject";
     this.memberName = go.name;
     this.path       = GameObjectExt.GetHierarchyWithRoot(go.transform, prefabRoot);
     uid             = MD5Hashing.HashString(string.Format("{0}:{1}|{2}", prefabRoot.name, this.memberName, this.path));
 }
예제 #3
0
    public UIComponentInfo(Component component, Transform prefabRoot)
    {
//		this.com = component;
        this.comType    = component.GetType().Name;
        this.memberName = string.Format("{0}_{1}", component.name, comType);
        this.path       = GameObjectExt.GetHierarchyWithRoot(component.transform, prefabRoot);
        uid             = MD5Hashing.HashString(string.Format("{0}:{1}|{2}", prefabRoot.name, this.memberName, this.path));
    }
예제 #4
0
        public static string GetRawConfigHash()
        {
            var    files   = Directory.GetFiles(RawDataDir, "*.xlsx");
            string content = "";

            foreach (var file in files)
            {
                if (file.Contains("~$"))
                {
                    continue;
                }
                var modifyDate = File.GetLastWriteTime(file);
                content += modifyDate;
                //Debug.LogFormat("{0} {1}", file, modifyDate);
            }

            return(MD5Hashing.HashString(content));
        }