public void InitializeWindow() { Population pop = gameEvent.instigator; Bystander.Mood emotion = gameEvent.mood; Localization loc = GameManager.instance.localization; if (!GameManager.instance.player.options.GetBool(Options.Option.animatedCitizens)) { float ratio = pop.moodSprites[0].rect.width / pop.moodSprites[0].rect.height; preview.texture = pop.moodSprites[(int)emotion].texture; preview.gameObject.GetComponent <AspectRatioFitter>().aspectRatio = ratio; } else { displayer = GameManager.instance.displayerManager.SetRotationFeed(pop.prefab, preview, 180, 0, 3, 30, 512); displayer.GetModel().transform.GetChild(0).gameObject.GetComponent <Animator>().Play("LookAround"); displayer.GetModel().GetComponent <Bystander>().SetEmotion(emotion); preview.gameObject.GetComponent <AspectRatioFitter>().aspectRatio = 1f; } // ADvisor name PopulationManager popMan = GameManager.instance.populationManager; string name = popMan.GetRandomName(); if (popMan.populations[pop].citizens.Count > 0) { name = popMan.populations[pop].citizens[Mathf.FloorToInt(popMan.populations[pop].citizens.Count * Random.value)].name; } loc.SetCategory("populationTypeDelegate"); advisorName.text = loc.GetLine(pop.codeName, name); title.text = loc.GetLineFromCategory("eventTitle", "event" + gameEvent.id); description.text = ""; StartTypewriting(description, loc.GetLineFromCategory("eventDescription", "event" + gameEvent.id)); }