void Start() { Instance = this; CreditsHandler = GetComponent <CreditsHandler>(); SaveSection.SetActive(false); creditsYPos = Screen.height / 2.0f; GameTitle.text = Rm_RPGHandler.Instance.GameInfo.GameTitle; GameCompany.text = Rm_RPGHandler.Instance.GameInfo.GameCompany; RecentSave = PlayerSaveLoadManager.Instance.RecentSave(); ContinueButton.gameObject.SetActive(RecentSave != null); #if (!UNITY_STANDALONE) Destroy(LoadButton.gameObject); #endif var themeObj = GameObject.Find("MainMenuTheme"); if (themeObj != null) { themeObj.AddComponent <Audio_BgMusic>(); } }
private void Awake() { instance = this; }
private void RefreshHandler() => handler = new CreditsHandler();