void ShowEndLetters() { EggLivingLetter letter; float startDelay = 0f; float jumpDelay = 0.5f; Vector3[] lettersEndPositions = GetLettersEndPositions(); Vector3 lLetterPosition = new Vector3(transform.localPosition.x, egg.transform.localPosition.y, transform.localPosition.z); for (int i = 0; i < answersData.Count; i++) { letter = new EggLivingLetter(transform.parent, letterObjectViewPrefab, shadowPrefab, answersData[i], lLetterPosition, transform.localPosition, lettersEndPositions[i], (jumpDelay * i) + startDelay, null); eggLivingLetters.Add(letter); } if (questionData != null) { Vector3 finalLivingLetterEndPosition = new Vector3(0, -1f, -17); var questionImageData = new LL_ImageData(questionData.Id); var finalLivingLetter = new EggLivingLetter(transform.parent, letterObjectViewPrefab, shadowPrefab, questionImageData, lLetterPosition, transform.localPosition, finalLivingLetterEndPosition, (jumpDelay * answersData.Count) + startDelay, null); eggLivingLetters.Add(finalLivingLetter); } }
void ShowEndLetters() { EggLivingLetter letter; float startDelay = 0f; float jumpDelay = 0.5f; Vector3[] lettersEndPositions = GetLettersEndPositions(); for (int i = 0; i < questionData.Count; i++) { Vector3 lLetterPosition = new Vector3(transform.localPosition.x, egg.transform.localPosition.y, transform.localPosition.z); letter = new EggLivingLetter(transform.parent, letterObjectViewPrefab, shadowPrefab, questionData[i], lLetterPosition, transform.localPosition, lettersEndPositions[i], (jumpDelay * i) + startDelay, null); eggLivingLetters.Add(letter); } }