Esempio n. 1
0
    public void ClearData()
    {
        PlayerPrefs.SetString(NrPrefsKey.BUY_PRODUCT_ID, string.Empty);
        PlayerPrefs.SetString(NrPrefsKey.BUY_UNIQUE_CODE, string.Empty);
        PlayerPrefs.SetString(NrPrefsKey.BUY_DATE, string.Empty);
        PlayerPrefs.Save();
        TsLog.LogError("ClearData!!!", new object[0]);
        this.m_bRecovery    = false;
        this.m_bRecoverytem = false;
        this.m_bRecovery    = false;
        if (NrTSingleton <GameGuideManager> .Instance.ExecuteGuide)
        {
            GameGuideDlg gameGuideDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.GAMEGUIDE_DLG) as GameGuideDlg;

            if (gameGuideDlg != null)
            {
                if (NrTSingleton <GameGuideManager> .Instance.ContinueCheck(GameGuideType.PURCHASE_RESTORE))
                {
                    gameGuideDlg.SetTalkText();
                }
                else
                {
                    gameGuideDlg.ClickClose(null);
                }
            }
        }
        else
        {
            NrTSingleton <GameGuideManager> .Instance.RemoveGuide(GameGuideType.PURCHASE_RESTORE);
        }
    }
Esempio n. 2
0
    public void RemoveRcoveryItemData(GooglePurchase ConsumeItem)
    {
        this.m_bRecovery = false;
        if (this.m_RecoveryItem != null)
        {
            this.m_RecoveryItem = null;
        }
        this.m_PurchaseList.Remove(ConsumeItem.productId);
        if (NrTSingleton <GameGuideManager> .Instance.ExecuteGuide)
        {
            GameGuideDlg gameGuideDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.GAMEGUIDE_DLG) as GameGuideDlg;

            if (gameGuideDlg != null)
            {
                if (NrTSingleton <GameGuideManager> .Instance.ContinueCheck(GameGuideType.PURCHASE_RESTORE))
                {
                    gameGuideDlg.SetTalkText();
                }
                else
                {
                    gameGuideDlg.ClickClose(null);
                }
            }
        }
        else
        {
            NrTSingleton <GameGuideManager> .Instance.RemoveGuide(GameGuideType.PURCHASE_RESTORE);
        }
    }