本地合并备份

This commit is contained in:
lishuo committed 2021-04-27 15:15:51 +08:00
1 parent 2b275d6dc5
commit 4353a38c96
44 files changed
+5568 -4294

No files matched your search

@@ -78,7 +78,9 @@ namespace Assets.Scenes.Ride.Scripts
else
{
Utils.DisplayImageAysnc(StartCoroutine, mapRouteImage, url, dowloadCallBack);
this.AddProcess(10);
}
}
private void dowloadCallBack(string url)
@@ -93,25 +95,7 @@ namespace Assets.Scenes.Ride.Scripts
}
var canvasGroup = mapRouteImage.GetComponent<CanvasGroup>();
canvasGroup.DOFade(1, 1);
this.AddProcess(10);
}
float t = 1f;
IEnumerator doCanvasGroup(CanvasGroup cp)
{
t -= Time.deltaTime;
while (t<0)
{
if (1 != cp.alpha)
{
cp.alpha = Mathf.Lerp(cp.alpha, 1, alphaSpeed * Time.deltaTime);
if (Mathf.Abs(1 - cp.alpha) <= 0.01f)
{
cp.alpha = 1;
}
yield return null;
}
t = 1;
}
}
//设定当前loading进度
public void AddProcess(float v)