移动端微信接入
This commit is contained in:
1 parent
ca91f45ef3
commit
31e8e3bebb
32 files changed
+17241
-9
No files matched your search
@@ -454,11 +454,28 @@ public class LoginController : MonoBehaviour
|
||||
{ "Days",signForm.days},
|
||||
};
|
||||
avatar = Resources.Load<Texture>("Images/New Account");
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
transform.Find("Version").GetComponent<Text>().text = $"V{App.AppVersion}";
|
||||
#else
|
||||
transform.Find("Panel").Find("Version").GetComponent<Text>().text = $"V{App.AppVersion}";
|
||||
#endif
|
||||
}
|
||||
public void Test(string key)
|
||||
{
|
||||
Debug.Log(key);
|
||||
}
|
||||
|
||||
async void Init()
|
||||
{
|
||||
|
||||
#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS)
|
||||
var weChat = App.weChatController;
|
||||
//WeChatController weChat = new WeChatController();
|
||||
weChat.Init("wx9146e6697a6aef2d");
|
||||
if (weChat.IsWeChatAppInstalled())
|
||||
{
|
||||
weChat.WxLogin("snsapi_userinfo", "");
|
||||
}
|
||||
#endif
|
||||
UIManager.Instance.ModalsPanel = this.transform.Find("ModalPanel").GetComponent<PFUIPanel>();
|
||||
userInfos = UIManager.Instance.userInfos;
|
||||
App.DefaultRotateTexture = Utils.ReadTextureFromPlayerPrefs("rotateImage");
|
||||
@@ -910,10 +927,12 @@ public class LoginController : MonoBehaviour
|
||||
/// </summary>
|
||||
private void goLoginImmediately()
|
||||
{
|
||||
#if !(UNITY_IOS || UNITY_ANDROID)
|
||||
imagedf.localPosition = new Vector3(-580, -34, 0);
|
||||
imagexf.localPosition = new Vector3(0, -669, 0);
|
||||
LoginBg.localPosition = Vector3.zero;
|
||||
LoginBg.GetComponent<RectTransform>().sizeDelta = new Vector2(360, 573);
|
||||
#endif
|
||||
var scrollValue = 1f / (pageNums - 1);
|
||||
var value = 1 * scrollValue;
|
||||
scrollPanel.horizontalNormalizedPosition = value;
|
||||
@@ -924,6 +943,7 @@ public class LoginController : MonoBehaviour
|
||||
/// </summary>
|
||||
void ReturnQuick()
|
||||
{
|
||||
#if !(UNITY_IOS || UNITY_ANDROID)
|
||||
if (imagexf != null)
|
||||
{
|
||||
imagexf.DOLocalMoveY(-575, 0.3f);
|
||||
@@ -937,6 +957,7 @@ public class LoginController : MonoBehaviour
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(360, 385), 0.3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(-94, 0.3f);
|
||||
}
|
||||
#endif
|
||||
this.StartScrollPanel(0);
|
||||
}
|
||||
/// <summary>
|
||||
@@ -945,6 +966,7 @@ public class LoginController : MonoBehaviour
|
||||
/// <param name="noReturn"></param>
|
||||
public void goLogin(bool noReturn = false)
|
||||
{
|
||||
#if !(UNITY_IOS || UNITY_ANDROID)
|
||||
if (imagexf != null)
|
||||
{
|
||||
imagexf.DOLocalMoveY(-669, 0.3f);
|
||||
@@ -958,6 +980,7 @@ public class LoginController : MonoBehaviour
|
||||
LoginBg.GetComponent<RectTransform>().DOSizeDelta(new Vector2(360, 573), 0.3f);
|
||||
LoginBg.GetComponent<RectTransform>().DOLocalMoveY(0, 0.3f);
|
||||
}
|
||||
#endif
|
||||
//DOTween.To(() => o, x => o = x, t, 0.3f);
|
||||
this.StartScrollPanel(1);
|
||||
if (noReturn)
|
||||
|
||||
Reference in new issue
Block a user