animator.Play("slash1");
Debug.LogError(animator.GetCurrentAnimatorStateInfo(0).IsName("slash1"));
yield return new WaitForEndOfFrame();
Debug.LogError(animator.GetCurrentAnimatorStateInfo(0).IsName("slash1"));
返回 false 和 true
照理说,我都 play 了,那不应该马上变吗,还要等一帧才能获取到 是 bug 吗?
Debug.LogError(animator.GetCurrentAnimatorStateInfo(0).IsName("slash1"));
yield return new WaitForEndOfFrame();
Debug.LogError(animator.GetCurrentAnimatorStateInfo(0).IsName("slash1"));
返回 false 和 true
照理说,我都 play 了,那不应该马上变吗,还要等一帧才能获取到 是 bug 吗?