private void Update() { //慢慢加载进度条 if (IsOpen && EnegyHasCome) { thisimg.fillAmount += Time.deltaTime / ThisLenth / 2; } //进度条加载满 if (thisimg.fillAmount >= 1 && EnegyHasCome) { Event_1?.Invoke(); foreach (var item in NextLines) { if (item) { item.EnegyHasCome = true; } } if (!IsInGroup) { thisimg.fillAmount = 0; } EnegyHasCome = false; ForGroupHaveDone = true; StartCoroutine(Alwa()); } }