Ejemplo n.º 1
0
        public void ShutdownInput()
        {
            gameInput.Disable();

            //Console
            gameInput.Console.ToggleConsole.performed -= OnToggleConsole;
            gameInput.Console.AutoComplete.performed  -= OnAutoComplete;
            gameInput.Console.HistoryUp.performed     -= OnHistoryUp;
            gameInput.Console.HistoryDown.performed   -= OnHistoryDown;
            gameInput.Console.SubmitInput.performed   -= OnSubmitInput;

            //MenuController
            gameInput.MenuController.Close.performed -= OnMenuClose;

            //StartVideo
            gameInput.StartVideo.Skip.performed -= OnStartVideoSkip;

            //Debug menu
            gameInput.DebugMenu.ToggleMenu.performed -= OnDebugMenuToggle;

            //Player
            gameInput.Player.ScoreBoard.performed      -= OnPlayerScoreBoard;
            gameInput.Player.Suicide.performed         -= OnPlayerSuicide;
            gameInput.Player.Jump.performed            -= OnPlayerJump;
            gameInput.Player.Pause.performed           -= OnPlayerPause;
            gameInput.Player.WeaponSelection.performed -= OnPlayerWeaponSelection;
            gameInput.Player.ShootWeapon.performed     -= OnPlayerWeaponShoot;
            gameInput.Player.ReloadWeapon.performed    -= OnPlayerReloadWeapon;

            gameInput.Dispose();

            Application.quitting -= ShutdownInput;
        }
Ejemplo n.º 2
0
 void OnDisable()
 {
     input.Disable();
 }
 private void OnDisable()
 {
     action.Disable();
 }
Ejemplo n.º 4
0
 void OnDisable()
 {
     gameInputs.Disable();
 }
Ejemplo n.º 5
0
 private void OnDestroy()
 {
     input.Disable();
 }
Ejemplo n.º 6
0
 private void OnDisable()
 {
     controls.Disable();
 }
Ejemplo n.º 7
0
 void OnDisable()
 {
     _gameInput.Disable();
 }
Ejemplo n.º 8
0
 private void OnDisable()
 {
     input.Disable();
 }