Ejemplo n.º 1
0
        void OnInspectorUpdate()
        {
            if (TC_Settings.instance == null)
            {
                GameObject go = new GameObject();
                go.AddComponent <TC_Settings>();

                TC.GetInstallPath();
                GameObject.DestroyImmediate(go);
            }
            else
            {
                TC.GetInstallPath();
            }

            if (TC_Settings.instance == null)
            {
                correctSetup = LoadDefault();
            }
            else if (TC_Settings.instance.global == null)
            {
                correctSetup = LoadDefault();
            }

            if (correctSetup == -1)
            {
                correctSetup = -3;
                window.Close();
            }
            if (!TD.SelectionContainsItemBehaviour())
            {
                Repaint();
            }
        }
Ejemplo n.º 2
0
        void InitNewTC2Project()
        {
            if (TC_Settings.instance == null || TC_Settings.instance.global == null)
            {
                correctSetup = LoadDefault();
            }

            if (correctSetup == -1)
            {
                correctSetup = -3;
                window.Close();
            }
        }