public void EnableGodMode() { if (IsGodModeEnabled) { return; } IsGodModeEnabled = true; GlobalRecordModel.SetData(GOD_MODE_KEY, IsGodModeEnabled); StoreUpdateStateSignal.Dispatch(); }
private void InitDone(bool result) { if (!result) { return; } RefreshAllItemState(); StoreUpdateStateSignal.Dispatch(); _isInitialised = true; }
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(); }
protected override void RemoveListeners() { StoreUpdateStateSignal.RemoveListener(OnStoreUpdateState); base.RemoveListeners(); }
protected override void AddListeners() { base.AddListeners(); StoreUpdateStateSignal.AddListener(OnStoreUpdateState); }