a00e5d88-b320-44c5-99ec-73d403ebb98d.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. "use strict";
  2. cc._RF.push(module, 'a00e52IsyBExZnsc9QD67mN', 'EndScene');
  3. // Script/EndScene.ts
  4. "use strict";
  5. var __extends = (this && this.__extends) || (function () {
  6. var extendStatics = function (d, b) {
  7. extendStatics = Object.setPrototypeOf ||
  8. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  9. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  10. return extendStatics(d, b);
  11. };
  12. return function (d, b) {
  13. extendStatics(d, b);
  14. function __() { this.constructor = d; }
  15. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  16. };
  17. })();
  18. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  19. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  20. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  21. 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;
  22. return c > 3 && r && Object.defineProperty(target, key, r), r;
  23. };
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
  26. var NewClass = /** @class */ (function (_super) {
  27. __extends(NewClass, _super);
  28. function NewClass() {
  29. var _this = _super !== null && _super.apply(this, arguments) || this;
  30. //需要更多源码联系Q:852183691
  31. //或者
  32. //关注微信公众号“史于二”
  33. _this.RankInfo = null;
  34. _this.rannode = null;
  35. // LIFE-CYCLE CALLBACKS:
  36. _this.Ani = null;
  37. _this.Anistate = null;
  38. _this.rInfo = null;
  39. return _this;
  40. }
  41. NewClass.prototype.onLoad = function () {
  42. this.rInfo = cc.instantiate(this.RankInfo);
  43. this.rannode.addChild(this.rInfo);
  44. };
  45. NewClass.prototype.start = function () {
  46. this.PlayAni();
  47. };
  48. NewClass.prototype.update = function (dt) {
  49. // cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN,this.onKeyDown,this);
  50. };
  51. /**
  52. * 排行榜的动画播放
  53. */
  54. NewClass.prototype.PlayAni = function () {
  55. this.Ani = this.rInfo.getComponent(cc.Animation);
  56. this.scheduleOnce(function () {
  57. this.Anistate = this.Ani.play();
  58. });
  59. };
  60. __decorate([
  61. property(cc.Prefab)
  62. ], NewClass.prototype, "RankInfo", void 0);
  63. __decorate([
  64. property(cc.Node)
  65. ], NewClass.prototype, "rannode", void 0);
  66. NewClass = __decorate([
  67. ccclass
  68. ], NewClass);
  69. return NewClass;
  70. }(cc.Component));
  71. exports.default = NewClass;
  72. cc._RF.pop();