public void OpenUI(VRInput controller) { if (currentController == null) { gameObject.SetActive(true); } else { VRInput temp = currentController; currentController = controller; temp.CloseUI(); } currentController = controller; transform.SetParent(controller.transform); transform.localPosition = Vector3.zero; transform.localRotation = new Quaternion(0.5f, 0, 0, 1); }