| | |
| | | //通过战斗类型获取阵容 |
| | | public TeamBase GetTeam(BattlePreSetType battlePassType) |
| | | { |
| | | int presetID = GetTeamID((int)battlePassType); |
| | | int presetID = GetTeamID(battlePassType); |
| | | TeamBase team = null; |
| | | |
| | | if (!teamDict.TryGetValue(presetID, out team)) |
| | |
| | | } |
| | | |
| | | // 获取指定的方案ID |
| | | public int GetTeamID(int battleType) |
| | | public int GetTeamID(BattlePreSetType battleType) |
| | | { |
| | | return FuncPresetManager.Instance.GetFuncPresetIDByBattleType(battleType, (int)FuncPresetType.Team); |
| | | return FuncPresetManager.Instance.GetFuncPresetIDByBattleType((int)battleType, (int)FuncPresetType.Team); |
| | | } |
| | | } |