添加一句:yield return 0;
yield return 0;
比如:
IEnumerator IsAnimation()
{
Debug.Log("IsAnimation");
}
改为:
IEnumerator IsAnimation()
{
Debug.Log("IsAnimation");
yield return 0;
}
完美解决
添加一句:yield return 0;
yield return 0;
比如:
IEnumerator IsAnimation()
{
Debug.Log("IsAnimation");
}
改为:
IEnumerator IsAnimation()
{
Debug.Log("IsAnimation");
yield return 0;
}
完美解决