cc.Class({
extends: cc.Component,
properties: {
anim:cc.Animation,
},
// use this for initialization
onLoad: function () {
},
sheepJump:function()
{
this.anim.play("sheep-animation-jump")
},
sheepRun:function()
{
this.anim.play("sheep-animation-run")
}
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});