Hello there, im getting some errors in my scripts now and i cant figure out what to change cus it seems right to me this is the errors im getting ::
Assets/scripts/character classes/ModifiedStat.cs(21,55): error CS1061: Type ModifyingAttribute' does not contain a definition for Attribute’ and no extension method Attribute' of type ModifyingAttribute’ could be found (are you missing a using directive or an assembly reference?)
Assets/scripts/character classes/ModifiedStat.cs(19,18): error CS1061: Type System.Collections.Generic.List<ModifyingAttribute>' does not contain a definition for count’ and no extension method count' of type System.Collections.Generic.List’ could be found (are you missing a using directive or an assembly reference?)
and a warning
Assets/scripts/character classes/ModifiedStat.cs(25,24): warning CS0109: The member `ModifiedStat.AdjustBaseValue’ does not hide an inherited member. The new keyword is not required
using System.Collections.Generic;
public class ModifiedStat : BaseStat {
private List<ModifyingAttribute> _mods; // en lista av attrubytes some ändrar statsen
private int _modValue; //
public ModifiedStat(){
_mods = new List<ModifyingAttribute>();
_modValue = 0 ;
}
public void AddModifier(ModifyingAttribute mod) {
_mods.Add (mod);
}
private void CalculateModValue () {
_modValue = 0;
if(_mods.count > 0)
foreach(ModifyingAttribute att in _mods)
_modValue += (int)att.Attribute.AdjustedBaseValue * att.ratio;
}
public new int AdjustBaseValue {
get{return baseValue + buffValue + _modValue; }
}
public void update() {
CalculateModValue();
}
}
public struct ModifyingAttribute {
public Attribute attrubute;
public float ratio;
}
so there is the code, hopefully someone of you will figure it out since i cant see it. thank god for great people here helping out!