Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        for (int i = 0; i < needsMonitor.GetListSize(); i++)
        {
            textUI[i] = needsMonitor.needList[i].needName + " Weight :" + string.Format("{0:0.0}", needsMonitor.needList[i].GetWeight());
        }

        textMesh.text = string.Join("\n", textUI.ToArray());
    }
Ejemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        for (int i = 0; i < needsMontor.GetListSize(); i++)
        {
            textUI[i] = needsMontor.currentNeeds[i].needName + ":" + string.Format("{0:0.0}", needsMontor.currentNeeds[i].GetValue());
        }

        textMesh.text = string.Join("\n", textUI.ToArray());
    }