工具栏问题修改,中文

This commit is contained in:
Caiyanpeng committed 2022-01-13 22:56:47 +08:00
1 parent 0458a23c20
commit 45b3ee5bbc
9 files changed
+97 -18

No files matched your search

+10 -1
View File
@@ -391,11 +391,20 @@ public class MainController : BaseScene
float emptyt = 0;//用于无消息计时
float t = 1f;
float scanTicks = 0;
float clearcachet = 30;
// Update is called once per frame
protected override void Update()
{
base.Update();
clearcachet -= Time.deltaTime;
if (clearcachet <= 0)
{
Debug.Log("清一次");
Resources.UnloadUnusedAssets();
GC.Collect();
clearcachet = 30;
}
if (App.canvasWidth != transform.GetComponent<RectTransform>().sizeDelta.x)
{
App.canvasWidth = transform.GetComponent<RectTransform>().sizeDelta.x;