【优化更新界面显示】
parent
c86cf619d0
commit
6cf9492d06
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue