private void startTargetPrologue(Story.TargetCharacter targetCharacter) { string path = string.Format("{0}{1}", targetCharacter.ScenarioDirPath, RsrcLoader.PROLOGUE_FILENAME); StoryMode.LoadScenario(path); StoryMode.ScenarioEndEvent.Attach(onTargetPrologueEnd); }
/********** Prologue **********/ private void startPrologue() { string path = string.Format("{0}{1}{2}", RsrcLoader.SCENARIO_FOLDER_PATH, RsrcLoader.DIR_SEPARATOR, RsrcLoader.PROLOGUE_FILENAME); StoryMode.LoadScenario(path); StoryMode.ScenarioEndEvent.Attach(onPrologueEnd); }
private void startNextScenario() { Story.TargetCharacter target = StoryMode.TargetCharacter; bool isLoaded = StoryMode.LoadScenario(target.NextScenarioPath); if (false == isLoaded) { return; } }
// public void EndStory() { string path = StoryMode.GetEndingScenarioPath(MainCharacter); Log.Debug(string.Format("story.ending path: {0}", path)); bool isLoaded = StoryMode.LoadScenario(path); if (isLoaded) { // @warn : callback's calling order StoryMode.ScenarioEndEvent.Attach(onStoryEndingScenarioEnd); } }
/********** Ending **********/ public void EndNurture() { _nurtureEndingId = NurtureMode.GetEndingId(); if (false == ExtNurtureEnding.isValid(_nurtureEndingId)) { Log.Error(string.Format("invalid nurture.ending id; {0}", _nurtureEndingId)); return; } NurtureEnding ending = Manager.Instance.DT.NurtureEnding[_nurtureEndingId]; Log.Debug(string.Format("nurture.ending id({0}), name({1})", _nurtureEndingId, ending.name)); TextAsset nurtureEndingScenario = ending.scenario; bool isLoaded = StoryMode.LoadScenario(nurtureEndingScenario); if (isLoaded) { // @warn : callback's calling order StoryMode.ScenarioEndEvent.Attach(onNurtureEndingScenarioEnd); } }