划船机优化
This commit is contained in:
1 parent
2f64aa494f
commit
87a0e7fb6d
8 files changed
+109
-80
No files matched your search
@@ -135,6 +135,7 @@ public class RowerDeviceView : MonoBehaviour
|
||||
UIManager.ShowConfirm("警告", "是否断开该设备?", () =>
|
||||
{
|
||||
device.Disconnect(false);
|
||||
DeviceCache.Remove(device);
|
||||
UIManager.CloseConfirm();
|
||||
}, 2, () => {
|
||||
UIManager.CloseConfirm();
|
||||
@@ -151,6 +152,7 @@ public class RowerDeviceView : MonoBehaviour
|
||||
var device = GetDevice();
|
||||
if (device != null && device.State == DeviceState.Connected)
|
||||
{
|
||||
DeviceCache.Remove(device);
|
||||
device.Disconnect(false);
|
||||
}
|
||||
UIManager.CloseConfirm();
|
||||
|
||||
Reference in new issue
Block a user