public void initialise(GooglePlayBillingService callback, string publicKey, string[] productIds) { // Setup our GameObject to listen to events from the Java plugin. new GameObject().AddComponent <GooglePlayCallbackMonoBehaviour>().Initialise(callback); using (var pluginClass = new AndroidJavaClass("com.outlinegames.unibill.UniBill")) { plugin = pluginClass.CallStatic <AndroidJavaObject> ("instance"); } plugin.Call("initialise", publicKey); }
public void initialise(GooglePlayBillingService callback, string publicKey, string[] productIds) { #if UNITY_ANDROID // Setup our GameObject to listen to events from the Java plugin. new GameObject().AddComponent<GooglePlayCallbackMonoBehaviour>().Initialise(callback); using (var pluginClass = new AndroidJavaClass("com.outlinegames.unibill.UniBill")) { plugin = pluginClass.CallStatic<AndroidJavaObject> ("instance"); } plugin.Call("initialise", publicKey); #endif }
public void initialise (Unibill.Impl.GooglePlayBillingService callback, string publicKey) { this.callback = callback; if (available) { callback.onProductListReceived (File.ReadAllText("../../../data/requestProductsResponse.json")); } }
public void Initialise(GooglePlayBillingService callback) { this.callback = callback; }