Ejemplo n.º 1
0
    private void ReplayFillInOver()
    {
        ButtonScreenFill f = FindFiller("gameover");

        animFramework.Scale(f.fill, new Vector3(0, 0, 0), 0.5f, 0.05f, ActuallyStartGame);
        animFramework.Fade(f.image, Color.clear, 0.5f, 0.05f);
    }
Ejemplo n.º 2
0
    private void ClawFillOver()
    {
        ButtonScreenFill f = FindFiller(shopOpen);

        animFramework.Scale(f.fill, new Vector3(0, 0, 0), 0.5f, 0.05f, actuallyOpenClaw);
        animFramework.Fade(f.image, f.off, 0.5f, 0.05f);
    }
Ejemplo n.º 3
0
    private void MenuFillInOver()
    {
        ButtonScreenFill f = FindFiller("menu_start");

        animFramework.Scale(f.fill, new Vector3(0, 0, 0), 0.5f, 0.05f, ActuallyStartGame);
        animFramework.Fade(f.image, f.off, 0.5f, 0.05f);
    }
Ejemplo n.º 4
0
    private void actuallyOpenClaw()
    {
        ButtonScreenFill f = FindFiller(shopOpen);

        f.icon.SetActive(true);
        _active("claw", true);
        anim.Open("claw", 0);
    }
Ejemplo n.º 5
0
    private void actuallyOpenShop()
    {
        ButtonScreenFill f = FindFiller(shopOpen);

        f.Reset();
        _active("shop", true);
        anim.Open("shop", 8);
    }
Ejemplo n.º 6
0
    private void ActuallyStartGame()
    {
        ButtonScreenFill f = FindFiller("menu_start");

        f.icon.SetActive(true);
        _active("game", true);
        anim.Open("game", 0);
        App.Instance.music.ChangeTrack(App.Instance.soundDB.GameTrack());
        StartCoroutine(MoveWalls(true));
        App.Instance.StartGame();
    }
Ejemplo n.º 7
0
    public void Replay()
    {
        AudioController.PlaySound(App.Instance.soundDB.Click());
        //close menu
        anim.Close("gameover", 0);
        ButtonInteractive("gameover", false);
        ButtonScreenFill f = FindFiller("gameover");

        animFramework.Scale(f.fill, new Vector3(6, 6, 6), 0.5f, 0.05f, ReplayFillInOver);
        animFramework.Fade(f.image, new Color(0.8901961f, 0.8431373f, 0.1098039f, 1), 0.5f, 0.05f);
        f.icon.SetActive(false);
    }
Ejemplo n.º 8
0
    public void ShowClaw(string scene)
    {
        anim.Close(scene, 0);
        ButtonInteractive(scene, false);
        shopOpen = scene + "_claw";

        ButtonScreenFill f = FindFiller(shopOpen);

        animFramework.Scale(f.fill, f.size, 0.5f, 0.05f, ClawFillOver);
        animFramework.Fade(f.image, f.on, 0.5f, 0.05f);
        f.icon.SetActive(false);
    }
Ejemplo n.º 9
0
    public void ShowShop(string scene)
    {
        AudioController.PlaySound(App.Instance.soundDB.Click());
        anim.Close(scene, 0);
        ButtonInteractive(scene, false);
        shopOpen = scene + "_shop";

        ButtonScreenFill f = FindFiller(shopOpen);

        animFramework.Scale(f.fill, f.size, 0.5f, 0.05f, ShopFillOver);
        animFramework.Fade(f.image, f.on, 0.5f, 0.05f);
        f.icon.SetActive(false);
    }
Ejemplo n.º 10
0
    public void StartGame()
    {
        AudioController.PlaySound(App.Instance.soundDB.Click());

        //close menu
        anim.Close("menu", 0);
        ButtonInteractive("menu", false);


        ButtonScreenFill f = FindFiller("menu_start");

        animFramework.Scale(f.fill, f.size, 0.5f, 0.05f, MenuFillInOver);
        animFramework.Fade(f.image, f.on, 0.5f, 0.05f);
        f.icon.SetActive(false);
    }
Ejemplo n.º 11
0
    public void ShowGameover()
    {
        ButtonScreenFill f = FindFiller("gameover");

        f.icon.SetActive(true);

        ButtonInteractive("gameover", true);
        _active("gameover", true);
        FindFiller("gameover_shop").Reset();
        FindFiller("gameover_claw").Reset();
        gameoverScoreText.text = "Score\n<size=60%>0";
        anim.Close("game", 0);
        anim.Open("gameover", 3);

        //Move the walls
        StartCoroutine(MoveWalls(false));
    }