新增sceneTransition 用于场景过渡
This commit is contained in:
@@ -53,10 +53,8 @@ class Polygon extends Shape {
|
||||
public collidesWithShape(other: Shape){
|
||||
let result = new CollisionResult();
|
||||
if (other instanceof Polygon){
|
||||
result = ShapeCollisions.polygonToPolygon(this, other);
|
||||
return result;
|
||||
return ShapeCollisions.polygonToPolygon(this, other);
|
||||
}
|
||||
|
||||
|
||||
if (other instanceof Circle){
|
||||
result = ShapeCollisions.circleToPolygon(other, this);
|
||||
|
||||
Reference in New Issue
Block a user