Example #1
0
 private void OnDisable()
 {
     if (Instance != this)
     {
         return;
     }
     AppMetricaManager.SendUserData(CustomStatisticsManager.UserData);
 }
    private void Start()
    {
        GleyNotifications.Initialize();

        if (GleyNotifications.AppWasOpenFromNotification() != null)
        {
            AppMetricaManager.SendOpenFromPushNotification();
        }
    }
Example #3
0
    public void OnConfirmationButtonPressed()
    {
        Mediator.Instance.SoundManager.PlaySound(SoundType.Click);

        GameMode gameMode = FindObjectOfType <GameMode>();

        if (!gameMode.TryStartGame(_currentRateValue))
        {
            return;
        }

        AppMetricaManager.SendSetRate(_currentRateValue);
        GameplayManager.SettedRate = _currentRateValue;
        Close();
    }
Example #4
0
    /// <summary>
    /// Засчитать запуск игрового режима
    /// </summary>
    /// <param name="gameModeType">Игровой режим</param>
    public void AddModeLaunch(GameModeType gameModeType)
    {
        _modesRunning++;

        switch (gameModeType)
        {
        case GameModeType.BetAtRandom: _combinationAtRandomModeLaunch++; break;

        case GameModeType.Throw_Offline: _throwMoreOfflineModeLaunch++; break;

        case GameModeType.Throw_Online: _throwMoreOnlineModeLaunch++; break;

        case GameModeType.TwentyOne: _twentyOneModeLaunch++; break;
        }

        AppMetricaManager.SendGameAndModeLaunchCountData();
    }
Example #5
0
    public void OnConfirmationButtonPressed()
    {
        Mediator.Instance.SoundManager.PlaySound(SoundType.Click);

        GameMode gameMode = FindObjectOfType <GameMode>();

        if (Mediator.Instance.ResourcesStorage.Chips.Count < _currentRateValue)
        {
            _isSettedRateCallback?.Invoke(false);
            return;
        }

        AppMetricaManager.SendSetRate(_currentRateValue);
        GameplayManager.SettedRate = _currentRateValue;

        _isSettedRateCallback?.Invoke(true);

        Close();
    }
 private void OnSceneLoaded(Scene scene, LoadSceneMode loadSceneMode)
 {
     IsGameScene = scene.name == "Game";
     AppMetricaManager.SendOpenScene(scene.name);
 }
Example #7
0
 public virtual void OnPurchaseButtonPressed()
 {
     AppMetricaManager.SendProductClick(_shopProductNames.ToString());
     _onClickPurchaseHandler?.Invoke(_shopProductNames);
 }
Example #8
0
 protected override void OnEnable()
 {
     AppMetricaManager.SendSubscriptionPopupOpen();
     StartCoroutine(ActionWithDelay(() => _closeButton.gameObject.SetActive(true), 2f));
 }
Example #9
0
 public void OnPurchaseButtonPressed()
 {
     AppMetricaManager.SendSubscriptionButtonClick();
     Mediator.Instance.ShopIAPManager.BuyProduct(ShopProductNames.Subscription1);
 }
Example #10
0
 private void Awake()
 {
     Instance = this;
     DontDestroyOnLoad(this);
 }