Пример #1
0
        private string ConvertCriFilePath(string resourcesPath)
        {
            if (string.IsNullOrEmpty(resourcesPath))
            {
                return(null);
            }

            return(isSimulate ?
                   PathUtility.Combine(new string[] { UnityPathUtility.GetProjectFolderPath(), resourceDir, resourcesPath }) :
                   PathUtility.Combine(new string[] { criAssetManager.BuildFilePath(null), resourcesPath }));
        }
Пример #2
0
        private string ConvertCriFilePath(string resourcePath)
        {
            if (string.IsNullOrEmpty(resourcePath))
            {
                return(null);
            }

            var assetInfo = GetAssetInfo(resourcePath);

            return(simulateMode ?
                   PathUtility.Combine(new string[] { UnityPathUtility.GetProjectFolderPath(), resourceDir, resourcePath }) :
                   criAssetManager.BuildFilePath(assetInfo));
        }