Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     fer = ferramentaGameObject.GetComponent <Ferramentas>();
     fer.StartQuantPrices();
     telaTextsTrabalhadores = transform.GetChild(0).transform.GetChild(8).transform.GetChild(0).gameObject;
     homensNoWork           = 100;
     textHNW.text           = homensNoWork.ToString();
     for (int i = 0; i < 14; i++)
     {
         telaTextsTrabalhadores.transform.GetChild(i).transform.GetChild(5).GetComponent <Text>().text = prices[i].ToString();
     }
 }