yyl
2025-11-27 0a01580b727239e0e764c6b71425f3dbfa91e0c5
Main/System/Team/TeamHero.cs
@@ -6,6 +6,8 @@
    public HeroCountry Country;
    public int SkinID;
    public HeroConfig heroConfig;
    public HeroSkinConfig skinConfig;
    public string guid;
@@ -42,20 +44,20 @@
        //  补充 skinid跟heroid要么同时没有 要么同时有 如果这三个id都没有的话 那就是配置严重错误 无法弥补
        heroConfig = HeroConfig.Get(heroId);
        if (null == heroConfig)
        {
            Debug.LogError("hero config is null, heroId : " + heroId);
            return;
        }
        if (fightObj.SkinID > 0 && fightObj.HeroID > 0)
        {
            // 走玩家逻辑
            var heroConfig = HeroConfig.Get(heroId);
            if (null == heroConfig)
            {
                Debug.LogError("hero config is null, heroId : " + heroId);
                return;
            }
            Country = (HeroCountry)heroConfig.Country;
            SkinID = (int)fightObj.SkinID;
            modelScale = 1f;
            name = heroConfig.Name;
        }
        else
        {