public static void coupon(string couponNumber, string userData) { #if UNITY_EDITOR { Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK coupon always success"); // Temporary user info for UnityEditor Development mode if (GamePotEventListener.s_instance != null) { GamePotEventListener.s_instance.onCouponSuccess(""); } else { Debug.LogError("GamePot UnityEditor listener is NULL"); } } #elif UNITY_IOS GamePotUnityPluginiOS.coupon(couponNumber, userData); #elif UNITY_ANDROID GamePotUnityPluginAOS.coupon(couponNumber, userData); #endif }