public void Buy(string purchaseID, string productID, string name, double price, double originalPrice, int quantity, string description) { if (Application.platform == RuntimePlatform.IPhonePlayer) { this.m_BuyError = null; if (Bonjour.IsLogined()) { Bonjour.UniPay(purchaseID, productID, name, price, price, quantity, description); this.m_BuyState = BuyState.Buying; } else { this.m_BuyState = BuyState.Fail; this.m_BuyError = "Not Login yet!"; } } }