Exemplo n.º 1
0
        public bool isExist()
        {
            var existBundles = BundleManager.GetInstance().LocalVersionConfig.bundles;

            foreach (var item in existBundles)
            {
                if (item.name == name && item.md5 == md5)
                {
                    return(true);
                }
            }
            return(false);
        }
Exemplo n.º 2
0
        public static BundleManager GetInstance()
        {
            if (_instance == null)
            {
                _instance = Object.FindObjectOfType <BundleManager> ();
                if (_instance != null)
                {
                    return(_instance);
                }

                GameObject go = new GameObject("BundleManager");
                DontDestroyOnLoad(go);
                go.hideFlags = HideFlags.DontSaveInEditor;
                _instance    = go.AddComponent <BundleManager> ();
            }
            return(_instance);
        }