private void TakeObject() { if (inputState.isTakeObject) { hit.transform.gameObject.layer = 8; Debug.Log("Предмет поднят"); inspectionHandler.ItemsInspections(hit.transform.gameObject.GetComponent <Items>()); inspectionHandler.isTaken = true; cursor.Unlocked(); fpc.enabled = false; cameraFPC.cullingMask = 55; cameraInspection.SetActive(true); postProcessing.enabled = true; inspectionMenu.ShowHideMenu(true); } }