5555
This commit is contained in:
@@ -19,7 +19,7 @@ const { ccclass, property, requireComponent, disallowMultiple } = _decorator;
|
||||
export default class RoleSpineAnimator extends AnimatorSpine {
|
||||
private charactor!: Charactor;
|
||||
private dir: CharactorDirection = CharactorDirection.bottom;
|
||||
private animName: string = "Stand";
|
||||
private animName: string = "idle";
|
||||
private loop: boolean = true;
|
||||
|
||||
start() {
|
||||
@@ -45,7 +45,7 @@ export default class RoleSpineAnimator extends AnimatorSpine {
|
||||
this.animName = animName;
|
||||
this.loop = loop;
|
||||
|
||||
animName = `huaxian/${this.getDirection(this.charactor.direction)}${animName}`;
|
||||
// animName = `huaxian/${this.getDirection(this.charactor.direction)}${animName}`;
|
||||
this._spine.setAnimation(0, animName, loop);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user