小调整
This commit is contained in:
1 parent
a7ea02f70a
commit
53ec9c60ac
10 files changed
+42
-73
No files matched your search
@@ -796,9 +796,9 @@ public class LoginController : MonoBehaviour
|
||||
/// <summary>
|
||||
/// 去最后一页准备进入主场景
|
||||
/// </summary>
|
||||
async void goRegEnd()
|
||||
void goRegEnd()
|
||||
{
|
||||
if (!await UpdateInfo()) return;
|
||||
if (!UpdateInfo()) return;
|
||||
if (pageNums == 5)
|
||||
{
|
||||
this.StartScrollPanel(4);
|
||||
@@ -839,7 +839,7 @@ public class LoginController : MonoBehaviour
|
||||
/// 注册页2 修改信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
async Task<bool> UpdateInfo()
|
||||
bool UpdateInfo()
|
||||
{
|
||||
if (userResult == null) return false;
|
||||
var _days = signForm.days.GetComponent<PFUIDropdown>();
|
||||
@@ -874,7 +874,7 @@ public class LoginController : MonoBehaviour
|
||||
{
|
||||
userResult.Nickname = userResult.Phone;
|
||||
}
|
||||
var r = await ConfigHelper.userApi.Update(userResult);
|
||||
var r = ConfigHelper.userApi.Update(userResult);
|
||||
return r.result;
|
||||
//userResult.Birthday.v
|
||||
}
|
||||
|
||||
@@ -19,13 +19,17 @@ public class MainController : MonoBehaviour
|
||||
DeviceCache.Init(PFConstants.DeviceCacheFolder);
|
||||
|
||||
AntConnector.Instance((device2) => {
|
||||
//自动连接
|
||||
if (DeviceCache.Exist(device2))
|
||||
if (device2.State == DeviceState.Disconnected)
|
||||
{
|
||||
Debug.Log("自动连接" + device2.DeviceNumber);
|
||||
device2.Connect();
|
||||
//Debug.Log($"探索到新的设备{ device2.DeviceNumber }");
|
||||
//自动连接
|
||||
if (DeviceCache.Exist(device2))
|
||||
{
|
||||
Debug.Log("自动连接" + device2.DeviceNumber);
|
||||
device2.Connect();
|
||||
}
|
||||
}
|
||||
});
|
||||
}, Debug.Log);
|
||||
|
||||
|
||||
//Debug.Log(Application.dataPath);
|
||||
|
||||
Reference in new issue
Block a user