public void CancelInput(InputAction.CallbackContext context) { // Title Screen Scene if (SceneManager.GetActiveScene().buildIndex == 0 && context.performed) { if (screensTransitionManager.GetScreenNum() == -4) { creditsController.CancelInput(); } // characters screen if (screensTransitionManager.GetScreenNum() == -3) { charactersController.CancelInput(); } // controls screen if (screensTransitionManager.GetScreenNum() == -2) { controlsController.CancelInput(); } // instructions screen if (screensTransitionManager.GetScreenNum() == -1) { instructionsController.CancelInput(); } // title screen if (screensTransitionManager.GetScreenNum() == 0) { titleController.CancelInput(); } // char select screen if (screensTransitionManager.GetScreenNum() == 1) { characterSelectController.CancelInput(); } // brew screen else if (screensTransitionManager.GetScreenNum() == 2) { brewingPhaseController.CancelInput(context); } // arena screen else if (screensTransitionManager.GetScreenNum() == 3) { // pause screen if (PauseMenu.isGamePaused) { pauseMenu.CancelInput(); } } // after match screen else if (screensTransitionManager.GetScreenNum() == 4) { afterMatchController.CancelInput(); } } }