public void ShowHandles() { // check mode: ModeChanger.mode currentMode = GameObject.Find("General Manager").GetComponent <ModeChanger> ().currentMode; newBoundingBox.DrawBoundingBox(); switch (currentMode) { case ModeChanger.mode.Translate: translationController.ShowTranslationHandles(); scaleController.HideScaleHandles(); rotationController.HideRotationHandles(); break; case ModeChanger.mode.Rotate: rotationController.ShowRotationHandles(); translationController.HideTranslationHandles(); scaleController.HideScaleHandles(); break; case ModeChanger.mode.Scale: scaleController.ShowScaleHandles(); translationController.HideTranslationHandles(); rotationController.HideRotationHandles(); break; case ModeChanger.mode.All: translationController.ShowTranslationHandles(); rotationController.ShowRotationHandles(); scaleController.ShowScaleHandles(); break; } transform.GetChild(0).gameObject.SetActive(true); }