public override void OnInspectorGUI() { _component = target as ExampleComponent; if (_component == null) { return; } GUI.skin = FlatEditor.DefaultPanelSkin; _component.navSelection = Navigation.NavPills(new [] { "Typography", "Input", "Buttons" }, new string[3], new string[3], _component.navSelection, Colors.Info); switch (_component.navSelection) { case 0: TypographyExamples(); break; case 1: InputExamples(); break; case 2: ButtonExamples(); break; } }
public override void OnInspectorGUI() { _component = target as ExampleComponent; if (_component == null) return; GUI.skin = FlatEditor.DefaultPanelSkin; _component.navSelection = Navigation.NavPills(new []{"Typography", "Input", "Buttons"}, new string[3], new string[3], _component.navSelection, Colors.Info); switch (_component.navSelection) { case 0: TypographyExamples(); break; case 1: InputExamples(); break; case 2: ButtonExamples(); break; } }