fix: Shape & Circle Colliders Parametered Constructs Null Transform Error

This commit is contained in:
Syntriax 2024-01-27 21:15:17 +03:00
parent 69eca44dd8
commit 2ca243d79c
2 changed files with 2 additions and 10 deletions

View File

@ -13,9 +13,5 @@ public class Collider2DCircleBehaviour : Collider2DBehaviourBase, ICircleCollide
public Collider2DCircleBehaviour() { }
public Collider2DCircleBehaviour(Circle circle)
{
CircleLocal = circle;
Recalculate();
}
public Collider2DCircleBehaviour(Circle circle) => CircleLocal = circle;
}

View File

@ -14,9 +14,5 @@ public class Collider2DShapeBehaviour : Collider2DBehaviourBase, IShapeCollider2
public Collider2DShapeBehaviour() { }
public Collider2DShapeBehaviour(Shape shape)
{
ShapeLocal = shape;
Recalculate();
}
public Collider2DShapeBehaviour(Shape shape) => ShapeLocal = shape;
}