supportsShapes method

bool supportsShapes(
  1. ShapeComponent shapeA,
  2. ShapeComponent shapeB
)

Implementation

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