移除xcharts和细节调整

This commit is contained in:
lishuo committed 2021-04-28 15:37:18 +08:00
1 parent b71a15e2ba
commit 6d45d052a0
511 files changed
+5342 -1941568

No files matched your search

@@ -18,23 +18,30 @@ namespace Assets.Scenes.Ride.Scripts
sprites.Add(Resources.Load<Sprite>($"Images/Ride/wave/wave{i.ToString("0000")}"));
}
image = transform.GetComponent<Image>();
}
int index = 0;
float time = 0;
float totaltime = 0;
void Update()
{
time += Time.deltaTime;
totaltime += Time.deltaTime;
if (time < 0.03)
{
return;
}
time = 0;
image.sprite = sprites[index];
index++;
if (index % 59 == 0)
{
index = 0;
}
image.sprite = sprites[index];
index ++;
}
}
}