コード例 #1
0
ファイル: TC_NodeWindow.cs プロジェクト: brunoasdfgh/VBF2
        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();
            }
        }
コード例 #2
0
        void InitNewTC2Project()
        {
            if (TC_Settings.instance == null || TC_Settings.instance.global == null)
            {
                correctSetup = LoadDefault();
            }

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