Ejemplo n.º 1
0
 public Bundle(string path, bool usePath, bool loadFromResources)
 {
     this.loadFromResources = loadFromResources;
     if (!loadFromResources && ReadWrite.fileExists(path, false, usePath))
     {
         this.asset = AssetBundle.LoadFromFile((!usePath) ? path : (ReadWrite.PATH + path));
     }
     else
     {
         this.asset = null;
     }
     this.name = ReadWrite.fileName(path);
     if (this.asset == null)
     {
         this.resource = ReadWrite.folderPath(path).Substring(1);
     }
 }