Ejemplo n.º 1
0
    IEnumerator Open()
    {
        if (TapToSettings.isOpenSettings)
        {
            yield return(StartCoroutine(setting.Close()));

            manager.GetComponent <BoxCollider2D>().enabled = true;
        }
        MessageSystemMainScreen.OpenExitPanel();
        PlayClip();
    }
Ejemplo n.º 2
0
    IEnumerator StartGame()
    {
        float lenght = GetComponent <Animation>().GetClip("ReduceButton").length;

        GetComponent <Animation>().Play("ReduceButton");
        yield return(new WaitForSeconds(lenght));

        if (TapToSettings.isOpenSettings)
        {
            yield return(StartCoroutine(setting.Close()));
        }
        foreach (Animation anm in anim)
        {
            anm.Play("ReduceButton");
            yield return(new WaitForSeconds(lenght));
        }
        mainScreen.GetComponent <Animator>().SetBool("start", true);
    }