예제 #1
0
 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);
 }
예제 #2
0
        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
        }
예제 #3
0
 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;
 }