Beispiel #1
0
    IEnumerator PreloadAccountImages(string key)
    {
        Iloading search = new SearchAccount();

        Debug.Log("searching...");
        yield return(StartCoroutine(PreloadingManager.instance.LoadingProcess(key, search)));

        if (!search.isContainErrors())
        {
            Debug.Log("Starting load account data");

            Iloading type = new Download_FindAccount();

            yield return(StartCoroutine(PreloadingManager.instance.LoadingProcess(key, type)));

            DataSave.SavePostsInfo(type.GetPosts());

            yield return(new WaitForSeconds(1));

            GameControllerScr.loadGame = false;
            SceneManager.LoadScene("Game");
        }
        else
        {
            Debug.Log("Account not found");
        }
    }
Beispiel #2
0
    IEnumerator PreloadSelfImages(string key)
    {
        Iloading type = new Download_selfAccountFromAPI();

        yield return(StartCoroutine(PreloadingManager.instance.LoadingProcess(key, type)));

        DataSave.SavePostsInfo(type.GetPosts());

        yield return(new WaitForSeconds(1));

        GameControllerScr.loadGame = false;
        SceneManager.LoadScene("Game");
    }