Esempio n. 1
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                if (SOFlowEditorUtilities.DrawColourButton("Raise",
                                                           SOFlowEditorSettings
                                                           .AcceptContextColour))
                {
                    _target.Raise();
                }

                if (SOFlowEditorUtilities.DrawColourButton("Search In Scene",
                                                           SOFlowEditorSettings
                                                           .TertiaryLayerColour))
                {
                    SearchEventInScene();
                }

                if (SOFlowEditorUtilities.DrawColourButton("Add To Scene",
                                                           SOFlowEditorSettings
                                                           .TertiaryLayerColour))
                {
                    GameEvent.AddGameEventToScene(_target);
                }
            });

            SOFlowEditorUtilities.DrawSecondaryLayer(DrawEventListeners);
            SOFlowEditorUtilities.DrawTertiaryLayer(DrawEventStack);
            SOFlowEditorUtilities.DrawTertiaryLayer(DrawErrorMessage);
        }