private void OnPlayerPickUpAbility(PlayerPickUpAbility e)
 {
     if (e.Ability.GetType() == typeof(BattleArt))
     {
         UpdatedBattleArt = (BattleArt)e.Ability;
     }
 }
Exemple #2
0
    private void OnPlayerPickUpAbility(PlayerPickUpAbility e)
    {
        if (e.Ability.GetType() == typeof(PassiveAbility))
        {
            UpdatePassiveAbility = (PassiveAbility)e.Ability;
            GameObject Player = CharacterOpenInfo.Self;

            CurrentSlot = 0;

            for (int i = 0; i < Player.GetComponent <CharacterAction>().EquipedPassiveAbility.Count; i++)
            {
                if (Player.GetComponent <CharacterAction>().EquipedPassiveAbility[i] == null)
                {
                    CurrentSlot = i;
                    return;
                }
            }
        }
    }