public static void RequestPurchase(Purchasable purchasable) { if (null == sInstance) { Log.Error(TAG, "Activity is null!"); return; } if (null == _ouyaFacade) { Log.Error(TAG, "OuyaFacade is null!"); return; } Action action = () => { Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); Log.Info(TAG, "Construct CustomRequestPurchaseListener"); Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); sRequestPurchaseListener = new Game1.CustomRequestPurchaseListener(); Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); Log.Info(TAG, "Invoke RequestPurchase"); Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); _ouyaFacade.RequestPurchase(sInstance, purchasable, sRequestPurchaseListener); }; sInstance.RunOnUiThread(action); }
public static void RequestPurchase(Purchasable purchasable) { if (null == sInstance) { Log.Error (TAG, "Activity is null!"); return; } if (null == _ouyaFacade) { Log.Error (TAG, "OuyaFacade is null!"); return; } Action action = () => { Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); Log.Info(TAG, "Construct CustomRequestPurchaseListener"); Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); sRequestPurchaseListener = new Game1.CustomRequestPurchaseListener(); Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); Log.Info(TAG, "Invoke RequestPurchase"); Log.Info(TAG, "****************"); Log.Info(TAG, "****************"); _ouyaFacade.RequestPurchase(sInstance, purchasable, sRequestPurchaseListener); }; sInstance.RunOnUiThread (action); }