public static void purchase(string productId, string uniqueId, string serverId, string playerId, string etc) { #if UNITY_EDITOR { Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK purchase always cancelled"); // Temporary user info for UnityEditor Development mode if (GamePotEventListener.s_instance != null) { GamePotEventListener.s_instance.onPurchaseCancel(); } else { Debug.LogError("GamePot UnityEditor listener is NULL"); } } #elif UNITY_IOS GamePotUnityPluginiOS.purchase(productId, uniqueId, serverId, playerId, etc); #elif UNITY_ANDROID GamePotUnityPluginAOS.purchase(productId, uniqueId, serverId, playerId, etc); #endif }