cc.Class({ extends: cc.Component, properties: { }, onLoad () { this.hp = 100; this.hit = 0; this.miss = 0; }, });