// Initiate spawning and showing of intro private IEnumerator Start() { Phylum phylum = SpawnManager.Instance.phyla[0]; // Get the phylum AnimalInfo.LoadAnimalInfo(phylum, isStaticAnimals); // Loads animal info for phylum yield return(ShowIntro()); // Wait for intro to show and hide SpawnManager.Instance.SpawnInfoAnimals(); // Spawn animals for info }
private IEnumerator ShowIntro() { // Wait for the intro UI to fade in. yield return(StartCoroutine(UIController.Instance.ShowIntroUI())); // Show the reticle (since there is now a selection slider) and hide the radial. Phylum phylum = SpawnManager.Instance.phyla[0]; // Get the phylum AnimalInfo.LoadAnimalInfo(phylum, isStaticAnimals); // Loads animal info for phylum m_Reticle.Show(); m_SelectionRadial.Hide(); // Wait for the selection slider to finish filling. yield return(StartCoroutine(m_SelectionSlider.WaitForBarToFill())); // Wait for the intro UI to fade out. yield return(StartCoroutine(UIController.Instance.HideIntroUI())); }