initialize method

void initialize(
  1. Vector2 size
)

Implementation

void initialize(Vector2 size) async {
  if (!hasGameRef) return;
  directional?.initialize(this, gameRef.camera.viewport);
  for (var action in actions) {
    action.initialize(this, gameRef.camera.viewport);
  }
}