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);
|
}
|
|
}
|