移除所有egret 依赖。移除renderablecomponent及所有依赖,移除camera。保持ecs基础框架
This commit is contained in:
@@ -53,7 +53,7 @@ module es {
|
||||
for (let y = p1.y; y <= p2.y; y++) {
|
||||
// 如果没有单元格,我们需要创建它
|
||||
let c: Collider[] = this.cellAtPosition(x, y, true);
|
||||
if (!c.firstOrDefault(c => c.hashCode == collider.hashCode))
|
||||
if (!c.firstOrDefault(c => c == collider))
|
||||
c.push(collider);
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ module es {
|
||||
continue;
|
||||
|
||||
if (bounds.intersects(collider.bounds)) {
|
||||
if (!this._tempHashSet.firstOrDefault(c => c.hashCode == collider.hashCode))
|
||||
if (!this._tempHashSet.firstOrDefault(c => c == collider))
|
||||
this._tempHashSet.push(collider);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user