public void Changepoint(int amount) { points = points + amount; string s1; s1 = (points).ToString(); selectedName1.text = s1; Next4 A = GetComponent <Next4>(); A.Point(points); }
public void OnMouseClick() { info.text = "Constitution : Increases Increase Magic Defense/Resistance"; Changer rb = GetComponent<Changer>(); int a = rb.points; if (a>0) {i = i+1; rb.Changepoint(-1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent<Next4>(); SD.Constitution(i);} }
public void Red() { info.text = "Strength : Increases Physical Attack"; if (i > 8) { i = i - 1; Changer rb = GetComponent <Changer>(); int a = rb.points; rb.Changepoint(+1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent <Next4>(); SD.Strength(i); } }
public void Red() { info.text = "Vitality : Increases Physical Defence/Resistance"; if (i > 8) { i = i - 1; Changer rb = GetComponent <Changer>(); int a = rb.points; rb.Changepoint(+1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent <Next4>(); SD.Vitality(i); } }
public void Red() { info.text = "Endurance : Increases HP And Stamina"; if (i > 8) { i = i - 1; Changer rb = GetComponent <Changer>(); int a = rb.points; rb.Changepoint(+1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent <Next4>(); SD.Endurance(i); } }
public void Red() { info.text = "Dexternity : Increases Agility"; if (i > 8) { i = i - 1; Changer rb = GetComponent <Changer>(); int a = rb.points; rb.Changepoint(+1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent <Next4>(); SD.Dexternity(i); } }
public void Red() { info.text = "Intelligence : Increases Magic Attack and Mana"; if (i > 8) { i = i - 1; Changer rb = GetComponent <Changer>(); int a = rb.points; rb.Changepoint(+1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent <Next4>(); SD.Intelligence(i); } }
public void OnMouseClick() { info.text = "Strength : Increases Physical Attack"; Changer rb = GetComponent <Changer>(); int a = rb.points; if (a > 0) { i = i + 1; rb.Changepoint(-1); Debug.Log(a); string s; s = (i).ToString(); selectedName.text = s; Next4 SD = GetComponent <Next4>(); SD.Strength(i); } }