private IEnumerator loadForLocalABPath(string keyPath) { using (DecompressWhileRef counter = new DecompressWhileRef()) { string abFilePath = ABPathHelper.AssetsWWWStreamURL + keyPath; if (abFilePath.IndexOf(ABPathHelper.MP4Suffix) < 0) { WWW wwwWithPakFile = new WWW(abFilePath); if (wwwWithPakFile != null) { while (!wwwWithPakFile.isDone) { yield return(null); } abFilePath = ABPathHelper.AssetsLocalABURL + keyPath; ABHelper.CacheFile(abFilePath, wwwWithPakFile.bytes); wwwWithPakFile.Dispose(); } } } }