Esempio n. 1
0
    public void AdicionaPres()
    {
        if (playerPoints > 0)
        {
            tmpResis     += 1;
            playerPoints -= 1;
            Mresis.GetComponent <TextMesh>().text = (tmpResis + resis).ToString();
        }

        Ppontos.GetComponent <TextMesh>().text = playerPoints.ToString();
    }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
    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;
    }
Esempio n. 4
0
 public void RemovePres()
 {
     if (tmpResis > 0)
     {
         tmpResis     -= 1;
         playerPoints += 1;
         if (tmpResis == 0)
         {
             Mresis.GetComponent <TextMesh>().text = resis.ToString();
         }
         else
         {
             Mresis.GetComponent <TextMesh>().text = (tmpResis + resis).ToString();
         }
         Ppontos.GetComponent <TextMesh>().text = playerPoints.ToString();
     }
 }