| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using LitJson; |
| | | |
| | | using UnityEngine; |
| | | |
| | |
| | | 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() |
| | |
| | | |
| | | 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) |
| | | { |