Exemplo n.º 1
0
        public void LoadManifestFile()
        {
            if (m_ManiFest != null)
            {
                return;
            }

            string assetName = string.Empty;

#if UNITY_EDITOR || UNITY_STANDALONE_WIN
            assetName = "StandaloneWindows";
#elif UNITY_ANDROID
            assetName = "Android";
#elif UNITY_IPHONE
            assetName = "IOS";
#endif
            IResourceSystem resourceSystem = SystemManager.GetSystem <IResourceSystem>();
            if (!IOUtil.FileExists(StringUtil.CombinePath(resourceSystem.PersistentPath, assetName)))
            {
                return;
            }
            AssetBundle ab = (AssetBundle)resourceSystem.LoadAssetBundle(assetName, LoadMode.Persistent);
            m_ManiFest = ab.LoadAsset <AssetBundleManifest>("AssetBundleManifest");
        }
Exemplo n.º 2
0
 internal PfhImplementation(IResourceSystem resourceSystem)
 {
     _resourceSystem = resourceSystem;
 }
Exemplo n.º 3
0
 internal static PathFinderHelper GetInstance(IResourceSystem resourceSystem)
 {
     return new PfhImplementation(resourceSystem);
 }
Exemplo n.º 4
0
 internal PathFinder(IResourceSystem fileSystem)
 {
     _helper = PathFinderHelper.GetInstance(fileSystem);
 }
Exemplo n.º 5
0
 public IPathFinder PathFinder(IResourceSystem system)
 {
     return new PathFinder(system);
 }