onGameResize method
Called whenever the size of the top-level Canvas changes.
In addition, this method will be invoked once after the component is attached to the game tree, and before onLoad is called.
Implementation
@mustCallSuper
void onGameResize(Vector2 size) => handleResize(size);