Esempio n. 1
0
        public void onEnabled()
        {
            Global.NO_TRACKBUILDER_RESTRICTIONS = true;

            if (Main.configuration == null) {
                Main.configuration = new Configuration (Path);
                Main.configuration.Load ();
                Main.configuration.Save ();

            }

			if (Main.AssetBundleManager == null) {

				AssetBundleManager = new AssetBundleManager (this);
            } 



			ScriptableSingleton<UIAssetManager>.Instance.trackBuilderWindowGO.gameObject.AddComponent <TrackUIHandle>();
           
            //GameObject container = UnityEngine.GameObject.Instantiate (Main.AssetBundleManager.UiContainerWindowGo);
            //container.transform.SetParent(ScriptableSingleton<UIAssetManager>.Instance.trackBuilderWindowGO.gameObject.transform);



            /*Transform headerPanel= UnityEngine.Object.Instantiate (Main.AssetBundleManager.UiHeaderPanelGo).transform;
            headerPanel.transform.SetParent( ScriptableSingleton<UIAssetManager>.Instance.trackBuilderWindowGO.gameObject.transform);
            headerPanel.transform.name = "HeaderPanel";

            Transform mainBody =  UnityEngine.Object.Instantiate (Main.AssetBundleManager.UiContainerWindowGo).transform;
            mainBody.transform.SetParent ( ScriptableSingleton<UIAssetManager>.Instance.trackBuilderWindowGO.gameObject.transform);
            mainBody.SetSiblingIndex (1);
            mainBody.transform.name = "TrackEditPanel";
            UnityEngine.Debug.Log (mainBody.name);*/

		}
Esempio n. 2
0
        public void onSettingsOpened() {
            if (Main.configuration == null)
                Main.configuration = new Configuration (this.Path);
            Main.configuration.Load ();

        }