loading图片遗留bug修复
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user