Pass in asset manager so that assets can resolve dependencies.