Exemplo n.º 1
0
 public void ButtonReplayClick()
 {
     SaveGame.instance.deleteAll();
     SaveGame.instance.deleteList();
     UiManager.Instance.Popup.ButtonReplayClick();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_replay_pause);
 }
Exemplo n.º 2
0
 public void OnClick()
 {
     if (API.Instance.IsHasVideo())
     {
         API.Instance.ShowVideo(() =>
         {
             GameController.Instance.AddMoreRotate(3);
             NotifyController.Instance.ShowNotify("You got 3 rotate!");
             MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_reward__get_rotate);
         });
     }
     else
     {
         // Notify
     }
 }
Exemplo n.º 3
0
    private void OnClick()
    {
        if (_isButtonSound)
        {
            SoundController.IsSoundOn = !SoundController.IsSoundOn;
            if (SoundController.IsSoundOn == false)
            {
                SoundController.Instance.StopAllSoundEffect();
            }

            if (SoundController.IsSoundOn)
            {
                MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_on_sound);
            }
            else
            {
                MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_off_sound);
            }
        }
        else
        {
            SoundController.IsMusicOn = !SoundController.IsMusicOn;
            if (SoundController.IsMusicOn == false)
            {
                SoundController.Instance.StopBackgroundMusic();
            }
            else
            {
                SoundController.Instance.PlayBackgroundMusic();
            }

            if (SoundController.IsMusicOn)
            {
                MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_on_music);
            }
            else
            {
                MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_off_music);
            }
        }
        UpdateState();
    }
Exemplo n.º 4
0
 public void ButtonPauseClick()
 {
     UiManager.Instance.Popup.ShowPausePopup();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_pause_button);
 }
Exemplo n.º 5
0
 public void ButtonRateClick()
 {
     API.Instance.RateApp();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_rate_home);
 }
Exemplo n.º 6
0
 public void ButtonMoregameClick()
 {
     API.Instance.GotoStore();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_moregame);
 }
Exemplo n.º 7
0
 public void PlayGame()
 {
     GameController.Instance.StartGame();
     SoundController.Instance.PlayBackgroundMusic(SoundController.Instance.InGameBackgroundSound);
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_play_in_home);
 }
Exemplo n.º 8
0
 public void ButtonMenuClick()
 {
     SaveGame.instance.deleteAll();
     UiManager.Instance.Popup.ButtonMenuClick();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_menu_pause);
 }
Exemplo n.º 9
0
 public void ButtonContinueClick()
 {
     UiManager.Instance.Popup.ButtonContinueClick();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_continue_pause);
 }
Exemplo n.º 10
0
 public void ButtonReplayClick()
 {
     UiManager.Instance.Popup.ButtonReplayClick();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_replay_gameover);
 }
Exemplo n.º 11
0
 public void ButtonMenuClick()
 {
     UiManager.Instance.Popup.ButtonMenuClick();
     MyFirebase.LogButtonEvent(MyFirebase.EventButtonName.click_menu_gameover);
 }