public void DropdownSelectGraph() { switch (graphDropdown.value) { case 0: displayOption = VisibleObjects.System; cube.GetComponent <MeshRenderer>().enabled = true; cube.GetComponent <BoxCollider>().enabled = true; graphableValuesGraph.SetActive(false); break; case 1: displayOption = VisibleObjects.GraphableGraph; cube.GetComponent <MeshRenderer>().enabled = false; cube.GetComponent <BoxCollider>().enabled = false; graphableValuesGraph.SetActive(true); break; } for (int i = 0; i < valuesDropdowns.Length; i++) { valuesDropdowns[i].interactable = displayOption.Equals(VisibleObjects.GraphableGraph); } baseDropdown.interactable = displayOption.Equals(VisibleObjects.GraphableGraph); ResetDisplays(); }
public void DropdownSelectGraph() { switch (graphDropdown.value) { case 0: displayOption = VisibleObjects.System; system.SetActive(true); phasorGraph.SetActive(false); graphableValuesGraph.SetActive(false); break; case 1: displayOption = VisibleObjects.PhasorGraph; system.SetActive(false); phasorGraph.SetActive(true); graphableValuesGraph.SetActive(false); break; case 2: displayOption = VisibleObjects.GraphableGraph; system.SetActive(false); phasorGraph.SetActive(false); graphableValuesGraph.SetActive(true); break; } for (int i = 0; i < valuesDropdowns.Length; i++) { valuesDropdowns[i].interactable = displayOption.Equals(VisibleObjects.GraphableGraph); } baseDropdown.interactable = displayOption.Equals(VisibleObjects.GraphableGraph); ResetDisplays(); }