You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
901 B
48 lines
901 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace DisComputer
|
|
{
|
|
/*
|
|
* @func 介绍动画控制
|
|
* @author lz
|
|
* @date 2020/07/01
|
|
*/
|
|
public class IntroduceAnimation : MonoBehaviour
|
|
{
|
|
public List<UIShowOrHide> 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();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|