public TypedUpgrade(EntityStatsType statType, UpgradeType type, float upgradeValue, object source) : base(type, upgradeValue, source) { this.statType = statType; this.type = type; this.upgradeValue = upgradeValue; this.source = source; }
public BasicStat GetStat(EntityStatsType type) { if (statsDictionnary.ContainsKey(type)) { return(statsDictionnary[type]); } Debug.LogError("Trying to access an undefined stat ! returning null"); return(null); }