void Pickup(GameObject plateObject) { holdingPlate = true; plateObject.transform.parent = transform; plateObject.transform.localPosition = new Vector3(plateLeftPos.x, plateLeftPos.y, transform.position.z); walkStretch = 1; spawnController.DetachPlate(plateObject.GetComponent <PlateController>().plateNumber); }