worldToScreen method

  1. @override
Vector2 worldToScreen(
  1. Vector2 position
)
override

This method convert word position to screen position

Implementation

@override
Vector2 worldToScreen(Vector2 position) {
  return camera.worldToScreen(position);
}