// *********************************************************************************** // INIT + GUI START - END // *********************************************************************************** public static void GUIStart(IHOTweenPanel panel, HOTweenComponent src, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth) { // Ensure that only one panel is in a state different from the default one if (isManagerGUI && src != null && panelMode != HOTweenPanelMode.Default) { panelMode = HOTweenPanelMode.Default; HOTweenEditorGUI.panel.Repaint(); } isManagerGUI = false; HOTweenEditorGUI.src = componentSrc = src; GUIStart(panel, undoManager, labelsWidth, fieldsWidth); }
// =================================================================================== // MONOBEHAVIOUR METHODS ------------------------------------------------------------- void OnEnable() { src = target as HOTweenComponent; undoManager = new HOEditorUndoManager(src, "HOTweenComponent"); HOTweenEditorGUI.panelMode = HOTweenPanelMode.Default; }