Ejemplo n.º 1
0
        public static void InitializeTracker()
        {
            ExceptionIfURLNotSet();

            GameObject BundleObject = UnityEngine.GameObject.Find("AssetBundleTracker");
            if (BundleObject != null)
            {
                assetBundleTracker = BundleObject.GetComponent<AssetBundleTracker>();
            }
            if (assetBundleTracker == null)
            {
                GameObject tmp = new GameObject("AssetBundleTracker");
                assetBundleTracker = tmp.AddComponent<AssetBundleTracker>();
            }
            BundleSystem.isInitialized = true;
        }
Ejemplo n.º 2
0
        public static void InitializeTracker()
        {
            ExceptionIfURLNotSet();

            GameObject BundleObject = UnityEngine.GameObject.Find("AssetBundleTracker");

            if (BundleObject != null)
            {
                assetBundleTracker = BundleObject.GetComponent <AssetBundleTracker>();
            }
            if (assetBundleTracker == null)
            {
                GameObject tmp = new GameObject("AssetBundleTracker");
                assetBundleTracker = tmp.AddComponent <AssetBundleTracker>();
            }
            BundleSystem.isInitialized = true;
        }