// Update is called once per frame void Update() { gamemodetext.text = MakinVectors.mode.ToString(); if (MakinVectors.mode == MakinVectors.GameMode.Operate) { operationtext.text = MakinVectors.operation.ToString(); } else { operationtext.text = ""; } if (MakinVectors.toggle == MakinVectors.Cartesian) { // Display "Cartesian" coordtext.text = "Cartesian"; GRID.SetActive(true); SPHERICAL.SetActive(false); CYLINDRICAL.SetActive(false); } //else // coordtext.text = ""; if (MakinVectors.toggle == MakinVectors.Spherical) { // Display "Spherical" coordtext.text = "Spherical"; GRID.SetActive(false); SPHERICAL.SetActive(true); CYLINDRICAL.SetActive(false); } //else // coordtext.text = ""; if (MakinVectors.toggle == MakinVectors.Cylindrical) { // Display "Cylindrical" coordtext.text = "Cylindrical"; GRID.SetActive(false); SPHERICAL.SetActive(false); CYLINDRICAL.SetActive(true); } }
// Update is called once per frame void Update() { switch (coordType) { case CoordType.Cartesian: CARTESIAN.SetActive(true); SPHERICAL.SetActive(false); CYLINDRICAL.SetActive(false); break; case CoordType.Spherical: CARTESIAN.SetActive(false); SPHERICAL.SetActive(true); CYLINDRICAL.SetActive(false); break; case CoordType.Cylindrical: CARTESIAN.SetActive(false); SPHERICAL.SetActive(false); CYLINDRICAL.SetActive(true); break; } }