const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
/**
- 这个属性引用了星星预制资源
*/
@property
starPrefab: cc.Prefab = null
/**
- 地面节点,用于确定星星生成的高度
*/
@property
ground: cc.Node = null
/**
- PurpleMonster 节点,用于获取主角弹跳的高度,和控制主角行动开关
*/
@property
PurpleMonster: cc.Node = null
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start() {
}
// update (dt) {}
}

无法把节点拖放上去啊,怎么解决