Exemplo n.º 1
0
    public virtual ItemStat GetStatNextLevel(int level)
    {
        if (statConfigCollection == null)
        {
            statConfigCollection = LoadResourceController.GetStatConfigCollection();
        }

        // Get base data from scriptable object
        var      baseValue = statConfigCollection.GetStatConfigData(statType).GetBaseValue(level + 1);
        ItemStat itemStat  = new ItemStat(baseValue, statType);

        return(itemStat);
    }
Exemplo n.º 2
0
 public void SetStatConfigCollection(StatConfigCollection statConfigCollection)
 {
     //if (statConfigCollection == null)
     this.statConfigCollection = statConfigCollection;
 }