コード例 #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();
        }