Exemple #1
0
    public List <HeroAbilityLevel> GetAllHeroAbilityLevel(eHeroAbilityKind _Kind)
    {
        List <HeroAbilityLevel> list = new List <HeroAbilityLevel>();

        m_HeroAbilityLevel.TryGetValue(_Kind, out list);
        return(list);
    }
Exemple #2
0
    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);
    }
Exemple #3
0
    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);
    }
Exemple #5
0
    public int GetUserAbilityLevel(eHeroAbilityKind _Kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        return(AESSecurity.DecryptIntFromBytes_Aes(UserAbilityLevel[(int)_Kind], keyIV.Key, keyIV.IV));
    }
Exemple #6
0
 public HeroAbilityLevel GetHeroAbilityLevel(eHeroAbilityKind _Kind, int _Level)
 {
     return(GetAllHeroAbilityLevel(_Kind).Find(x => x.Level == _Level));
 }
Exemple #7
0
 public HeroAbilityInfo GetHeroAbilityInfo(eHeroAbilityKind _Kind)
 {
     return(m_HeroAbilityInfo.Find(x => x.AbilityKind == _Kind));
 }