赞
踩
void StartAni() { StartCoroutine(Next()); //做一些事 StopCoroutine(Next()); } IEnumerator Next() { //do sth for (int i = 0; i < scintilla.Length; i++) { guang_Image.sprite = scintilla[i]; guang_Image.SetNativeSize(); yield return new WaitForSeconds(0.06f); } }
void StartAni()
{
StartCoroutine("Next");
//做一些事
StopCoroutine("Next");
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。