修改nav;增加消息弹窗

This commit is contained in:
Caiyanpeng committed 2022-01-07 11:05:32 +08:00
1 parent 2d38b63c91
commit f5385e31d6
24 files changed
+2061 -1505

No files matched your search

@@ -60,6 +60,10 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
FB.LogOut();
FB.LogInWithReadPermissions(callback: onFaceBookResp);
});
UIManager.AddEvent(transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/otherContainer/Google").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
{
Utils.CallAndroidMethod("signInWithGoogle");
});
//App.weChatController.Init(App.WxAppId);
//var s = App.weChatController.isApplicationAvilible("com.gugoumainapp","powerfun").ToString();
//Utils.showToast(null, SystemInfo.batteryLevel.ToString());
@@ -190,6 +194,19 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
}
}
public void OnMobileGoogleLoginResp(string res)
{
Utils.showToast(null, res);
//if (res.Contains("true;"))
//{
// GetComponent<LoginController>().goWxLoginWithCode(res.Replace("true;", ""), "mobile");
//}
//else
//{
// Utils.showToast(null, res.Replace("false;", ""));
//}
}
public void OnAppleResp(string res)
{
#if UNITY_IOS