daoju_node.ts 392 B

12345678910111213141516171819
  1. import { _decorator, Component, Node, Prefab, instantiate } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('daoju_node')
  4. export class daoju_node extends Component {
  5. @property(Prefab) daoju_shop_pf:Prefab = null
  6. start() {
  7. let daoju = instantiate(this.daoju_shop_pf);
  8. daoju.parent = this.node;
  9. }
  10. update(deltaTime: number) {
  11. }
  12. }