Exemplo n.º 1
0
 private void DropItems()
 {
     Debug.Log("Предмет выброшен");
     item.gameObject.transform.position   = item.startPosition;
     item.gameObject.transform.rotation   = item.startRotation;
     item.gameObject.transform.localScale = item.startScale;
     isTaken = false;
     cursor.Locked();
     fpc.enabled           = true;
     item.gameObject.layer = 0;
     item = null;
     cameraFPC.cullingMask = (int)CulingMasks.InspectionOFF;
     cameraInspection.SetActive(false);
     postProcessing.enabled = false;
     inspectionMenu.ShowHideMenu(false);
 }
 private void Initializate()
 {
     fpc = GetComponent <FPC>();
     cursor.Locked();
 }