修改动画播放逻辑
This commit is contained in:
parent
66ce882ebb
commit
a3937560c6
@ -79,8 +79,9 @@ namespace QFramework
|
|||||||
int.TryParse(frame, out curFrame);
|
int.TryParse(frame, out curFrame);
|
||||||
anim.clip = anim[animName].clip;
|
anim.clip = anim[animName].clip;
|
||||||
anim[animName].time = curFrame / anim.clip.frameRate;
|
anim[animName].time = curFrame / anim.clip.frameRate;
|
||||||
anim[animName].speed = 0;
|
|
||||||
anim.Play(animName);
|
anim.Play(animName);
|
||||||
|
anim[animName].speed = 0;
|
||||||
|
anim.Sample();
|
||||||
this.Finish();
|
this.Finish();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user