Ejemplo n.º 1
0
    private IEnumerator LoadMainSceneWithDelay()
    {
        yield return(new WaitForSeconds(1f));

        PlayerData.Instance.WelcomebackTimeStamp.Value = ServerTimeService.NowTicks();
        SceneLoadHelper.LoadMainScene();
    }
Ejemplo n.º 2
0
    public void ChangeLanguage()
    {
        List <string> list = PersistentSingleton <LocalizationService> .Instance.SupportedLanguages();

        PlayerData.Instance.Language = list[m_languageSelection];
        PersistentSingleton <LocalizationService> .Instance.ParseLocalization();

        SceneLoadHelper.LoadMainScene();
    }