private void TransitionToInstructions() { if (transitionFinished) { return; } Scene instructionScene = new Scene(); instructionScene.RegisterMatchSoundManager(scene.MatchSoundManager); Logic instructionLogic = new InstructionLogic(director, instructionScene, selectedPlayers); instructionLogic.Initialize(); Screen instructionScreen = new DefaultScreen(director, instructionScene, instructionLogic.BaseScreenSize); director.TransitionToLogic(instructionLogic); director.TransitionToScreen(instructionScreen, 3, -1); transitionFinished = true; }
public InstructionFacade(IServiceProvider serviceProvider, ProductionDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <InstructionModel>(); InstructionLogic = serviceProvider.GetService <InstructionLogic>(); }