THE UNMATCHED POWER OF THE SUN
This commit is contained in:
parent
3364b5df68
commit
43a0b83748
10 changed files with 134 additions and 9 deletions
12
Assets/Scripts/AttackSpeedUpgrade.cs
Normal file
12
Assets/Scripts/AttackSpeedUpgrade.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class AttackSpeedUpgrade : AbilityUpgrade
|
||||
{
|
||||
[SerializeField] private float speedUpgradeAmount;
|
||||
|
||||
public override void ApplyUpgrade()
|
||||
{
|
||||
base.ApplyUpgrade();
|
||||
thisPlayerAbility.cooldown *= speedUpgradeAmount;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue