const {ccclass, property} = cc._decorator; @ccclass export default class Resource extends cc.Component { @property({type:cc.JsonAsset}) mapInfo:cc.JsonAsset = null; @property({type:cc.Prefab}) pf_BG:cc.Prefab = null; @property({type:cc.Prefab}) pf_Ground:cc.Prefab = null; @property({type:cc.Prefab}) pf_Box:cc.Prefab = null; @property({type:cc.Prefab}) pf_Role:cc.Prefab = null; @property({type:cc.Prefab}) pf_Saw:cc.Prefab = null; @property({type:cc.SpriteFrame}) sf_Blood:cc.SpriteFrame = null; @property({type:cc.SpriteFrame}) sf_StartCountDownAnimation:cc.SpriteFrame[] = []; onLoad(){ window.resource = this; } }