public void InputSettingsChanged()
        {
            if (_inputActions != null)
            {
                _inputActions.Destroy();
            }

            _inputActions = GameplayInputActions.LoadInputSettings();
            gameState.hud.InputSettingsChanged(_inputActions);
        }
        public override void PreConstruct(object outer)
        {
            base.PreConstruct(outer);
            SetRemoteRole(ERemoteRole.AutonomousProxy);

            clWorld = (ClientWorld)world;

            Assert.IsNull(_localPlayer);
            _localPlayer = this;
            _gameState   = null;
            GameManager.instance.SetScreenModeCursorLockState();

            _inputActions = GameplayInputActions.LoadInputSettings();
        }