98d226fe-4fa0-4e43-a4f8-3e5eac1c42fa.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. "use strict";
  2. cc._RF.push(module, '98d22b+T6BOQ6T4Pl6sHEL6', 'testPoint');
  3. // scripts/Game/testPoint.ts
  4. "use strict";
  5. // Learn TypeScript:
  6. // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
  7. // Learn Attribute:
  8. // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
  9. // Learn life-cycle callbacks:
  10. // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
  11. var __extends = (this && this.__extends) || (function () {
  12. var extendStatics = function (d, b) {
  13. extendStatics = Object.setPrototypeOf ||
  14. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  15. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  16. return extendStatics(d, b);
  17. };
  18. return function (d, b) {
  19. extendStatics(d, b);
  20. function __() { this.constructor = d; }
  21. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  22. };
  23. })();
  24. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  25. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  26. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  27. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  28. return c > 3 && r && Object.defineProperty(target, key, r), r;
  29. };
  30. Object.defineProperty(exports, "__esModule", { value: true });
  31. var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
  32. var NewClass = /** @class */ (function (_super) {
  33. __extends(NewClass, _super);
  34. function NewClass() {
  35. // LIFE-CYCLE CALLBACKS:
  36. var _this = _super !== null && _super.apply(this, arguments) || this;
  37. _this.isContact = false;
  38. return _this;
  39. // update (dt) {}
  40. }
  41. // onLoad () {}
  42. NewClass.prototype.start = function () {
  43. };
  44. NewClass.prototype.onBeginContact = function () {
  45. this.isContact = true;
  46. };
  47. NewClass.prototype.getContact = function () {
  48. this.node.destroy();
  49. return this.isContact;
  50. };
  51. NewClass = __decorate([
  52. ccclass
  53. ], NewClass);
  54. return NewClass;
  55. }(cc.Component));
  56. exports.default = NewClass;
  57. cc._RF.pop();