12345678910111213141516171819 |
- import { _decorator, Component, Node, Prefab, instantiate } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('daoju_node')
- export class daoju_node extends Component {
- @property(Prefab) daoju_shop_pf:Prefab = null
- start() {
- let daoju = instantiate(this.daoju_shop_pf);
- daoju.parent = this.node;
- }
- update(deltaTime: number) {
-
- }
- }
|