ccc animation

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) {

    },
});

posted @ 2016-04-18 23:47  yufenghou  阅读(106)  评论(0)    收藏  举报