// Use this for initialization
 void Start()
 {
     vocabGameController = GetComponent <VocabGameController>();
     forwardButton       = transform.Find("Arrow Right").gameObject;
     backButton          = transform.Find("Arrow Left").gameObject;
     checkButton         = transform.Find("Check").gameObject;
     forwardButton.SetActive(false);
     backButton.SetActive(false);
     checkButton.SetActive(false);
     isLastVocab = false;
 }
Beispiel #2
0
 void Awake()
 {
     gameController = GameObject.Find("Vocab Game UI").GetComponent <VocabGameController>();
     text           = gameObject.GetComponentInChildren <Text>();
     image          = gameObject.GetComponentInChildren <Image>();
 }