hch
2025-09-04 619223516d631189a2f97ec4843d00877a0cce01
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
using System;
using System.Collections;
using System.Collections.Generic;
using LitJson;
 
using UnityEngine;
 
//天赋
public partial class HeroUIManager : GameSystemManager<HeroUIManager>
{
    public const int normalGiftMaxCnt = 4;  //传说4以下
    public const int giftMaxCnt = 8;
    public int maxGiftLevel;    //单天赋最高等级,其他功能可能会增加这个上限
    public int starLevelCanAwake;   //x星可以觉醒
 
    public int washItemID;
    public int[] washByLockUseCounts;
 
    void ParseGiftConfig()
    {
        var config = FuncConfigConfig.Get("HeroStarTalent");
        maxGiftLevel = int.Parse(config.Numerical2);
        starLevelCanAwake = int.Parse(config.Numerical4);
 
        config = FuncConfigConfig.Get("HeroWash");
        washItemID = int.Parse(config.Numerical1);
        washByLockUseCounts = JsonMapper.ToObject<int[]>(config.Numerical2);
    }
 
}