Exemplo n.º 1
0
    private IEnumerator NewRoutine()
    {
        BlackPanel.Get().Show();

        yield return(new WaitForSeconds(1f));

        PlayerData.NewGame();
        SceneNav.GoTo(PlayerData.Get().current_scene);
    }
Exemplo n.º 2
0
    private IEnumerator LoadRoutine()
    {
        BlackPanel.Get().Show();

        yield return(new WaitForSeconds(1f));

        PlayerData.Unload(); //Make sure to unload first, or it won't load if already loaded
        PlayerData.LoadLast();
        SceneNav.GoTo(PlayerData.Get().current_scene);
    }