动画事件回调
let anim= this.logoNode.getComponent(cc.Animation);
anim.play("logoStart");
//
anim.on("finished", (event, date) => {
//事件结束后根据播放动画的名字回调
if (date.name == "logoStart") {
anim.play("logoIdle");
};
}, this);
//注册后自动销毁的事件
anim.once("finished", (event, date) => {
if (date.name == "logoStart") {
anim.play("logoIdle");
};
}, this);