Code for having the scene wait until assets have been loaded before initializing the scene