public void ConvertConversation(ConversationScriptableObject obj) { //Spawn Words Instance.wordList.Clear(); Transform wordPos = GetDeepestChild(BubbleController.ActiveBubble.transform); for (int i = 0; i < obj.conversationData.Length; i++) { Instance.wordList.Add(Instance.SpawnWord(obj.conversationData[i].connotation, obj.conversationData[i].spritePrefab, wordPos, speaker.transform, obj.conversationData[i].isEssential)); Instance.wordList[i].spritePrefab.GetComponent <SpriteRenderer>().enabled = false; } //Enable this for equally distributed Word-Spawn-Timings //GetComponent<GameManager>().TheAmountOfTimeInSecondsThatIsSleptBetweenEverySingleWordWhichAreSpawnedInThisIntervalNowFuckOffAndAcceptThisValue = GetComponent<GameManager>().SecondsPerCycle / wordList.Count; }
public void SpawnLeaders(ConversationScriptableObject obj) { //Spawn Leaders speaker = Instantiate(obj.speaker, Leader1Pos); listener = Instantiate(obj.listener, Leader2Pos); }