cc.Class({ extends: cc.Component, properties: { }, // use this for initialization onLoad: function () { }, // called every frame update: function (dt) { }, });