public void setEquipedDevice() { // if(equipedDevice.GetComponent<EquipmentDevice> equipedDevice.transform.parent = equipmentDevice.transform; equipedDevice.transform.localPosition = _equipedDeviceDummy.transform.localPosition; equipedDevice.transform.localScale = new Vector3(1f, 1f, 0); equipedDevice.transform.localRotation = _equipedDeviceDummy.transform.localRotation; equipedDeviceScript.closeButton = equipmentDeviceScript.closeButton; equipmentDeviceScript.closeButton.device = equipedDeviceScript; equipedDeviceScript.setDisplayBricks(false); }