// Use this for initialization void Start() { matchGameController = GetComponent <MatchGameController>(); 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; }
// Use this for initialization void Start() { gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MatchGameController>(); }
void Awake() { gameController = GameObject.Find("Match Game UI").GetComponent <MatchGameController>(); text = gameObject.GetComponentInChildren <Text>(); image = gameObject.GetComponentInChildren <Image>(); }