private void OnDisable() { if (Instance != this) { return; } AppMetricaManager.SendUserData(CustomStatisticsManager.UserData); }
private void Start() { GleyNotifications.Initialize(); if (GleyNotifications.AppWasOpenFromNotification() != null) { AppMetricaManager.SendOpenFromPushNotification(); } }
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(); }
/// <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(); }
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); }
public virtual void OnPurchaseButtonPressed() { AppMetricaManager.SendProductClick(_shopProductNames.ToString()); _onClickPurchaseHandler?.Invoke(_shopProductNames); }
protected override void OnEnable() { AppMetricaManager.SendSubscriptionPopupOpen(); StartCoroutine(ActionWithDelay(() => _closeButton.gameObject.SetActive(true), 2f)); }
public void OnPurchaseButtonPressed() { AppMetricaManager.SendSubscriptionButtonClick(); Mediator.Instance.ShopIAPManager.BuyProduct(ShopProductNames.Subscription1); }
private void Awake() { Instance = this; DontDestroyOnLoad(this); }