void Awake() { selectWordsScript = GameObject.FindWithTag("SelectedWords").GetComponent <WordFind_SelectWords>(); wordText = this.GetComponentInChildren <TextMeshPro>(); wordBackground = this.GetComponentInChildren <SpriteRenderer>(); }
void Awake() { levelManager = GameObject.FindWithTag("LevelManager").GetComponent <LevelManager>(); if (GameObject.FindGameObjectsWithTag("SelectedWords").Length < 1) { Instantiate(SelectWordsManagerPrefab); } selectWordsScript = GameObject.FindWithTag("SelectedWords").GetComponent <WordFind_SelectWords>(); //selectWordsScript.Start(); }