isVisibleInCamera method

  1. @mustCallSuper
bool isVisibleInCamera()

Method that checks if this component is visible on the screen

Implementation

@mustCallSuper
bool isVisibleInCamera() {
  if (hasGameRef) {
    return gameRef.isVisibleInCamera(this);
  }
  return false;
}