private void OnDidFinishRestoringPurchases(BillingTransaction[] _transactions, string _error) { if (m_LoadingLayer != null) { m_LoadingLayer.SetVisible(false); } Debug.Log(string.Format("Received restore purchases response. Error = {0}.", _error.GetPrintableString())); if (_transactions != null) { Debug.Log(string.Format("Count of transaction information received = {0}.", _transactions.Length)); foreach (BillingTransaction _currentTransaction in _transactions) { this.GotProduct(_currentTransaction.ProductIdentifier); Debug.Log("Product Identifier = " + _currentTransaction.ProductIdentifier + "\n" + "Transaction State = " + _currentTransaction.TransactionState + "\n" + "Verification State = " + _currentTransaction.VerificationState + "\n" + "Transaction Date[UTC] = " + _currentTransaction.TransactionDateUTC + "\n" + "Transaction Date[Local] = " + _currentTransaction.TransactionDateLocal + "\n" + "Transaction Identifier = " + _currentTransaction.TransactionIdentifier + "\n" + "Transaction Receipt = " + _currentTransaction.TransactionReceipt + "\n" + "Error = " + _currentTransaction.Error.GetPrintableString()); } } }
public void EnableCloudService(bool enable) { m_UseCloudServices = enable; if (enable) { if (m_Inited) { return; } this.InitData(); } else { if (m_LoadingLayer != null) { m_LoadingLayer.SetVisible(false); } } }