Exemple #1
0
    private void Awake()
    {
        gerarGrid = GetComponent <GerarGrid>();
        uiView    = GetComponent <UiView>();

        prefabsList.Add(prefabArvare1);
        prefabsList.Add(prefabPedra1);
    }
Exemple #2
0
 private void Awake()
 {
     gerargrid        = GetComponent <GerarGrid>();
     componenteTextoX = GameObject.Find("TextValorX").GetComponent <Text>();
     componenteTextoZ = GameObject.Find("TextValorZ").GetComponent <Text>();
     Textt            = GameObject.Find("Texto");
     inputX           = GameObject.Find("InputFieldValorX");
     inputZ           = GameObject.Find("InputFieldValorZ");
     BttCriarmapa     = GameObject.Find("Button");
     gatilhoUI        = true;
 }