private void OnTriggerExit(Collider other) { door.transform.position += new Vector3(2.5f, 0, 0); //transform.position -= new Vector3(2.5f, 0, 0); if (cam.inRm2) { cam.CameraRm1(false); //get fancy and 'auto' move player throughdoor when camera moves player.transform.position -= new Vector3(0, 2.5f, 0); } if (cam.inRm1) { cam.CameraRm2(false); //get fancy and move player throughdoor when camera moves player.transform.position += new Vector3(0, 2.5f, 0); } //and send key back to its starting position key.transform.position = new Vector3(-10.72f, -2.65f, 0.02f); }