public void InitEncounter(Enums.EncounterID id)
 {
     //Debug.Log(id.ToString());
     currentConfig        = ConfigHandler.encounterConfigs[id];
     currentSequenceIndex = 0;
     Main.instance.SetScriptedUIState(currentConfig.hideHandUI, currentConfig.hideStatsUI);
     if (currentConfig.type == Enums.EncounterType.TimelineSequence)
     {
         PlayEncounter(currentConfig.sequence[0].timelineName);
     }
 }
示例#2
0
    public void StartEncounter(Enums.EncounterID encounter)
    {
        //Debug.Log(encounter.ToString());
        EncounterConfig config = ConfigHandler.encounterConfigs[encounter];

        switch (config.type)
        {
        case Enums.EncounterType.TimelineSequence:
            StartTimelineCombat(config);
            timelineScriptController.InitEncounter(config.id);
            break;

        case Enums.EncounterType.Combat:
            StartCombat(config);
            break;
        }
    }