NGAShowFinger.js 758 B

123456789101112131415161718192021222324
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. Object.defineProperty(i, "__esModule", {value: !0});
  5. const s = t("B3Tree1");
  6. class o extends s.BaseAction {
  7. open(i) {
  8. if (this.properties.isShow) {
  9. let e = [],
  10. t = this.properties.pos.split("|");
  11. t &&
  12. t.forEach(t => {
  13. (t = t.split(",")), (t = new cc.Vec2(parseInt(t[0]) || 0, parseInt(t[1]) || 0));
  14. e.push(t);
  15. }),
  16. i.target.showMapFinger(e, this.properties.fx, this.properties.fy, this.properties.itemId);
  17. } else i.target.hideMapFinger();
  18. }
  19. tick(t) {
  20. return s.b3.SUCCESS;
  21. }
  22. close(t) {}
  23. }
  24. (i.default = o), s.register(o, "NGAShowFinger");