Пример #1
0
    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>();
        }
    }
Пример #2
0
 private void Awake()
 {
     instance = this;
 }
Пример #3
0
 private void RefreshHandler() => handler = new CreditsHandler();