const {ccclass, property} = cc._decorator; @ccclass export default class NBattleObj extends cc.Component { @property(cc.Node) animationNode:cc.Node=null; @property(cc.ProgressBar) hpProgress:cc.ProgressBar=null; @property(cc.ProgressBar) mpProgress:cc.ProgressBar=null; @property(cc.Sprite) roleSpr:cc.Sprite=null; @property(cc.Label) nameLabel:cc.Label=null; @property(cc.Node) effectLayer:cc.Node=null; @property(cc.Node) effectBg:cc.Node=null; @property(cc.Node) actionEffect:cc.Node=null; @property(cc.Prefab) effect:cc.Prefab=null; @property(cc.Node) bufferLayer:cc.Node=null; @property(cc.Prefab) buffPrefab:cc.Prefab=null; // onLoad () {} start () { } // update (dt) {} }