public static void Init()
 {
     if (!instance)
     {
         // check if there is a GoKitLite instance already available in the scene graph before creating one
         instance = FindObjectOfType(typeof(UIAssetbundleManager)) as UIAssetbundleManager;
         if (!instance)
         {
             var obj = new GameObject("AssetbundleManager");
             instance = obj.AddComponent <UIAssetbundleManager>();
             DontDestroyOnLoad(obj);
         }
     }
 }
 public static void Init()
 {
     if (!instance)
     {
         // check if there is a GoKitLite instance already available in the scene graph before creating one
         instance = FindObjectOfType(typeof(UIAssetbundleManager)) as UIAssetbundleManager;
         if (!instance)
         {
             var obj = new GameObject("AssetbundleManager");
             instance = obj.AddComponent<UIAssetbundleManager>();
             DontDestroyOnLoad(obj);
         }
     }
 }
 private void OnApplicationQuit()
 {
     instance = null;
     Destroy(gameObject);
 }
 private void OnApplicationQuit()
 {
     instance = null;
     Destroy(gameObject);
 }
 void Awake()
 {
     gameObject.name = "AssetbundleManager";
     UIAssetbundleManager.instance = this;
 }