private void Awake() { Singleton = this; translateParent = transform.GetChild(0).gameObject; rotateParent = transform.GetChild(1).gameObject; scaleParent = transform.GetChild(2).gameObject; translateParent.SetActive(false); rotateParent.SetActive(false); scaleParent.SetActive(false); ToolbarController.NewToolSelected += OnNewToolSelected; SelectToolOptionsController.NewSelectTool += OnNewSelectTool; }
private void OnMouseEnter() { renderer.material.color = color; TransformController.AddSelectedTranformComponents(); }