You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Source/Scripts/SO/Upgrades/Stats Upgrade/StatsUpgrades.cs

19 lines
539 B
C#

using UnityEngine;
public enum StatsUpgradesType
{
AttackRate = 1,
AttackPower = 2,
Heal = 3
}
[CreateAssetMenu(menuName = "Game/Upgrades/Stats Upgrade")]
public class StatsUpgrades : Upgrades
{
[SerializeField] private StatsUpgradesType statsUpgradesType;
[SerializeField, Range(1, 100)] private float increasePercent;
public StatsUpgradesType StatsUpgradesType => statsUpgradesType;
public override UpgradesType GetUpgradeType() => UpgradesType.Stats;
public float IncreasePercent => increasePercent;
}