// Old method, remove it after android implemented. static public void Pay(string id, string callbackGameObject, string callbackMethod) { if (Application.platform == RuntimePlatform.Android) { AndroidInterfaces.CallPay(id, callbackGameObject, callbackMethod); } }
public void Pay(IAPProduct product) { string productID = productIDMap[product]; if (Config.isSkipPurchase) { PayCallback("succeed," + productID); } else { if (Application.platform == RuntimePlatform.Android) { //TODO:GL - android平台尚未实现 AndroidInterfaces.CallPay(productID, "", ""); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { iOSInterfaces.CallPay(productID); } } }