Ejemplo n.º 1
0
 public static void OvrrideFiles()
 {
     foreach (KeyValuePair <string, string> filePair in BindingFilesMap)
     {
         BindingFile.OvrrideFile(filePair.Key, filePair.Value);
     }
     AssetDatabase.Refresh();
     Debug.Log("Finish Ovrride Files");
 }
Ejemplo n.º 2
0
        public static void CheckFilesEqual()
        {
            StringBuilder builder = new StringBuilder();
            StringBuilder warning = new StringBuilder();

            foreach (KeyValuePair <string, string> filePair in BindingFilesMap)
            {
                if (BindingFile.FileIsEqual(filePair.Key, filePair.Value))
                {
                    builder.AppendLine($"{filePair.Key} = {filePair.Value}");
                }
                else
                {
                    warning.AppendLine($"{filePair.Key} != {filePair.Value}");
                }
            }
            Debug.Log(builder);
            if (warning.Length > 0)
            {
                Debug.LogWarning(warning);
            }
        }