Esempio n. 1
0
 /// <summary>
 /// Pause or resume current game
 /// </summary>
 public void PauseOrResumeGame()
 {
     pauseState = !pauseState;
     panel.SetActive(pauseState);
     GameSessionController.Instance.ActualGameState = (pauseState ? Enumerators.GameStates.PAUSE : Enumerators.GameStates.GAMEPLAY);
     ConfigurationsController.ToggleCursor(pauseState);
 }
Esempio n. 2
0
        private void Awake()
        {
            ConfigurationsController.ToggleCursor(true);

            GetRequiredComponents();
            Translate();
            BindEventListeners();

            AudioController.Instance.ChangeMusic(AudioController.Instance.AllLoopedSongs[3], false, string.Empty, true, false);
        }
Esempio n. 3
0
        /// <summary>
        /// Pass values
        /// </summary>
        /// <param name="timeScore"></param>
        /// <param name="bestCombo"></param>
        /// <param name="currentScore"></param>
        public void CallLevelComplete(float timeScore, int bestCombo, long currentScore)
        {
            ConfigurationsController.ToggleCursor(true);

            this.timeScore     = Mathf.FloorToInt(timeScore);
            this.bestCombo     = bestCombo;
            this.currentScore  = currentScore;
            this.numberOfBalls = FindObjectsOfType <Ball>().Length;

            StartCoroutine(LevelComplete());
        }
Esempio n. 4
0
        private void Awake()
        {
            coversDictionary = new Dictionary <string, Sprite>();
            Time.timeScale   = 1f;

            ConfigurationsController.ToggleCursor(true);

            FillCoversDictionary();
            GetRequiredComponents();
            Translate();
            BindEventListeners();
            GetSongInfo();

            defaultColor = repeatButtonImage.color;
        }
        private void Awake()
        {
            Instance = this;

            ConfigurationsController.ToggleCursor(true);

            GetRequiredComponents();
            Translate();
            BindEventListeners();

            AudioController.Instance.ChangeMusic(AudioController.Instance.AllLoopedSongs[0], false, string.Empty, true, false);

            // Resets for animation works
            Time.timeScale = 1f;
            HasSavedGame   = ProgressManager.HasProgress();
        }