this guy changed like a singular line of code
This commit is contained in:
parent
980deb5d09
commit
fc1d1dee00
6 changed files with 1250 additions and 1262 deletions
|
|
@ -13,8 +13,6 @@ public class AbilityUIObject : MonoBehaviour
|
|||
[Header("Ability Stats")]
|
||||
[SerializeField] private TextMeshProUGUI damage;
|
||||
[SerializeField] private TextMeshProUGUI fireRate;
|
||||
[SerializeField] private TextMeshProUGUI piercing;
|
||||
[SerializeField] private TextMeshProUGUI projectileCount;
|
||||
[Header("Upgrades")]
|
||||
[SerializeField] private int upgradeSlotAmount;
|
||||
[SerializeField] private UpgradeBoxUI templateUpgradeBox;
|
||||
|
|
@ -29,11 +27,6 @@ public class AbilityUIObject : MonoBehaviour
|
|||
abilityName.text = thisAbility.abilityName;
|
||||
damage.text = $"Damage: {thisAbility.power}";
|
||||
fireRate.text = $"Fire rate: {thisAbility.cooldown}s";
|
||||
if (thisAbility.TryGetComponent(out FireBullet isBullet))
|
||||
{
|
||||
piercing.text = $"Piercing: {isBullet.pierceAmount}";
|
||||
projectileCount.text = $"Projectiles: {isBullet.projectileCount}";
|
||||
}
|
||||
foreach (AbilityUpgrade upgrade in AbilityManager.instance.allUpgrades)
|
||||
{
|
||||
if (thisAbility.GetUpgradeCount(upgrade) > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue