123456789101112131415161718192021222324252627 |
- var t = require;
- var e = module;
- var i = exports;
- Object.defineProperty(i, "__esModule", {value: !0});
- i.default = class e {
- constructor(t, e) {
- (this._x = t), (this._y = e);
- }
- set x(t) {
- (this._x = t), Log.error("被赋值了");
- }
- get x() {
- return this._x;
- }
- set y(t) {
- (this._y = t), Log.error("被赋值了");
- }
- get y() {
- return this._y;
- }
- equals(t) {
- return t instanceof e ? this._x == t._x && this._y == t._y : this._x == t.x && this._y == t.y;
- }
- clone() {
- return cc.v2(this._x, this._y);
- }
- };
|