yyl
57 分钟以前 fa983b84bcdb05324ea15ee50a76f870c4c3931d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.AddTeamHeros(HeroManager.Instance.GetPowerfulHeroList());
            teamDict.Add(teamType, team);
        }
 
        return team;
    }
}