Exemple #1
0
    void UpdateResources()
    {
        txtEau.text    = Eau.ToString();
        txtSapin.text  = Eau.ToString();
        txtPomme.text  = Nourriture.ToString();
        txtMetal.text  = Metal.ToString();
        txtPierre.text = Pierre.ToString();

        txtEnergie.text          = Energie.ToString() + "/10";
        SliderEnergie.fillAmount = Energie / 10;
    }
Exemple #2
0
    public void SetText()
    {
        argentText.text        = Argent.ToString();
        argileText.text        = Argile.ToString();
        pierreText.text        = Pierre.ToString();
        boisText.text          = Bois.ToString();
        verreText.text         = Verre.ToString();
        papyrusText.text       = Papyrus.ToString();
        PointVictoireText.text = PointVictoire.ToString();

        PlayerAdverse.argentText.text        = PlayerAdverse.Argent.ToString();
        PlayerAdverse.argileText.text        = PlayerAdverse.Argile.ToString();
        PlayerAdverse.pierreText.text        = PlayerAdverse.Pierre.ToString();
        PlayerAdverse.boisText.text          = PlayerAdverse.Bois.ToString();
        PlayerAdverse.verreText.text         = PlayerAdverse.Verre.ToString();
        PlayerAdverse.papyrusText.text       = PlayerAdverse.Papyrus.ToString();
        PlayerAdverse.PointVictoireText.text = PlayerAdverse.PointVictoire.ToString();
    }