Пример #1
0
        public void EnableGodMode()
        {
            if (IsGodModeEnabled)
            {
                return;
            }

            IsGodModeEnabled = true;
            GlobalRecordModel.SetData(GOD_MODE_KEY, IsGodModeEnabled);

            StoreUpdateStateSignal.Dispatch();
        }
Пример #2
0
        private void InitDone(bool result)
        {
            if (!result)
            {
                return;
            }

            RefreshAllItemState();
            StoreUpdateStateSignal.Dispatch();

            _isInitialised = true;
        }
Пример #3
0
        private void OnPurchaseDone(CocoStoreItemData itemData, BuyItemResult result, Action <BuyItemResult> doneAction)
        {
            if (doneAction != null)
            {
                doneAction(result);
            }

            if (result.resultCode != BuyItemResultCode.Success)
            {
                return;
            }

            UpdateItemPurchaseState(itemData, true);
            RefreshNoAdsState();

            StoreUpdateStateSignal.Dispatch();
        }
Пример #4
0
        protected override void RemoveListeners()
        {
            StoreUpdateStateSignal.RemoveListener(OnStoreUpdateState);

            base.RemoveListeners();
        }
Пример #5
0
        protected override void AddListeners()
        {
            base.AddListeners();

            StoreUpdateStateSignal.AddListener(OnStoreUpdateState);
        }