Ejemplo n.º 1
0
    private IEnumerator normImgProcess(string imageName, params string[] btmContents)
    {
        image.SetImage(imageName);
        image.FadeIn(2);
        yield return(new WaitForSeconds(0.5f));

        for (int i = 0; i < btmContents.Length - 1; i++)
        {
            btmText.SetText(btmContents[i]);
            btmText.FadeIn(1);
            yield return(new WaitForSeconds(1));

            yield return(new WaitForSeconds(1));

            btmText.FadeOut(1);
            yield return(new WaitForSeconds(1));
        }
        btmText.SetText(btmContents[btmContents.Length - 1]);
        btmText.FadeIn(1);
        yield return(new WaitForSeconds(1));

        yield return(new WaitForSeconds(1));

        image.FadeOut(1);
        yield return(new WaitForSeconds(1f));

        btmText.FadeOut(1);
        yield return(new WaitForSeconds(1));
    }
Ejemplo n.º 2
0
    private IEnumerator normCtTxProcess(string content)
    {
        ctText.SetText(content);
        ctText.FadeIn(1);
        yield return(new WaitForSeconds(1));

        yield return(new WaitForSeconds(1));

        ctText.FadeOut(1);
        yield return(new WaitForSeconds(2));
    }
Ejemplo n.º 3
0
    private IEnumerator normImgProcess(string imageName, string btmContent)
    {
        image.SetImage(imageName);
        image.FadeIn(1);
        btmText.SetText(btmContent);
        yield return(new WaitForSeconds(0.5f));

        btmText.FadeIn(1);
        yield return(new WaitForSeconds(1));

        yield return(new WaitForSeconds(1));

        image.FadeOut(1);
        yield return(new WaitForSeconds(0.5f));

        btmText.FadeOut(1);
        yield return(new WaitForSeconds(1));
    }