ddd
This commit is contained in:
@@ -20,7 +20,7 @@ export default class HeroSpineAnimator extends Component {
|
||||
private spine!: sp.Skeleton;
|
||||
start() {
|
||||
this.spine = this.getComponent(sp.Skeleton)!;
|
||||
console.log("HeroSpineAnimator start");
|
||||
// console.log("HeroSpineAnimator start");
|
||||
this.playAnimation(this.animName, this.loop);
|
||||
}
|
||||
|
||||
@@ -44,9 +44,9 @@ export default class HeroSpineAnimator extends Component {
|
||||
* @param loop 是否循环播放
|
||||
*/
|
||||
protected playAnimation(animName: string, loop: boolean) {
|
||||
console.log("HeroSpineAnimator playAnimation");
|
||||
// console.log("HeroSpineAnimator playAnimation");
|
||||
if (animName) {
|
||||
console.log("HeroSpineAnimator playAnimation animName", animName);
|
||||
// console.log("HeroSpineAnimator playAnimation animName", animName);
|
||||
this.animName = animName;
|
||||
this.loop = loop;
|
||||
this.spine.setAnimation(0, this.animName, this.loop);
|
||||
|
||||
Reference in New Issue
Block a user