public void Red() { info.text = "Strength : Increases Physical Attack"; if (i > i1) { i = i - 1; StatPoint rb = GetComponent <StatPoint>(); double a = rb.points; rb.Changepoint(+1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; NonUP SD = GetComponent <NonUP>(); SD.Strength1(i); } }
public void OnMouseClick() { info.text = "Strength : Increases Physical Attack"; StatPoint rb = GetComponent <StatPoint>(); double a = rb.points; if (a > 0) { i = i + 1; rb.Changepoint(-1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; NonUP SD = GetComponent <NonUP>(); SD.Strength1(i); } }