Add onResize() function to FlxState