public void PurchaseOther() { //TODO: invoke gash webviwe Debug.Log("PurchaseController PurchaseOther"); appId = _appId; appkey = _appKey; appsecret = _appsecret; userId = Obj_MyselfPlayer.GetMe().uid; groupId = Obj_MyselfPlayer.GetMe().areaId.ToString(); version = ClientConfigure.VersionNumber.ToString(); Debug.Log("APPID:" + appId); Debug.Log("appkey:" + appkey); Debug.Log("appsecret:" + appsecret); Debug.Log("userId:" + userId); Debug.Log("groupId:" + groupId); Debug.Log("version:" + version); KDTLWebView.ShowWebView(ClientConfigure.getOtherPurchaseUrl() + "?userId=" + userId + "&groupId=" + groupId + "&appId=" + appId + "&appkey=" + appkey + "&appsecret=" + appsecret + "&version=" + version , PurchaseOver); }
public void RequestAppstoreUrl(GameObject obj) { //test //GotoGooglePlayUrl(true); Application.OpenURL(ClientConfigure.getAppstoreUrl()); mainUILogic.SendMessage("OnFriendShipSettleWindow"); }
public static string GetNoticeUrl() { #if UNITY_ANDROID return(AndroidConfig.getNoticeUrl()); #else //return Application.platform == RuntimePlatform.IPhonePlayer ? _getNoticeUrl() : "http://tlyd.changyou.com/PubImgSour/tlyd/article_content/notice_ios.html"; return(ClientConfigure.getIOSNoticeURL()); #endif }
public void GotoFacebookUrl(bool success) { if (success) { Debug.Log("GotoFacebookUrl Net success"); } else { Debug.Log("GotoFacebookUrl Net error"); } KDTLWebView.ShowWebView(ClientConfigure.getFacebookUrl()); }
public static string GetServerListUrl() { #if UNITY_EDITOR return(ClientConfigure.getServersListURL()); //国内畅游渠道服务器列表,1.5;劳资也没办法啊; #elif UNITY_ANDROID return(ClientConfigure.getServersListURL()); #else return(ClientConfigure.getiOSServerLIstURL()); #endif }
public void RequestFacebookUrl(GameObject obj) { //test //GotoFacebookUrl(true); if (!PlayerPrefs.HasKey(Obj_MyselfPlayer.GetMe().accountID.ToString() + "_huodong_facebookLove")) { PlayerPrefs.SetInt(Obj_MyselfPlayer.GetMe().accountID.ToString() + "_huodong_facebookLove", 1); PlayerPrefs.Save(); NetworkSender.Instance().RequestTaskOver(GotoFacebookUrl, 1); } else { KDTLWebView.ShowWebView(ClientConfigure.getFacebookUrl()); } }
public void RequestGooglePlayUrlRet(bool success) { if (success) { Debug.Log("GotoGooglePlayUrl success"); } else { Debug.Log("GotoGooglePlayUrl error"); } Application.OpenURL(ClientConfigure.getGooglePlayUrl()); mainUILogic.SendMessage("OnFriendShipSettleWindow"); }
void LoadResource() { Debug.Log("LoadResource"); if (!GooglePlayDownloader.RunningOnAndroid()) { //GUI.Label(new Rect(10, 10, Screen.width-10, 20), "Use GooglePlayDownloader only on Android device!"); Debug.Log("Use GooglePlayDownloader only on Android device!"); return; } string expPath = GooglePlayDownloader.GetExpansionFilePath(); if (expPath == null) { //GUI.Label(new Rect(10, 10, Screen.width-10, 20), "External storage is not available!"); Debug.Log("External storage is not available!"); } else { string mainPath = GooglePlayDownloader.GetMainOBBPath(expPath); string patchPath = GooglePlayDownloader.GetPatchOBBPath(expPath); Debug.Log("mainPath:" + mainPath); Debug.Log("patchPath:" + patchPath); //GUI.Label(new Rect(10, 10, Screen.width-10, 20), "Main = ..." + ( mainPath == null ? " NOT AVAILABLE" : mainPath.Substring(expPath.Length))); //GUI.Label(new Rect(10, 25, Screen.width-10, 20), "Patch = ..." + (patchPath == null ? " NOT AVAILABLE" : patchPath.Substring(expPath.Length))); if (mainPath == null) //if (GUI.Button(new Rect(10, 100, 100, 100), "Fetch OBBs")) { GooglePlayDownloader.SetMainOBBInfo(ClientConfigure.getResourceURL()); //GooglePlayDownloader.SetMainOBBFileName("file name"); GooglePlayDownloader.FetchOBB(); StartCoroutine(WaitForObbDownLoadOver()); } else { //SDKManager.GetInstance(); Application.LoadLevel(Utils.UI_NAME_Login); } } }
public static string GetVersionNumber() { #if UNITY_ANDROID return(AndroidConfig.GetVersionNumber()); #else return(Application.platform == RuntimePlatform.IPhonePlayer ? _getVersionNumber() : ClientConfigure.GetClientVersion()); #endif }
public static string GetVersionNumber() { return(ClientConfigure.GetClientVersion()); }
public void OnFeedBackClick() { KDTLWebView.ShowWebView(ClientConfigure.getFacebookUrl()); }