Esempio n. 1
0
 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;
 }
Esempio n. 2
0
    public BasicStat GetStat(EntityStatsType type)
    {
        if (statsDictionnary.ContainsKey(type))
        {
            return(statsDictionnary[type]);
        }

        Debug.LogError("Trying to access an undefined stat ! returning null");
        return(null);
    }