public static void purchaseItem(string strID, string strName, string strPrice, int nNum) { string strGameID = GAMEID; string strGameName = GAMENAME; string strGroupID = "0"; string strGroupName = SplashController.serverName; string strItemRealPrice = strPrice; string strItemmarketPrice = strPrice; string strUID = ""; { strUID = AccountManager.Instance.GetCurEmail(); } string strPurchaseInfo = string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}", strGameID, strGameName, strGroupID, strGroupName, strID, strName, nNum.ToString(), strItemRealPrice, strItemmarketPrice, strUID); WebMediator.OpenCyouPayWindow(strPurchaseInfo); //using (AndroidJavaClass cls_UnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) //{ // using (AndroidJavaObject obj_Activity = cls_UnityPlayer.GetStatic<AndroidJavaObject>("currentActivity")) // { // obj_Activity.Call("openPayWindow", strPurchaseInfo); // } //} }