public void CheckInput(ReplayState state)
 {
     if (Input.GetKeyDown(KeyCode.Escape) || PlayerController.Instance.inputController.player.GetButtonDown("B"))
     {
         if (state == ReplayState.MainMenu)
         {
             ReplayManager.Instance.CloseMenu();
         }
         else if (state.IsMenuOpen() && state.CanBeChange())
         {
             ReplayManager.CurrentState = ReplayState.MainMenu;
         }
     }
     if (state == ReplayState.SaveMenu)
     {
         if (Input.GetKeyDown(KeyCode.KeypadEnter) || Input.GetKeyDown(KeyCode.Return))
         {
             Save();
         }
     }
 }