public void StartUpdate(int utype) { #if UNITY_ANDROID && !UNITY_EDITOR object[] args = new object[] { utype }; PlatformSDK.Instance().mAndroidJavaObject.Call("StartUpdate", args); #endif }
public override void OnCheckNeedUpdateInfo(string param) { QQNeedUpdateInfo info = null; try { info = JsonMapper.ToObject <QQNeedUpdateInfo>(param); } catch (Exception e) { GameDebug.Log(e.Message); } if (info.status != 0) { //检查失败 GameDebug.Log("应用程序检查失败"); } if (info.newApkSize == 0) { //无更新 //TODO:通知应用程序 if (CompleteDelegate != null) { CompleteDelegate(); } return; } //进行增量更新测试 //TODO:通知应用程序 是否要增量更新,现在默认增量更新 PlatformSDK.Instance().StartUpdate(0); }
public static void BuyGameCoins(uint num, uint plylevel) { JsonData param = new JsonData(); param["openid"] = OpenId; param["loginchannel"] = SetupChannel; param["num"] = num.ToString(); param["level"] = plylevel; #if UNITY_ANDROID && !UNITY_EDITOR PlatformSDK.Instance().mAndroidJavaObject.Call("BuyGameCoins", param.ToJson()); #endif }
public static void WeiXinLogin() { #if UNITY_ANDROID && !UNITY_EDITOR PlatformSDK.Instance().mAndroidJavaObject.Call("WXLogin"); #endif }
//------------------------版本更新相关------------------------------------------- /// <summary> /// 是否需要更新 /// </summary> public void CheckNeedUpdate() { #if UNITY_ANDROID && !UNITY_EDITOR PlatformSDK.Instance().mAndroidJavaObject.Call("CheckNeedUpdate"); #endif }
public override void CheckNeedUpdate() { PlatformSDK.Instance().CheckNeedUpdate(); }