コード例 #1
0
        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;
        }
コード例 #2
0
 private void OnMouseEnter()
 {
     renderer.material.color = color;
     TransformController.AddSelectedTranformComponents();
 }