private float GetAdditiveModifier(Stats stat) { //float total=0; //foreach (IModifier modifier in GetComponents<IModifier>()) //{ // foreach(float additive in modifier.GetAdditiveModifier(stat)) // { // total += additive; // } //} //return total; IModifier modifier = GetComponent <IModifier>(); return(modifier.GetAdditiveModifier(stat)); }