# Conflicts:
#	source/bin/framework.min.js
This commit is contained in:
YHH
2022-03-05 10:24:33 +08:00
5 changed files with 9 additions and 4 deletions

View File

@@ -1355,7 +1355,7 @@ declare module es {
*/ */
protected _isColliderRegistered: any; protected _isColliderRegistered: any;
/** /**
* 镖师碰撞器的绝对位置 * 表示碰撞器的绝对位置
*/ */
readonly absolutePosition: Vector2; readonly absolutePosition: Vector2;
/** /**

View File

@@ -356,6 +356,8 @@ var es;
for (var _i = 1; _i < arguments.length; _i++) { for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i]; args[_i - 1] = arguments[_i];
} }
if (!console.assert)
return;
if (message == null) { if (message == null) {
console.assert(false); console.assert(false);
} }
@@ -3239,7 +3241,7 @@ var es;
} }
Object.defineProperty(Collider.prototype, "absolutePosition", { Object.defineProperty(Collider.prototype, "absolutePosition", {
/** /**
* 镖师碰撞器的绝对位置 * 表示碰撞器的绝对位置
*/ */
get: function () { get: function () {
return es.Vector2.add(this.entity.transform.position, this._localOffset); return es.Vector2.add(this.entity.transform.position, this._localOffset);

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,9 @@
module es { module es {
export class Insist { export class Insist {
public static fail(message: string = null, ...args: any[]) { public static fail(message: string = null, ...args: any[]) {
if (!console.assert)
return;
if (message == null) { if (message == null) {
console.assert(false); console.assert(false);
} else { } else {

View File

@@ -42,7 +42,7 @@ module es {
protected _isColliderRegistered; protected _isColliderRegistered;
/** /**
* 镖师碰撞器的绝对位置 * 表示碰撞器的绝对位置
*/ */
public get absolutePosition(): Vector2 { public get absolutePosition(): Vector2 {
return Vector2.add(this.entity.transform.position, this._localOffset); return Vector2.add(this.entity.transform.position, this._localOffset);