supportsShapes method
Implementation
bool supportsShapes(ShapeComponent shapeA, ShapeComponent shapeB) {
return shapeA is T1 && shapeB is T2 || shapeA is T2 && shapeB is T1;
}
bool supportsShapes(ShapeComponent shapeA, ShapeComponent shapeB) {
return shapeA is T1 && shapeB is T2 || shapeA is T2 && shapeB is T1;
}