input refactored

This commit is contained in:
Mausham
2025-12-15 21:51:34 +05:45
parent a166fe2861
commit 05287c4b73
10 changed files with 41 additions and 25 deletions

View File

@@ -8,6 +8,7 @@ public class PauseScreenController:IPauseScreenController
private PauseScreenView pauseScreenView;
[Inject] private IInputReader IinputReader;
[Inject] private IAudioController IaudioController;
[Inject] private IGameSession IgameSession;
public PauseScreenController(PauseScreenView _pauseScreenView)
{
@@ -26,6 +27,7 @@ public class PauseScreenController:IPauseScreenController
Time.timeScale = 1.0f;
IinputReader.UnlockInput();
IaudioController.PlayBtnPressedSound();
IgameSession.showStartScreen = false;
SceneManager.LoadScene(0); //Restart This Scene
}