//Shows the continue box to let player continue game by using stars
    IEnumerator ContinueSequence()
    {
        //Set the black panel to dim the background
        blackPanel.SetActive(true);

        //Disable movement and input
        PlayerController.Instance.DisableMovement();
        PlayerController.Instance.DisableInput();

        //moves the continue panel down to the center of the screen
        transition.Slide(transition.continuePanel, transition.start1, transition.end2, true);

        //Shows the amount of stars they need inorder to continue the game
        amountText.text = "x" + GameStatManager.Instance.deaths;

        //Start the countdown of the timer they have to decide
        yield return(StartCoroutine("StartContinueProgressBar"));

        //Slide the continue panel back up
        yield return(StartCoroutine(transition.SlideCo(transition.continuePanel, transition.end2, transition.start1, false)));

        //Display the result panel if the player cant continue
        DisplayResultsPanel();
    }
Beispiel #2
0
 public void CloseUpgradePanel()
 {
     transition.Slide(transition.upgradePanel, transition.end2, transition.start2, false);
 }
Beispiel #3
0
 public void OpenPanel()
 {
     transition.Slide(transition.mathSettingPanel, transition.start2, transition.end2, true);
 }