示例#1
0
        private void SpawnLivingLetters()
        {
            livingLetter1 = leftArea.SpawnLivingLetter(wordData1);
            livingLetter2 = rightArea.SpawnLivingLetter(wordData2);

            leftArea.MakeEntrance();
            rightArea.MakeEntrance();
        }
示例#2
0
        public void Reset()
        {
            livingLetter = null;
            var lingeringLetter = GetComponentInChildren <MakeFriendsLivingLetter>();

            if (lingeringLetter != null)
            {
                Destroy(lingeringLetter.gameObject);
            }
            movingAwayCounter = 1;
        }
示例#3
0
        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);
        }
示例#4
0
        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);
            }
        }