Esempio n. 1
0
    IEnumerator StartIntro()
    {
        pageCount = 0;

        image.sprite = pages[pageCount];
        FadeTool.FadeIn(0.4f);
        yield return(new WaitForSeconds(4f));

        FadeTool.FadeOut(0.4f);
        yield return(new WaitForSeconds(0.8f));

        pageCount++;
        while (pageCount < pages.Count)
        {
            image.sprite = pages[pageCount];
            FadeTool.FadeIn(0.4f);
            yield return(new WaitForSeconds(2f));

            FadeTool.FadeOut(0.4f);
            yield return(new WaitForSeconds(0.7f));

            pageCount++;
        }
        FadeTool.FadeIn(0.01f);
        anim.Play("start");
        yield return(new WaitForSeconds(2f));

        Off();
    }
Esempio n. 2
0
    // Use this for initialization
    void Awake()
    {
        ArchLoader.instance.StartCache();
        switch (SaveManager.curEnding)
        {
        case 1: SoundDelegate.instance.PlayBGM(BGM.NORMALENDINGCUT);
            FadeTool.FadeOutIn(0.5f, 1f, ShowBadImage); break;

        case 2: SoundDelegate.instance.PlayBGM(BGM.NORMALENDINGCUT);
            FadeTool.FadeIn(1f, StartCredit); break;

        case 3: SoundDelegate.instance.PlayBGM(BGM.TRUEENDINGCUT);
            FadeTool.FadeIn(1f, StartCredit); break;

        default: break;
        }
        view = GameObject.Find("Canvas").transform.Find("Credit").GetComponent <ScrollRect>();
        bar  = view.transform.Find("Scrollbar Vertical").GetComponent <Scrollbar>();
        //content = view.transform.Find("");
        image    = GameObject.Find("Canvas").transform.Find("Image").GetComponent <Image>();
        BadImage = GameObject.Find("Canvas").transform.Find("BadImage").gameObject;
    }
Esempio n. 3
0
    /*
     * IEnumerator CreditBySpeedRoutine()
     * {
     *  bar.value = 1f;
     *  while (bar.value > 0f)
     *  {
     *      bar.value -= Time.deltaTime * scrollSpeed;
     *      yield return null;
     *  }
     *  FadeTool.FadeOutIn(0.5f, 0.5f, ShowImage);
     * }
     */

    IEnumerator BadCreditRoutine()
    {
        pageCount = 0;

        image.sprite = badPages[pageCount];
        FadeTool.FadeIn(0.4f);
        yield return(new WaitForSeconds(4f));

        FadeTool.FadeOut(0.4f);
        yield return(new WaitForSeconds(0.8f));

        pageCount++;
        while (pageCount < badPages.Count)
        {
            image.sprite = badPages[pageCount];
            FadeTool.FadeIn(0.4f);
            yield return(new WaitForSeconds(2f));

            FadeTool.FadeOut(0.4f);
            yield return(new WaitForSeconds(0.7f));

            pageCount++;
        }
    }