|
如题,Animation.PlayQueued 或Animation.CrossFadeQueued,始终没弄明白动画队列播放的问题。比如我想在某条件下按顺序播放3个动画,第1个播完接着播第2个,以此类推。
JS代码:
if (Input.GetButtonDown ("Jump"))
{
animation.Play("name1");
animation.PlayQueued("name2", QueueMode.CompleteOthers );
animation.PlayQueued("name3", QueueMode.CompleteOthers );
}
或:
if (Input.GetButtonDown ("Jump"))
{
animation.Play("name1");
animation.PlayQueued("name2", QueueMode.PlayNow );
animation.PlayQueued("name3", QueueMode.CompleteOthers );
}
之类。尝试好久,出不来效果。求高人指点,不胜感激! |
|