Ejemplo n.º 1
0
        public void Awake()
        {
            Instance = this;
            gameObject.AddComponent <CMhotkeysConsoleCommand>();
            DontDestroyOnLoad(this);
            useGUILayout = false;
            InfoBar.InitInfoBar(show);
#if DEBUG
            show = true;
#endif
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 internal static void InitInfoBar(bool show)
 {
     Instance = Load();
     isShow   = show;
 }
Ejemplo n.º 4
0
 public void Awake()
 {
     useGUILayout = false;
     Instance     = this;
     DontDestroyOnLoad(this);
 }