diff --git a/src/main/java/View/GameMenu.java b/src/main/java/View/GameMenu.java index ee54197..321c7bc 100644 --- a/src/main/java/View/GameMenu.java +++ b/src/main/java/View/GameMenu.java @@ -13,7 +13,7 @@ public class GameMenu{ public GameMenu(Scanner scanner, GameMenuController gameMenuController){ this.gameMenuController = gameMenuController; - this.scanner = scanner; + GameMenu.scanner = scanner; } public static void run() { diff --git a/src/main/java/View/LoginMenu.java b/src/main/java/View/LoginMenu.java index 87cdd84..44c3534 100644 --- a/src/main/java/View/LoginMenu.java +++ b/src/main/java/View/LoginMenu.java @@ -11,7 +11,7 @@ public class LoginMenu { private final LoginMenuController loginMenuController; private static Scanner scanner; public LoginMenu(Scanner scanner , LoginMenuController loginMenuController) { - this.scanner = scanner; + LoginMenu.scanner = scanner; this.loginMenuController = loginMenuController; } diff --git a/src/main/java/View/MainMenu.java b/src/main/java/View/MainMenu.java index d6d3b39..571e751 100644 --- a/src/main/java/View/MainMenu.java +++ b/src/main/java/View/MainMenu.java @@ -9,7 +9,7 @@ public class MainMenu { private final MainMenuController mainMenuController; private static Scanner scanner; public MainMenu(Scanner scanner , MainMenuController mainMenuController) { - this.scanner = scanner; + MainMenu.scanner = scanner; this.mainMenuController = mainMenuController; } diff --git a/src/main/java/View/ProfileMenu.java b/src/main/java/View/ProfileMenu.java index 6a208b5..3386b23 100644 --- a/src/main/java/View/ProfileMenu.java +++ b/src/main/java/View/ProfileMenu.java @@ -6,9 +6,9 @@ public class ProfileMenu { private final ProfileMenuController profileMenuController; - private Scanner scanner; + private static Scanner scanner; public ProfileMenu(Scanner scanner, ProfileMenuController profileMenuController){ - this.scanner = scanner; + ProfileMenu.scanner = scanner; this.profileMenuController = profileMenuController; }