Example #1
0
    public void StartNewGame()
    {
        modpanel.ApplyChanges();


        SavedFile state = new SaveStateWorldMap(curretnCampaign);


        FilePath.CurrentSaveFilePath = SaveLoadManager.AutoSaveCampaignProgress(state);
        Globals.campaign             = curretnCampaign;


        if (curretnCampaign.initalCutscene != "")
        {
            Globals.cutsceneData = new CutsceneData(curretnCampaign.GetCutsceneCopy(curretnCampaign.initalCutscene), state, true);
            CustomeSceneLoader.LoadCutsceneScene();
        }
        else if (curretnCampaign.initalCombat != "")
        {
            state = new SavedFileMission(curretnCampaign, curretnCampaign.GetMissionData(curretnCampaign.initalCombat));
            FilePath.CurrentSaveFilePath = SaveLoadManager.AutoSaveCampaignProgress(state);

            state.SwitchScene();
        }
        else
        {
            state.SwitchScene();
        }
    }
    public override IEnumerator ExecuteAction(CutsceneController controller, bool playNextNode = true)
    {
        Campaign c = Globals.campaign;

        SavedFile state = new SavedFileMission(c, c.GetMissionData(missionID));

        FilePath.CurrentSaveFilePath = SaveLoadManager.AutoSaveCampaignProgress(state);

        state.SwitchScene();
        yield return(null);
    }