TestScene.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. var s =
  5. (this && this.__decorate) ||
  6. function (t, e, i, s) {
  7. var o,
  8. a = arguments.length,
  9. n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
  10. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
  11. else
  12. for (var r = t.length - 1; 0 <= r; r--)
  13. (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
  14. return 3 < a && n && Object.defineProperty(e, i, n), n;
  15. };
  16. Object.defineProperty(i, "__esModule", {value: !0});
  17. const {ccclass: o, property: a} = cc._decorator;
  18. e = class extends cc.Component {
  19. constructor() {
  20. super(...arguments), (this.debugBtn = null), (this.prafab = null), (this.isShow = !1), (this.tempNode = null);
  21. }
  22. onLoad() {
  23. this.debugBtn.isNotPlayClickBtn = !0;
  24. }
  25. dynamicAtlasShowDebug() {
  26. this.tempNode
  27. ? (this.tempNode.destroy(), (this.tempNode = null))
  28. : ((this.tempNode = cc.instantiate(this.prafab)), this.node.addChild(this.tempNode, 0));
  29. }
  30. load() {
  31. cc.assetManager.loadAny;
  32. }
  33. };
  34. s([a({type: cc.Button})], e.prototype, "debugBtn", void 0),
  35. s([a(cc.Prefab)], e.prototype, "prafab", void 0),
  36. (e = s([o], e)),
  37. (i.default = e);