Example #1
0
    public static void CheckSelectedAnimatorController()
    {
        string[] files   = null;
        string   defFile = "";

        CCheckTools.GetSelectedFilePath(ref files, ref defFile, "*.controller");
        int curIndex = 0;

        if (files != null && files.Length > 0)
        {
            fileCount = files.Length;
            foreach (string s in files)
            {
                curIndex++;
                CCheckTools.DisplayProgressBar("检查中", s, curIndex / (float)fileCount);
                CheckSingleAniCtrl(s);
            }
            CCheckTools.ClearProgressBar();
        }
        else if (!string.IsNullOrEmpty(defFile) && defFile.EndsWith(".controller"))
        {
            CheckSingleAniCtrl(defFile);
        }
        else
        {
            Debug.LogError("未选择任何controller文件");
        }
    }
Example #2
0
    public static void CheckAllAniCtrlScript()
    {
        string[] files     = Directory.GetFiles(CPath.AssetsAppProGameResCharacter, "*.controller", SearchOption.AllDirectories);
        int      fileCount = files.Length;
        int      index     = 0;

        foreach (string f in files)
        {
            CCheckTools.DisplayProgressBar("处理中", f, index / (float)fileCount);
            index++;
            CheckAnimCtrlScript(f);
        }
        CCheckTools.ClearProgressBar();
    }
Example #3
0
    private static void SetAniCtrlNodesLoopTime()
    {
        string[] files     = Directory.GetFiles(CPath.AssetsAppArt, "*.anim", SearchOption.AllDirectories);
        int      fileCount = files.Length;
        int      index     = 0;

        foreach (string f in files)
        {
            CCheckTools.DisplayProgressBar("处理中", f, index / (float)fileCount);
            index++;
            CheckSingleNode(f);
        }
        CCheckTools.ClearProgressBar();
    }
Example #4
0
    private static void CheckAnimCtrlBaseStates()
    {
        string[] files     = Directory.GetFiles(CPath.AssetsAppProGameResCharacter, "*.controller", SearchOption.AllDirectories);
        int      fileCount = files.Length;
        int      index     = 0;

        foreach (string f in files)
        {
            CCheckTools.DisplayProgressBar("处理中", f, index / (float)fileCount);
            index++;
            if (f.Contains("Battle") || f.Contains("battle"))
            {
                CheckAnimCtrlBaseState(f);
            }
        }
        CCheckTools.ClearProgressBar();
    }