发布前微调

This commit is contained in:
lishuo committed 2022-07-08 18:55:27 +08:00
1 parent bd9696cd81
commit fccc830f71
8 files changed
+14 -39

No files matched your search

+1 -31
View File
@@ -151,43 +151,13 @@ public class DeviceView : MonoBehaviour
{
return;
}
var device = GetDevice();
if (device != null && device.State == DeviceState.Connected)
{
UIManager.ShowConfirm(App.GetLocalString("Warning"), App.GetLocalString("Disconnect the device?"), () =>
{
device.Disconnect(false);
DeviceCache.Remove(device);
UIManager.CloseConfirm();
}, 2, () => {
UIManager.CloseConfirm();
});
}
else
{
mDisconnectButtonClick();
}
mDisconnectButtonClick();
}));
#endif
UIManager.AddEvent(mDisconnectButton, EventTriggerType.PointerClick, new UnityEngine.Events.UnityAction<BaseEventData>(e => {
#if UNITY_IOS || UNITY_ANDROID
var device = GetDevice();
if (device != null && device.State == DeviceState.Connected)
{
UIManager.ShowConfirm(App.GetLocalString("Warning"), App.GetLocalString("Disconnect the device?"), () =>
{
device.Disconnect(false);
DeviceCache.Remove(device);
UIManager.CloseConfirm();
}, 2, () => {
UIManager.CloseConfirm();
});
}
#else
mDisconnectButtonClick();
#endif
}));
}
@@ -73,7 +73,6 @@ public class QuickLoginUser : MonoBehaviour
private IEnumerator Loading()
{
yield return null;
DontDestroyOnLoad(loadingPanel);
Utils.showLoadingExtension(loadingPanel);
}