Ejemplo n.º 1
0
    public void noColorEndless()
    {
        noColorOnEndless = true;
        Color tmp = Reboot_but.GetComponent <Image>().color;

        tmp.a = 1f;
        Reboot_but.GetComponent <Image>().color = tmp;
    }
Ejemplo n.º 2
0
    public void Skip()
    {
        if (info.AudioOn)
        {
            GameObject.Find("Audio_endless_window").GetComponent <AudioSource>().Play();
        }
        gameObject.GetComponent <Animator>().SetBool("flag", true);
        endlessEnd = true;
        gameObj.SetActive(true);
        Color tmp = Reboot_but.GetComponent <Image>().color;

        if (info.endlessReboot == 0)
        {
            tmp.a = 0.4f;
        }
        else
        {
            tmp.a = 1f;
        }
        Reboot_but.GetComponent <Image>().color = tmp;
        switch (info.field_size)
        {
        case 3: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette1; break;

        case 4: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette1; break;

        case 5: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette1; break;

        case 6: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette2; break;

        case 7: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette3; break;

        case 8: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette4; break;

        case 9: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette5; break;

        case 10: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette5; break;

        default: GameObject.Find("VIGNETTE").GetComponent <Image>().sprite = vingette5; break;
        }
        DialogGO.GetComponent <DialogView>().SetFalseAll();
        scoreCamera.SetActive(false);
        skipObj.SetActive(false);
        GameObject.Find("Game").GetComponent <spawn>().StartSpawn();
    }