hch
2025-09-09 e7e22b0cfafe53223b0a0f6b6189b2a8219f0740
Main/System/HeroUI/HeroUIManager.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using LitJson;
using UnityEngine;
@@ -39,6 +40,11 @@
        payBackMoneyType = int.Parse(config.Numerical1);
        rebornAwakeHeroMaxCount = int.Parse(config.Numerical2);
        ParseGiftConfig();
        config = FuncConfigConfig.Get("HeroBook");
        var arr = JsonMapper.ToObject<int[]>(config.Numerical1);
        bookMoneyType = arr[0];
        bookMoneyValue = arr[1];
    }
    public void OnBeforePlayerDataInitialize()
@@ -235,8 +241,8 @@
    public bool IsNewHero(int heroID)
    {
        var bookInfo = GetHeroBookInfo(heroID);
        if (bookInfo != null)
        HB122_tagSCHeroInfo.tagSCHero bookInfo;
        if (TryGetHeroBookInfo(heroID, out bookInfo))
        {
            if (bookInfo.BookInitState < 2)
            {