public void Initialize(ITargetDevice targetDevice) { Kernel = new StandardKernel(new CoreModule(), GetSpecificModule(targetDevice)); TargetDevice = targetDevice; if (null != targetDevice.GameType) { CurrentGame = Kernel.Get(targetDevice.GameType) as Game; if (null != CurrentGame) { var assetLoaderService = Kernel.Get <IAssetLoaderService>(); assetLoaderService.Initialize(); targetDevice.RegisterAssetLoaders(assetLoaderService); CurrentGame.OnInitialize(); CurrentGame.OnLoadContent(); CurrentGame.OnLoaded(); } } }