cc.Class({
extends: cc.Component,
properties: {
sheepAnim: {
default: null,
type: cc.Animation
}
},
// use this for initialization
onLoad: function () {
var anim = this.sheepAnim;
setTimeout(function() {
anim.play('sheep_jump');
}, 2000);
},
// called every frame
update: function (dt) {
},
});