fix: Shape & Circle Colliders Parametered Constructs Null Transform Error
This commit is contained in:
parent
69eca44dd8
commit
2ca243d79c
|
@ -13,9 +13,5 @@ public class Collider2DCircleBehaviour : Collider2DBehaviourBase, ICircleCollide
|
|||
|
||||
|
||||
public Collider2DCircleBehaviour() { }
|
||||
public Collider2DCircleBehaviour(Circle circle)
|
||||
{
|
||||
CircleLocal = circle;
|
||||
Recalculate();
|
||||
}
|
||||
public Collider2DCircleBehaviour(Circle circle) => CircleLocal = circle;
|
||||
}
|
||||
|
|
|
@ -14,9 +14,5 @@ public class Collider2DShapeBehaviour : Collider2DBehaviourBase, IShapeCollider2
|
|||
|
||||
|
||||
public Collider2DShapeBehaviour() { }
|
||||
public Collider2DShapeBehaviour(Shape shape)
|
||||
{
|
||||
ShapeLocal = shape;
|
||||
Recalculate();
|
||||
}
|
||||
public Collider2DShapeBehaviour(Shape shape) => ShapeLocal = shape;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue