private void Awake() { this.mMutex = new Mutex(); this.mMutex.WaitOne(); this.mMutexAcquired = true; this.mUnzipSignal = new AutoResetEvent(false); AssetDownloader.oldFormat = AssetManager.Format; }
static AssetManager() { RuntimePlatform platform = Application.get_platform(); switch (platform - 2) { case 0: case 3: AssetManager.Format = AssetManager.AssetFormats.Windows; break; default: switch (platform - 8) { case 0: AssetManager.Format = AssetManager.AssetFormats.iOS; return; case 1: return; case 2: return; case 3: if (GameUtility.IsATCTextureSupported) { AssetManager.Format = AssetManager.AssetFormats.AndroidATC; return; } if (GameUtility.IsDXTTextureSupported) { AssetManager.Format = AssetManager.AssetFormats.AndroidDXT; return; } if (GameUtility.IsPVRTextureSupported) { AssetManager.Format = AssetManager.AssetFormats.AndroidPVR; return; } AssetManager.Format = AssetManager.AssetFormats.AndroidGeneric; return; default: return; } } }
public static string ToPath(this AssetManager.AssetFormats platform) { switch (platform) { case AssetManager.AssetFormats.AndroidGeneric: case AssetManager.AssetFormats.AndroidDXT: case AssetManager.AssetFormats.AndroidPVR: case AssetManager.AssetFormats.AndroidATC: return("aatc/"); case AssetManager.AssetFormats.Windows: return("aatc/"); case AssetManager.AssetFormats.Text: return("Text/"); default: return("iOS/"); } }