public List <HeroAbilityLevel> GetAllHeroAbilityLevel(eHeroAbilityKind _Kind) { List <HeroAbilityLevel> list = new List <HeroAbilityLevel>(); m_HeroAbilityLevel.TryGetValue(_Kind, out list); return(list); }
public void UserAbilityLevel_LevelUp(eHeroAbilityKind _Kind) { //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV(); int currentLevel = AESSecurity.DecryptIntFromBytes_Aes(UserAbilityLevel[(int)_Kind], keyIV.Key, keyIV.IV); UserAbilityLevel[(int)_Kind] = AESSecurity.Encrypt_ToBytes_Aes <int>(currentLevel + 1, keyIV.Key, keyIV.IV); }
public void UserAbilityLevelUp(eHeroAbilityKind _kind) { if (m_User != null) { m_User.UserAbilityLevel_LevelUp(_kind); if (AdventureModeInHuntSceneUI.Instance != null && _kind == eHeroAbilityKind.HP) { AdventureModeInHuntSceneUI.Instance.m_HeroInfo.SetUpgradeUIHPBar(); } } }
//private UnityEvent MasterEvent; public void Initialize(eHeroAbilityKind _Kind) { m_Kind = _Kind; Renewal_Icon(); Renewal_Level(); Renewal_Info(); Renewal_State(); Renewal_NextPrice(); Renewal_Button_Upgrade(); //MasterEvent = _event; //_event.AddListener(Renewal_Button_Upgrade); }
public int GetUserAbilityLevel(eHeroAbilityKind _Kind) { //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV(); return(AESSecurity.DecryptIntFromBytes_Aes(UserAbilityLevel[(int)_Kind], keyIV.Key, keyIV.IV)); }
public HeroAbilityLevel GetHeroAbilityLevel(eHeroAbilityKind _Kind, int _Level) { return(GetAllHeroAbilityLevel(_Kind).Find(x => x.Level == _Level)); }
public HeroAbilityInfo GetHeroAbilityInfo(eHeroAbilityKind _Kind) { return(m_HeroAbilityInfo.Find(x => x.AbilityKind == _Kind)); }