loading图片遗留bug修复
This commit is contained in:
parent
f10eeac073
commit
4896fab824
File diff suppressed because it is too large
Load Diff
@ -89,7 +89,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
var sw_world = _minicamera.ViewportToWorldPoint(new Vector3(0, 0, 180));
|
||||
var sw = _map.WorldToGeoPosition(sw_world);
|
||||
|
||||
var ne_world = _minicamera.ViewportToWorldPoint(new Vector3(0.6f, 1f, 180));
|
||||
var ne_world = _minicamera.ViewportToWorldPoint(new Vector3(1f, 1f, 180));
|
||||
var ne = _map.WorldToGeoPosition(ne_world);
|
||||
|
||||
return new Vector2dBounds(new Vector2d(sw.x, sw.y), new Vector2d(ne.x, ne.y));
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user