12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- var t = require;
- var e = module;
- var i = exports;
- e =
- (this && this.__decorate) ||
- function (t, e, i, s) {
- var o,
- a = arguments.length,
- n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
- else
- for (var r = t.length - 1; 0 <= r; r--)
- (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
- return 3 < a && n && Object.defineProperty(e, i, n), n;
- };
- Object.defineProperty(i, "__esModule", {value: !0});
- const s = t("App"),
- o = t("GameConst"),
- a = t("GlobalAttr"),
- n = t("RoleService"),
- r = t("BaseMan"),
- {ccclass: l} = cc._decorator;
- e = e(
- [l],
- (e = class extends r.default {
- constructor() {
- super(...arguments), (this.isSit = !1), (this.posData = null), (this.isEixt = !1), (this.order = null);
- }
- onLoad() {
- this.calSpeed();
- }
- sitDown() {
- (this.state = r.CharactorState.sitdown), (this.direction = this.posData.sit.direction);
- }
- calSpeed() {
- this.moveSpeed = a.default.ins.customerMoveSpeed;
- }
- exit(t) {
- (this.state = r.CharactorState.stand),
- (this.isEixt = !0),
- this.talkCnt || n.default.ins.showLang(this.node, o.RoleLangType.COSTUMER_EXIT);
- }
- destroySelf() {
- this.node.destroy();
- }
- ranSkin() {
- var t = s.default.RandomUtils.limitInteger(1, 24);
- this.sp.setSkin("cat/Cat" + t);
- }
- })
- );
- i.default = e;
|