usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;public classTransEffect : MonoBehaviour
{public ListGoList;public float varifySpeed = 0.5f;public float aTime = 5f;//每个物体保持出现的时间
public float dTime =5f;private float minAlpha = 0.0f;private float maxAlpha =.9f;private float curAlpha = 1.0f;private float nextAlpha = 0.0f;private int i = 0;public voidOnEnable()
{
LoadGo();
}//Use this for initialization
voidStart()
{//初始化全List隐形
foreach (GoInfo go inGoList)
{
Color c=go.rend.material.color;
c.a= 0;
go.rend.material.color=c;
}
}//Update is called once per frame
public voidUpdate()
{
Trans();
}voidLoadGo()
{
GoList= new List();
GoList.Add(new GoInfo("Cylinder",