【优化更新界面显示】

dev_chengFeng
gaoxin 2021-06-16 18:23:30 +08:00
parent c86cf619d0
commit 6cf9492d06
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,8 @@ namespace GameLogic
private void OnEnable()
{
GameObject go = this.transform.Find("Canvas").gameObject;
go.SetActive(false);
Image img = this.transform.Find("Canvas/LoadingScreen/bg1").GetComponent<Image>();
img.color = new Color(1f, 1f, 1f, 0f);
StartCoroutine(LoadFromStream((Sprite sp) =>
@ -90,6 +92,7 @@ namespace GameLogic
img.sprite = sp;
}
img.color = new Color(1f, 1f, 1f, 1f);
go.SetActive(true);
}));
}
private void OnDestroy()