public override void SubmitGameData(U8ExtraGameData data) { NSObject extraData = Class.newInstance("U8UserExtraData"); extraData.setValueForKey("dataType", data.dataType); extraData.setValueForKey("roleID", data.roleID); extraData.setValueForKey("roleName", data.roleName); extraData.setValueForKey("roleLevel", data.roleLevel); extraData.setValueForKey("serverID", data.serverID); extraData.setValueForKey("serverName", data.serverName); extraData.setValueForKey("moneyNum", data.moneyNum); u8SDK.Call("submitGameData", extraData); }
public override void Pay(U8PayParams data) { NSObject productInfo = Class.newInstance("U8ProductInfo"); productInfo.setValueForKey("productId", data.productId); productInfo.setValueForKey("productName", data.productName); productInfo.setValueForKey("productDesc", data.productDesc); productInfo.setValueForKey("price", data.price); productInfo.setValueForKey("buyNum", data.buyNum); productInfo.setValueForKey("coinNum", data.coinNum); productInfo.setValueForKey("serverId", data.serverId); productInfo.setValueForKey("serverName", data.serverName); productInfo.setValueForKey("roleId", data.roleId); productInfo.setValueForKey("roleName", data.roleName); productInfo.setValueForKey("roleLevel", data.roleLevel); productInfo.setValueForKey("vip", data.vip); productInfo.setValueForKey("orderID", data.orderID); productInfo.setValueForKey("extension", data.extension); u8Pay.Call("pay:", productInfo); }