コード例 #1
0
	// ------
	void BuyWaitResultHandler(GuiPopup inPopup, E_PopupResultCode inResult)
	{
		//Debug.Log("Waiting for buy finished. popup: " + inResult + " action status " + BuyActionStatus);
		if (inResult == E_PopupResultCode.Success)
		{
			Owner.Back();
			m_ResearchItem.StateChanged();
			SendResult(E_PopupResultCode.Ok);
		}
		else
		{
			Owner.Back();
			SendResult(E_PopupResultCode.Failed);
		}

		m_ResearchItem = null;
#if !TEMPORARY_UPGRADE_HACK
		m_UpgradeCloudAction = null;
#endif
	}
コード例 #2
0
    void BuyWaitResultHandler(GuiPopup inPopup, E_PopupResultCode inResult)
    {
        //Debug.Log("Waiting for buy finished. popup: " + inResult + " action status " + BuyActionStatus);
        if (inResult == E_PopupResultCode.Success)
        {
            Owner.Back();
            ResearchSupport.Instance.AnyResearchItemChanged();
            m_ResearchItem.StateChanged();
            SendResult(E_PopupResultCode.Success);
        }
        else
        {
            Owner.Back();
            SendResult(E_PopupResultCode.Failed);
        }

        m_ResearchItem          = null;
        m_BuyCloudAction        = null;
        m_CheckEquipCloudAction = null;
    }