public void AdicionaPfor() { if (playerPoints > 0) { tmpFor += 1; playerPoints -= 1; Mfor.GetComponent <TextMesh>().text = (tmpFor + forc).ToString(); } Ppontos.GetComponent <TextMesh>().text = playerPoints.ToString(); }
public void ShowValues() { Mname.GetComponent <TextMesh> ().text = nome.ToString(); Mlevel.GetComponent <TextMesh> ().text = level.ToString(); Mvida.GetComponent <TextMesh> ().text = vida.ToString(); Mener.GetComponent <TextMesh> ().text = ener.ToString(); Mtox.GetComponent <TextMesh> ().text = tox.ToString(); Mcons.GetComponent <TextMesh> ().text = cons.ToString(); Mresis.GetComponent <TextMesh> ().text = resis.ToString(); Mfor.GetComponent <TextMesh> ().text = forc.ToString(); Ppontos.GetComponent <TextMesh> ().text = playerPoints.ToString(); }
public void Cancelar() { playerPoints += tmpCons; playerPoints += tmpFor; playerPoints += tmpResis; Ppontos.GetComponent <TextMesh> ().text = playerPoints.ToString(); Mresis.GetComponent <TextMesh>().text = resis.ToString(); Mcons.GetComponent <TextMesh>().text = cons.ToString(); Mfor.GetComponent <TextMesh>().text = forc.ToString(); tmpCons = 0; tmpFor = 0; tmpResis = 0; }
public void RemovePfor() { if (tmpFor > 0) { tmpFor -= 1; playerPoints += 1; if (tmpFor == 0) { Mfor.GetComponent <TextMesh>().text = forc.ToString(); } else { Mfor.GetComponent <TextMesh>().text = (tmpFor + forc).ToString(); } Ppontos.GetComponent <TextMesh>().text = playerPoints.ToString(); } }