Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            RecreateRopeButtons();
            DrawAttachedObjects();
            DrawImportantProperties();
            DrawPhysicsProperties();
            DrawNodeVisualProperties();
            DrawNodeProperties();
            DrawRopeProperties();
            DrawLineRendererProperties();
            DrawCutProperties();
            DrawBreakProperties();
            DrawTensionProperties();

            if (GUI.changed || m_controller.NeedUpdateRope)
            {
                EditorUtility.SetDirty(target);
                if (!m_controller.NeedUpdateRope)
                {
                    m_controller.CreateRope(false);
                }
                m_controller.UpdateEditorNodes();
            }
        }