前两个页面迁移完成
This commit is contained in:
1 parent
ba324aa68d
commit
e7044b3cde
67 files changed
+6373
-3171
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6dce3e17997730b4492f91dd8fede429
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,31 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class ButtonHoverScript : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
|
||||
{
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log("鼠标悬浮");
|
||||
gameObject.transform.localScale = new Vector3(1.03f, 1.03f, 1f);
|
||||
}
|
||||
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log("鼠标松开");
|
||||
gameObject.transform.localScale = new Vector3(1f, 1f, 1f);
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56921a3ad03e30849a5a4de8be2200d7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,31 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class BScript : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
|
||||
{
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log("鼠标悬浮");
|
||||
gameObject.transform.localScale = new Vector3(1.03f, 1.03f, 1f);
|
||||
}
|
||||
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log("鼠标松开");
|
||||
gameObject.transform.localScale = new Vector3(1f, 1f, 1f);
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 727df423a048be44c9bf96931b788ac7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,78 +0,0 @@
|
||||
using Assets.Cyp;
|
||||
using Assets.Cyp.Common;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class Login : MonoBehaviour
|
||||
{
|
||||
[SerializeField] InputField phone;
|
||||
[SerializeField] InputField pwd;
|
||||
[SerializeField] Button login;
|
||||
[SerializeField] RawImage loading;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
if (login != null)
|
||||
{
|
||||
login.onClick.AddListener(Submit);
|
||||
}
|
||||
if (loading != null)
|
||||
{
|
||||
loading.texture.wrapMode = TextureWrapMode.Repeat;
|
||||
}
|
||||
}
|
||||
|
||||
async void Submit()
|
||||
{
|
||||
if (phone == null || pwd == null)
|
||||
{
|
||||
Utils.showToast(gameObject, "未绑定", 1);
|
||||
return;
|
||||
}
|
||||
//if (string.IsNullOrEmpty(phone.text) || string.IsNullOrEmpty(pwd.text))
|
||||
//{
|
||||
// Utils.showToast(gameObject, "请输入信息", 1);
|
||||
// return;
|
||||
//}
|
||||
//var res = await Global.userApi.Login(phone.text, pwd.text, "");
|
||||
//测试用
|
||||
var res = await Global.userApi.Login("15651831367", "123456", "");
|
||||
//var res = await NoAuthApi.Login(phone.text, pwd.text);
|
||||
if (res.result)
|
||||
{
|
||||
Global.CurrentUser = res.data;
|
||||
SceneManager.LoadScene("2-Main");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (phone.isFocused && pwd != null && Input.GetKeyDown(KeyCode.Tab))
|
||||
{
|
||||
pwd.ActivateInputField();
|
||||
}
|
||||
//if (Input.GetKeyDown(KeyCode.Return) && )
|
||||
//{
|
||||
//}
|
||||
//if (Input.GetKeyDown(KeyCode.Return)) {
|
||||
// Debug.Log("回车键");
|
||||
// if (pwd.isFocused)
|
||||
// {
|
||||
// this.Submit();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56b7510faf14fb04ab59d33b95cbc4a1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,4 +1,5 @@
|
||||
using Assets.Cyp.Common;
|
||||
using Assets.Scripts;
|
||||
using Assets.Scripts.Apis.Models;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
Reference in new issue
Block a user