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); }
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); }
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); }
private void actuallyOpenClaw() { ButtonScreenFill f = FindFiller(shopOpen); f.icon.SetActive(true); _active("claw", true); anim.Open("claw", 0); }
private void actuallyOpenShop() { ButtonScreenFill f = FindFiller(shopOpen); f.Reset(); _active("shop", true); anim.Open("shop", 8); }
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(); }
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); }
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); }
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); }
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); }
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)); }