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); }
public void SetStatConfigCollection(StatConfigCollection statConfigCollection) { //if (statConfigCollection == null) this.statConfigCollection = statConfigCollection; }