How do i fix this? error CS0246

error CS0246: The type or namespace name `Attribute’ could not be found. Are you missing a using directive or an assembly reference?

using System.Collections.Generic;

public class ModifiedStat : BaseStat {
private List _mods;
private int _modValue;

public ModifiedStat(){
_mods = new List();
_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.AdjustedBaseLevel * att.ratio);
}

public int AdjustedBaseValue{
get{return BaseValue + BuffValue + _modValue; }
}
public void Update(){
CalculateModValue ();
}
}
public struct ModifyingAttribute {
public Attribute attribute;
public float ratio;

public ModifyingAttribute(Attribute att, float rat) {
attribute = att;
ratio = rat;
}
}

using System;

i am now getting “error CS1061: Type System.Attribute' does not contain a definition for AdjustedBaseLevel’ and no extension method AdjustedBaseLevel' of type System.Attribute’ could be found (are you missing a using directive or an assembly reference?)” how do i fix that?

At a guess, you don’t actually want to use System.Attribute, you probably have your own Attribute class (you may need to rename it). Where is the code for this?

Please don’t double post your topic (and use code tags)