loading图片遗留bug修复

This commit is contained in:
lishuo committed 2021-04-19 18:38:28 +08:00
1 parent f10eeac073
commit 4896fab824
3 files changed
+1759 -1752

No files matched your search

@@ -24,7 +24,7 @@ namespace Assets.Scenes.Ride.Scripts
MapApi mapApi;
GameObject panel;
CanvasGroup canvasGroup;
GameObject loadingPanel;
private void Start()
{
int routeId = App.RouteIdParam;
@@ -32,6 +32,7 @@ namespace Assets.Scenes.Ride.Scripts
panel = transform.Find("Panel").gameObject;
mapName = transform.Find("Panel/MapName").GetComponent<Text>();
loadingPanel = transform.Find("Panel/LoadingAnimation").gameObject;
distance = transform.Find("Panel/Distance").GetComponent<Text>();
level = transform.Find("Panel/level/Text").GetComponent<Text>();
elevaction = transform.Find("Panel/Elevaction").GetComponent<Text>();
@@ -111,7 +112,8 @@ namespace Assets.Scenes.Ride.Scripts
if (canvasGroup.alpha == 0)
{
transform.gameObject.SetActive(false);
}
loadingPanel.SetActive(false);
}
}
}
}