Ejemplo n.º 1
0
    public void startGame()
    {
        Debug.Log("We Do start");
        SaveDataController saveController = this.gameObject.GetComponent <SaveDataController>();

        if (saveController.LoadSaveData())
        {
            SceneManager.LoadScene("scene/StageSelect", LoadSceneMode.Single);
        }
        else
        {
            saveController.GenerateNewSave();
            SceneManager.LoadScene("scene/StageSelect", LoadSceneMode.Single);
        }
    }