暂存
This commit is contained in:
1 parent
723c881790
commit
f21b83697b
18 files changed
+1912
-1386
No files matched your search
@@ -11,6 +11,9 @@ public class LoginControllerMobile : MonoBehaviour
|
||||
// Start is called before the first frame update
|
||||
ScrollRect loginScrollView;
|
||||
Transform thirdLoginPage;
|
||||
|
||||
public WeChatController weChat { get; private set; }
|
||||
|
||||
void Awake()
|
||||
{
|
||||
loginScrollView = transform.Find("Panel/LoginContainer/LoginScrollView").GetComponent<ScrollRect>();
|
||||
@@ -26,8 +29,19 @@ public class LoginControllerMobile : MonoBehaviour
|
||||
(b) => goWxLogin());
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void Start()
|
||||
{
|
||||
transform.Find("MobileInfo/BatteryText").GetComponent<Text>().text =
|
||||
$"{Math.Round(SystemInfo.batteryLevel * 100, 0)}%";
|
||||
transform.Find("MobileInfo/TimeText").GetComponent<Text>().text =
|
||||
DateTime.Now.ToString("HH:mm");
|
||||
weChat = App.weChatController;
|
||||
weChat.Init(App.WxAppId);
|
||||
//App.weChatController.Init(App.WxAppId);
|
||||
//var s = App.weChatController.isApplicationAvilible("com.gugoumainapp","powerfun").ToString();
|
||||
//Utils.showToast(null, SystemInfo.batteryLevel.ToString());
|
||||
}
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
@@ -44,8 +58,6 @@ public class LoginControllerMobile : MonoBehaviour
|
||||
private void goWxLogin()
|
||||
{
|
||||
#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS)
|
||||
var weChat = App.weChatController;
|
||||
weChat.Init(App.WxAppId);
|
||||
if (weChat.IsWeChatAppInstalled())
|
||||
{
|
||||
weChat.WxLogin("snsapi_userinfo", "");
|
||||
|
||||
Reference in new issue
Block a user