예제 #1
0
    private IEnumerator Start()
    {
        // If there is a save file
        if (Savegame.checkIfSaveExists())
        {
            Savegame.load();

            yield return(null);

            if (Player.checkForUpdatesOnStart)
            {
                yield return(checkIfLastVersion());
            }

            yield return(null);

            SceneManager.LoadScene("TitleScreen");
        }
        else // If no save file
        {
            Destroy(GameObject.Find("BlankImage"));
            ao = SceneManager.LoadSceneAsync("TitleScreen", LoadSceneMode.Single);
            ao.allowSceneActivation = false;
        }
    }