Exemplo n.º 1
0
    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));
    }