style change
This commit is contained in:
parent
438489c43f
commit
3845f1c1a7
1 changed files with 1 additions and 3 deletions
|
@ -31,11 +31,9 @@ class AgentAnimationState {
|
||||||
}
|
}
|
||||||
|
|
||||||
nextFrame() {
|
nextFrame() {
|
||||||
this.char.renderFrame(this.anim.frameInfo[this.frameIndex]);
|
this.char.renderFrame(this.anim.frameInfo[this.frameIndex++]);
|
||||||
this.frameIndex++;
|
|
||||||
|
|
||||||
if(this.frameIndex >= this.anim.frameInfo.length) {
|
if(this.frameIndex >= this.anim.frameInfo.length) {
|
||||||
console.log("animation finished!");
|
|
||||||
this.char.animationFinished();
|
this.char.animationFinished();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue