private static GameScreen MakePhysicistScreen(string filePath) { PhysicistGameScreen screen = null; PhysicistGameScreen tempScreen = null; try { tempScreen = new PhysicistGameScreen("MainScreen", filePath); screen = tempScreen; tempScreen = null; } finally { if (tempScreen != null) { tempScreen.Dispose(); } } return(screen); }
private static GameScreen MakePhysicistScreen(string filePath) { PhysicistGameScreen screen = null; PhysicistGameScreen tempScreen = null; try { tempScreen = new PhysicistGameScreen("MainScreen", filePath); screen = tempScreen; tempScreen = null; } finally { if (tempScreen != null) { tempScreen.Dispose(); } } return screen; }