private void SpawnLivingLetters() { livingLetter1 = leftArea.SpawnLivingLetter(wordData1); livingLetter2 = rightArea.SpawnLivingLetter(wordData2); leftArea.MakeEntrance(); rightArea.MakeEntrance(); }
public void Reset() { livingLetter = null; var lingeringLetter = GetComponentInChildren <MakeFriendsLivingLetter>(); if (lingeringLetter != null) { Destroy(lingeringLetter.gameObject); } movingAwayCounter = 1; }
public MakeFriendsLivingLetter SpawnLivingLetter(LL_WordData wordData) { AdjustForDifficulty(); var instance = Instantiate(livingLetterPrefab, offscreenPosition, Quaternion.Euler(entranceRotation), this.transform) as GameObject; instance.SetActive(true); livingLetter = instance.GetComponent <MakeFriendsLivingLetter>(); livingLetter.Init(wordData); livingLetter.container = this.gameObject; AdjustForDifficulty(); return(livingLetter); }
private void SpawnLivingLetters() { livingLetter1 = leftArea.SpawnLivingLetter(wordData1); livingLetter2 = rightArea.SpawnLivingLetter(wordData2); leftArea.MakeEntrance(); rightArea.MakeEntrance(); if (VISUAL_DEBUG) { // DEBUG: color words too for easier selection livingLetter1.MarkLetters(commonLetters, helpColor); livingLetter2.MarkLetters(commonLetters, helpColor); } }