dcb99a198a1d0df77075b5504409e6a26e48df14.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. System.register(["cc"], function (_export, _context) {
  2. "use strict";
  3. var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, director, GameManager, _crd;
  4. _export("GameManager", void 0);
  5. return {
  6. setters: [function (_cc) {
  7. _cclegacy = _cc.cclegacy;
  8. __checkObsolete__ = _cc.__checkObsolete__;
  9. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  10. director = _cc.director;
  11. }],
  12. execute: function () {
  13. _crd = true;
  14. _cclegacy._RF.push({}, "73fa0CEfOhMdJUoZwoFIIZV", "GameManager", undefined);
  15. /*
  16. * @Author: dgflash
  17. * @Date: 2022-02-10 09:50:41
  18. * @LastEditors: dgflash
  19. * @LastEditTime: 2022-09-02 12:09:55
  20. */
  21. /** 游戏世界管理 */
  22. __checkObsolete__(['Node', 'director']);
  23. _export("GameManager", GameManager = class GameManager {
  24. constructor(root) {
  25. /** 界面根节点 */
  26. this.root = void 0;
  27. this.root = root;
  28. }
  29. /** 设置游戏动画速度 */
  30. setTimeScale(scale) {
  31. //@ts-ignore
  32. director.globalGameTimeScale = scale;
  33. }
  34. /** 获取游戏动画速度 */
  35. getTimeScale() {
  36. //@ts-ignore
  37. return director.globalGameTimeScale;
  38. }
  39. });
  40. _cclegacy._RF.pop();
  41. _crd = false;
  42. }
  43. };
  44. });
  45. //# sourceMappingURL=dcb99a198a1d0df77075b5504409e6a26e48df14.js.map