Example #1
0
    IEnumerator ShowStar()
    {
        PlayerPrefs.SetInt(name, 1);

        frame.HideLines();

        unknown.SetActive(false);

        StartCoroutine(frame.Show());

        yield return(new WaitForSecondsRealtime(frame.dotFadeDuration));

        // fade in content after dot appears
        content.SetActive(true);

        StartCoroutine(UIManager.instance.FadeInWhiteImages
                           (contentFadeInTime, content.GetComponentsInChildren <Image>()));

        StartCoroutine(UIManager.instance.FadeInTexts
                           (contentFadeInTime, content.GetComponentsInChildren <Text>()));
    }