yyl
2025-06-17 007fbd542c30f5fa8308128aac26ce6584b3067a
Main/System/Team/TeamBase.cs
@@ -1,3 +1,5 @@
using System;
using System.Collections.Generic;
//  阵型基础
@@ -35,6 +37,16 @@
        return true;
    }
    public void AddTeamHeros(List<HeroInfo> heroInfos)
    {
        for (int i = 0; i < heroInfos.Count; i++)
        {
            AddTeamHero(heroInfos[i]);
        }
        UpdateProperties();
    }
    public bool AddTeamHero(HeroInfo heroInfo)
    {
        if (heroInfo == null)
@@ -49,6 +61,7 @@
                teamHeros[i] = new TeamHero();
                teamHeros[i].heroInfo = heroInfo;
                teamHeros[i].heroIndex = i;
                UpdateProperties();
                return true;    
            }
        }