public BaseWordBetaTypingBoss(string word, BetaWordBossBox spawner) { this._word = word; typeIndex = 0; wordBox = spawner; spawner.SetWord(word); }
public BetaWordBossBox SpawnWord() { GameObject wordObj = Instantiate(wordPrefab, originalPosition.transform.position, Quaternion.identity, rectCanvas); BetaWordBossBox wordDisplay = wordObj.GetComponent <BetaWordBossBox>(); return(wordDisplay); }