private void SetMRICollectionChildrenActive(bool active) { foreach (GameObject MRIObject in MRIObjects) { MRIObject.SetActive(active); } // clipPlane.SetActive(active); }
public void DisplaySingleMRI(GameObject activeMRI) { foreach (GameObject MRIObject in MRIObjects) { if (MRIObject.name != activeMRI.name) { MRIObject.SetActive(false); } } boxCollider.enabled = true; isOneMRIActive = true; }
public void ReturnFromDisplaySingleMRI() { if (MRIIconManager.Instance != null) { MRIIconManager.Instance.DeselectAll(); } if (isOneMRIActive) { foreach (GameObject MRIObject in MRIObjects) { if (MRIObject.name != activeMRI.name) { MRIObject.SetActive(true); } } activeMRI.GetComponent <MRIInteractions>().HideMRIImage(); boxCollider.enabled = false; isOneMRIActive = false; } }