public void salvaValorBusto() { if (slider.value < 0) { BodyAtributesController bac = GameObject.Find("Controller").GetComponent <BodyAtributesController>(); bac.valores.Add("PBMBreastsSmall" + '#' + (slider.value * (-1)).ToString()); bac.procurarAvatar = true; } else { salvaValor("PBMBreastsSize"); } }
public void salvaValor(string atributo) { try { BodyAtributesController bac = GameObject.Find("Controller").GetComponent <BodyAtributesController>(); bac.valores.Add(atributo + '#' + slider.value.ToString()); bac.procurarAvatar = true; } catch (UnityException ue) { Debug.LogWarning(ue); } }
public void salvaValorPernas() { if (slider.value < 0) { BodyAtributesController bac = GameObject.Find("Controller").GetComponent <BodyAtributesController>(); bac.valores.Add("PBMThighsSize_NEGATIVE_" + '#' + (slider.value * (-1)).ToString()); bac.procurarAvatar = true; } else { salvaValor("PBMThighsSize"); } }