修改maplist;苹果处理

This commit is contained in:
CaiYanPeng 2022-01-07 23:54:23 +08:00
parent 7431228d2f
commit f070f5a36c
4 changed files with 8 additions and 2 deletions

View File

@ -19,6 +19,8 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
void Awake()
{
transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/otherContainer/Wechat")
.gameObject.SetActive(App.weChatController.IsWeChatAppInstalled());
loginScrollView = transform.Find("Panel/LoginContainer/LoginScrollView").GetComponent<ScrollRect>();
thirdLoginPage = loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third");
//UIManager.AddEvent(loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer/BtnThirdLogin").gameObject,
@ -93,6 +95,7 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
}
App.WorkoutsUrl = r.data.Value<JObject>("Apk").Value<string>("Url");
#elif UNITY_IOS
//var sw = r.data.Value<string>("ThirdPartSwitch");
//transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/BtnThirdLogin")
// .gameObject.SetActive(sw.Equals("on") && App.weChatController.IsWeChatAppInstalled());

View File

@ -89,10 +89,14 @@ public class WeChatController
/// <returns></returns>
public bool IsWeChatAppInstalled()
{
#if !UNITY_EDITOR
#if UNITY_ANDROID
return mainActivityClass.CallStatic<bool>("IsWeChatInstalled");
#elif UNITY_IOS
return IsWechatInstalled_iOS();
#else
return false;
#endif
#else
return false;
#endif

View File

@ -94,7 +94,7 @@ public class MapListController : PFUIPanel
UIManager.AddEvent(transform.Find("Upload").gameObject, EventTriggerType.PointerClick, b =>
{
UIManager.ShowConfirm(App.GetLocalLanguage()=="zh"?"上传线路":"Upload Route",
App.GetLocalLanguage() == "zh"? @"复制www.powerfun.com至电脑端登录后点击""上传活动""按钮上传你的.fit或者.gpx文件": @"Copy www.powerfun.com to the computer and log in and click the ""Upload Activity"" button to upload your .fit or .gpx file", () =>
App.GetLocalLanguage() == "zh"? @"复制www.powerfun.com至电脑端登录后点击""上传活动""按钮上传你的.fit或者.gpx文件" : @"Copy www.powerfun.com to the computer, then log in and click the button ""Upload an Activity"" to upload your .fit or .gpx file", () =>
{
UnityEngine.GUIUtility.systemCopyBuffer = "http://www.powerfun.com";
UIManager.CloseConfirm();

View File

@ -38,7 +38,6 @@ GraphicsSettings:
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}