private void CheckPlayerLock() { if (_menuOpened || _systemOpened || _interactOpened) { _playerCore.LockPlayer(); } else { _playerCore.UnlockPlayer(); } }