修改细节
This commit is contained in:
1 parent
baab5a9fb0
commit
9a545f00f4
11 files changed
+1191
-1175
No files matched your search
@@ -160,6 +160,12 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
uipanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/Panel"), UIObject.transform);
|
||||
uicanvasScaler.referenceResolution = App.PcResolution;
|
||||
loadingcanvasScaler.referenceResolution = App.PcResolution;
|
||||
var modalRect = transform.Find("UI/ModalPanel").GetComponent<RectTransform>();
|
||||
modalRect.anchorMin = new Vector2(0.5f, 0.5f);
|
||||
modalRect.anchorMax = new Vector2(0.5f, 0.5f);
|
||||
modalRect.offsetMin = Vector2.zero;
|
||||
modalRect.offsetMax = Vector2.zero;
|
||||
modalRect.sizeDelta = new Vector2(1600, 900);
|
||||
#endif
|
||||
uipanel.transform.SetAsFirstSibling();
|
||||
uiParent = uipanel.transform;
|
||||
@@ -492,9 +498,9 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
public void GameStart()
|
||||
{
|
||||
var check = CheckAnt();
|
||||
#if UNITY_EDITOR
|
||||
check = true;
|
||||
#endif
|
||||
//#if UNITY_EDITOR
|
||||
// check = true;
|
||||
//#endif
|
||||
if (check)
|
||||
{
|
||||
singleUIManager.StartRide();
|
||||
@@ -506,13 +512,16 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
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)
|
||||
, stopFunc: () => !(!CheckAnt() && !isWatch) || transform.Find("UI/Panel(Clone)/SelectPlayer").gameObject.activeInHierarchy
|
||||
, endCallback: () =>
|
||||
{
|
||||
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;
|
||||
if (!transform.Find("UI/Panel(Clone)/SelectPlayer").gameObject.activeInHierarchy)
|
||||
{
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user