| using System.Collections.Generic; | 
| using UnityEngine; | 
|   | 
|   | 
|   | 
| public class TeamManager : GameSystemManager<TeamManager> | 
| { | 
|     protected Dictionary<TeamType, TeamBase> teamDict = new Dictionary<TeamType, TeamBase>(); | 
|   | 
|     public override void Init() | 
|     { | 
|         base.Init(); | 
|     } | 
|   | 
|     public override void Release() | 
|     { | 
|         base.Release(); | 
|     } | 
|   | 
|     public TeamBase GetTeam(TeamType teamType) | 
|     { | 
|         TeamBase team = null; | 
|   | 
|         if (!teamDict.TryGetValue(teamType, out team)) | 
|         { | 
|             team = new TeamBase(); | 
|             team.AddHeroInfos(HeroManager.Instance.GetPowerfulHeroList()); | 
|             teamDict.Add(teamType, team); | 
|         } | 
|   | 
|         return team; | 
|     } | 
| } |