Ejemplo n.º 1
0
 public void OnButton_Back()
 {
     AudioManager.PlayClipStackable(AudioManager.Audio.Click);
     ShowModal(false, true);
     PlayGUI.RunManager.StartPose();
     PlayGUI.DisplayLeaderboardsModal(true);
 }
Ejemplo n.º 2
0
        public override void ShowModal(bool show, bool immediate = false)
        {
            base.ShowModal(show, immediate);

            if (show)
            {
                unpauseLabel.gameObject.SetActive(false);
                quitButton.gameObject.SetActive(true);
                unpauseButton.gameObject.SetActive(true);
                PlayGUI.DisplayPauseButton(false);
            }
        }
Ejemplo n.º 3
0
        IEnumerator UnpauseCoroutine(float timer)
        {
            unpauseLabel.gameObject.SetActive(true);
            quitButton.gameObject.SetActive(false);
            unpauseButton.gameObject.SetActive(false);

            float expired = Time.unscaledTime + timer;

            while (Time.unscaledTime < expired)
            {
                int timeRemaining = Mathf.CeilToInt(expired - Time.unscaledTime);
                if (unpausingCounter != timeRemaining)
                {
                    AudioManager.PlayClipStackable(AudioManager.Audio.Click);
                    unpausingCounter = timeRemaining;
                }
                unpauseLabel.text = "Resuming in:\n" + timeRemaining;
                yield return(null);
            }

            ShowModal(false, true);
            PlayGUI.RunManager.ButtonUnpause();
            PlayGUI.DisplayPauseButton(true);
        }
Ejemplo n.º 4
0
 protected virtual void Awake()
 {
     PlayGUI  = FindObjectOfType <PlayGUI>();
     animator = GetComponent <Animator>();
     ShowModal(false, true);
 }
 public void OnButton_Leaderboards()
 {
     AudioManager.PlayClipStackable(AudioManager.Audio.Click);
     ShowModal(false);
     PlayGUI.DisplayLeaderboardsModal(true);
 }