Exemplo n.º 1
0
    public static void Init()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        if (ApkFile == null)
        {
            ApkFile = new AssetZip();
            ApkFile.Init(ResourcesPath.dataPath);
        }
#endif
    }
Exemplo n.º 2
0
    public static void Init()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        if (ApkFile == null)
        {
            ApkFile = new AssetZip();
            ApkFile.Init(GoogleObbPath.GetMainObbPath());
        }
#endif
    }
Exemplo n.º 3
0
    public static void Release()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        if (ApkFile != null)
        {
            ApkFile.Release();
            ApkFile = null;

            GC.Collect();
        }
#endif
    }