_ready() happens in reverse tree order. The camera is the first node to be ready. Then "Tile", then "Player", and finally "Mainsece". A parent is not ready until all of its children are.
Since Camera is ready first, its
onready code runs. But since that code tries to access "Mainsece", it fails.