Exemplo n.º 1
0
    void Start()
    {
        box = Infobox;
        Infobox.SetActive(false);
        myList.Add("Bear", animalImages[0]);                            // Populates list for animal images
        myList.Add("Hare", animalImages[1]);
        myList.Add("Moose", animalImages[2]);
        myList.Add("Wolf", animalImages[3]);

        place = new Transform[10];
        place = InfoPanel.GetComponentsInChildren <RectTransform>();    // Get array of RectTransform for placing boxes

        isOpen      = new bool[8];                                      // Initilising arrays
        clones      = new GameObject[8];
        sliders     = new Slider[8][];
        texts       = new Text[8][];
        animalIDs   = new int[8];
        animalNames = new string[8];

        igu = FindObjectOfType <In_Game_UI>();
        pm  = FindObjectOfType <Pause_Menu>();
    }
Exemplo n.º 2
0
 private void Start()
 {
     source = GetComponent <AudioSource>();
     igu    = FindObjectOfType <In_Game_UI>();
     database.SetActive(false);
 }
Exemplo n.º 3
0
 private void Start()
 {
     igu = FindObjectOfType <In_Game_UI>();
 }