暂存
This commit is contained in:
1 parent
558fb16160
commit
f92b623349
14 files changed
+696
-597
No files matched your search
@@ -514,11 +514,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//显示设备连接
|
||||
public void ShowDevicePanel(BaseEventData baseEventData)
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
UIManager.ShowDevicePanel();
|
||||
#else
|
||||
UIManager.Show(UIManager.Instance.DevicePanel, uipanel.GetComponent<PFUIPanel>());
|
||||
#endif
|
||||
mainController.ShowDevice(null);
|
||||
}
|
||||
//显示设置
|
||||
public void ShowSettingPanel(BaseEventData baseEventData)
|
||||
|
||||
@@ -497,10 +497,12 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
{
|
||||
singleUIManager.StartRide();
|
||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = true;
|
||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/SettingButton").GetComponent<Button>().enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = false;
|
||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/SettingButton").GetComponent<Button>().enabled = false;
|
||||
Utils.showToast(null, "Please connect the device!", duration: int.MaxValue, isLowest: true
|
||||
, stopFunc: () => !(!CheckAnt() && !isWatch)
|
||||
, endCallback: () =>
|
||||
@@ -508,6 +510,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
UIManager.Instance.DevicePanel.Close();
|
||||
singleUIManager.StartRide();
|
||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = true;
|
||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/SettingButton").GetComponent<Button>().enabled = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -646,7 +649,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
UIManager.ShowDevicePanel();
|
||||
#else
|
||||
UIManager.Show(UIManager.Instance.DevicePanel, pFUIPanel);
|
||||
UIManager.Show(UIManager.Instance.DevicePanel,null,true);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user