Esempio n. 1
0
 public static void BuildPathFileEx()
 {
     m_instance = new LoadResources();
     m_instance.m_resourcePath = Application.dataPath + "/Resources/";
     m_instance.GetFileInfo(new DirectoryInfo(m_instance.m_resourcePath));
     m_instance.BuildPathFile();
 }
Esempio n. 2
0
 void Awake()
 {
     DontDestroyOnLoad(this);
     m_instance             = this;
     AssetCacheMgr.AssetMgr = this;
     m_instance.m_filesDic.Clear();
     //m_instance.LoadPathFile();
     if (Application.platform == RuntimePlatform.Android ||
         Application.platform == RuntimePlatform.IPhonePlayer ||
         Application.platform == RuntimePlatform.WindowsPlayer ||
         Application.platform == RuntimePlatform.OSXPlayer ||
         Application.platform == RuntimePlatform.LinuxPlayer)
     {
         m_instance.LoadPathFile();
     }
     else
     {
         m_instance.m_resourcePath = Application.dataPath + "/Resources/";
         m_instance.GetFileInfo(new DirectoryInfo(m_instance.m_resourcePath));
         m_instance.BuildPathFile();
     }
 }
Esempio n. 3
0
 void Awake()
 {
     DontDestroyOnLoad(this);
     m_instance = this;
     AssetCacheMgr.AssetMgr = this;
     m_instance.m_filesDic.Clear();
     //m_instance.LoadPathFile();
     if (Application.platform == RuntimePlatform.Android
         || Application.platform == RuntimePlatform.IPhonePlayer
         || Application.platform == RuntimePlatform.WindowsPlayer
         || Application.platform == RuntimePlatform.OSXPlayer
         || Application.platform == RuntimePlatform.LinuxPlayer)
     {
         m_instance.LoadPathFile();
     }
     else
     {
         m_instance.m_resourcePath = Application.dataPath + "/Resources/";
         m_instance.GetFileInfo(new DirectoryInfo(m_instance.m_resourcePath));
         m_instance.BuildPathFile();
     }
 }