Example #1
0
    void Awake()
    {
        selectWordsScript = GameObject.FindWithTag("SelectedWords").GetComponent <WordFind_SelectWords>();

        wordText       = this.GetComponentInChildren <TextMeshPro>();
        wordBackground = this.GetComponentInChildren <SpriteRenderer>();
    }
Example #2
0
    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();
    }