using System.Collections; using System.Collections.Generic; using UnityEngine; namespace DisComputer { /* * @func 介绍动画控制 * @author lz * @date 2020/07/01 */ public class IntroduceAnimation : MonoBehaviour { public List uIShowOrHides; // Start is called before the first frame update void Start() { } public void ShowAll() { StartCoroutine(ProgressShow()); } IEnumerator ProgressShow() { foreach (var item in uIShowOrHides) { item.OnShow(); yield return new WaitForSeconds(0.2f); } } public void HideAll() { foreach (var item in uIShowOrHides) { item.OnHide(); } } } }