public static ConfigUI Load() { if (Instance == null) { Instance = FindObjectOfType(typeof(ConfigUI)) as ConfigUI; if (Instance == null) { GameObject go = new GameObject().AddComponent <ConfigUI>().gameObject; go.name = "CheatManager.ConfigUI"; Instance = go.GetComponent <ConfigUI>(); } } return(Instance); }
public void Awake() { useGUILayout = false; Instance = this; InitItems(); }
internal static void InitWindow() { Instance = Load(); }
private void OnConsoleCommand_cmconfig(NotificationCenter.Notification n) { ConfigUI.InitWindow(); }