void OnGUI() { if (GUILayout.Button("Pay", GUILayout.Height(200), GUILayout.Width(400))) { HolagamesSDK.getInstance().Pay("0.01_AndroidS1_10001_1_6"); //分别是价格 服务器 游戏id 支付类型 发放的钻石 } }
public static void Pay(string product_id, string account_id, bool inAppPay = false) { #if UNITY_ANDROID HolagamesSDK.getInstance().Pay(product_id); #elif UNITY_IPHONE if (inAppPay) { _Pay(product_id, account_id); } else { _WeiPay(product_id, account_id); } #endif }