private void Start()
        {
            //setup system text
            if (CoreParams.IsDebug)
            {
                SystemText.text = CoreParams.GetShortSystemText();
            }
            else
            {
                SystemText.gameObject.SetActive(false);
            }

            //setup continue button
            if (CoreParams.AllowSaveLoad && SaveUtils.GetLastSave() != null)
            {
                ContinueButton.interactable = true;
                EventSystem.current.SetSelectedGameObject(ContinueButton.gameObject);
            }
            else
            {
                ContinueButton.interactable = false;
            }

            //call hooked scripts
            ScriptingModule.CallHooked(ScriptHook.AfterMainMenuCreate, this);
        }
Beispiel #2
0
        public override void Start()
        {
            base.Start();

            SystemText.text = CoreParams.GetShortSystemText();

            if (!CoreParams.AllowSaveLoad)
            {
                ContinueButton.gameObject.SetActive(false);
                LoadButton.gameObject.SetActive(false);
            }

            ScriptingModule.CallHooked(ScriptHook.AfterMainMenuCreate, this);
        }