private void OnPlayerPickUpAbility(PlayerPickUpAbility e) { if (e.Ability.GetType() == typeof(BattleArt)) { UpdatedBattleArt = (BattleArt)e.Ability; } }
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; } } } }