public SEConfigUI()
        {
            if (Instance == null)
            {
                Instance = FindObjectOfType(typeof(SEConfigUI)) as SEConfigUI;

                if (Instance == null)
                {
                    GameObject se_configUI = new GameObject("SEConfigUI");
                    Instance = se_configUI.AddComponent <SEConfigUI>();
                }
            }
            else
            {
                Instance.Awake();
            }
        }
 public void Awake()
 {
     useGUILayout = false;
     Instance     = this;
     InitItems();
 }
Example #3
0
 public void OnConsoleCommand_seconfig(NotificationCenter.Notification n)
 {
     SEConfigUI configUI = new SEConfigUI();
 }