public void Awake() { Instance = this; gameObject.AddComponent <CMhotkeysConsoleCommand>(); DontDestroyOnLoad(this); useGUILayout = false; InfoBar.InitInfoBar(show); #if DEBUG show = true; #endif }
public static InfoBar Load() { if (Instance == null) { Instance = FindObjectOfType(typeof(InfoBar)) as InfoBar; if (Instance == null) { GameObject infobar = new GameObject().AddComponent <InfoBar>().gameObject; infobar.name = "CheatManager.InfoBar"; Instance = infobar.GetComponent <InfoBar>(); } } return(Instance); }
internal static void InitInfoBar(bool show) { Instance = Load(); isShow = show; }
public void Awake() { useGUILayout = false; Instance = this; DontDestroyOnLoad(this); }