Пример #1
0
    public void UpdatePoints()
    {
        var text = GameObject.FindGameObjectWithTag("Points");

        text.GetComponent <Text>().text = script.expendPoints.ToString();



        text = GameObject.FindGameObjectWithTag("strPoints");
        text.GetComponent <Text>().text = script.getStrength().ToString();

        text = GameObject.FindGameObjectWithTag("agiPoints");
        text.GetComponent <Text>().text = script.getAgility().ToString();

        text = GameObject.FindGameObjectWithTag("intPoints");
        text.GetComponent <Text>().text = script.getInteligence().ToString();

        text = GameObject.FindGameObjectWithTag("vitPoints");
        text.GetComponent <Text>().text = script.getVitality().ToString();
    }