IEnumerator back_task()
    {
        yield return(new WaitForSeconds(0.5f));

        iTween.ScaleTo(this.gameObject, Vector3.zero, 0.5f);
        yield return(new WaitForSeconds(0.5f));

        StartCoroutine(startpage.scenechanges(startpage.gameObject, hero_intro));
        yield return(new WaitForSeconds(1.2f));

        this.gameObject.SetActive(false);
        intro_panel.SetActive(true);
    }
예제 #2
0
    IEnumerator back_1st_task()
    {
        Next_btn.gameObject.SetActive(false);
        Back_btn.gameObject.SetActive(false);
        StartCoroutine(startpage.scenechanges(Homepage_obj, main_page));
        yield return(new WaitForSeconds(1f));

        startpage.homebuttonpage.SetActive(true);
        yield return(new WaitForSeconds(0.4f));

        this.gameObject.SetActive(false);
    }
    IEnumerator nextroomactivity()
    {
        yield return(new WaitForSeconds(0.1f));

        iTween.ScaleTo(Done_msg_panel, Vector3.zero, 1f);
        iTween.MoveTo(dusbin, iTween.Hash("x", dusbinpos.x, "y", dusbinpos.y, "z", dusbinpos.z, "easeType", iTween.EaseType.linear, "isLocal", true,
                                          "time", 0.8f));
        yield return(new WaitForSeconds(1f));

        dusbin.SetActive(false);
        StartCoroutine(startpage_activitys.scenechanges(startpage, startpage_sprite));
        yield return(new WaitForSeconds(1f));

        startpage_activitys.midlayerenable();
    }