// ReSharper disable UnusedMember.Local

        /// <summary>
        /// Delay initialization until first OnGUI to avoid interfering with runtime system initialization.
        /// </summary>
        public override void Initialize()
        {
            // Unmaximize fix : when unmaximizing, a new window is enabled and disabled.
            // Prevent it from overriding the instance pointer.
            if (instance == null)
            {
                instance = this;
            }

#if PROFILE_PLAYMAKER_EDITOR
            var stopwatch = Stopwatch.StartNew();
#endif

            if (fsmEditor == null)
            {
                fsmEditor = new FsmEditor();
            }

            fsmEditor.InitWindow(this);
            fsmEditor.OnEnable();

#if PROFILE_PLAYMAKER_EDITOR
            if (FsmEditor.debugStartupTime)
            {
                Debug.Log("Stopwatch: PlayMaker Editor Startup Time: " + stopwatch.ElapsedMilliseconds);
            }
#endif
        }
Beispiel #2
0
    public void OnEnable()
    {
        FsmEditorHelpers.BuildFsmList();

        fsmEditor = new FsmEditor();
        fsmEditor.InitWindow(this);
        fsmEditor.OnEnable();
    }
Beispiel #3
0
        // ReSharper disable UnusedMember.Local

        /// <summary>
        /// Delay initialization until first OnGUI to avoid interfering with runtime system initialization.
        /// </summary>
        public override void Initialize()
        {
            instance = this;

            if (fsmEditor == null)
            {
                fsmEditor = new FsmEditor();
            }

            fsmEditor.InitWindow(this);
            fsmEditor.OnEnable();
        }
Beispiel #4
0
    // ReSharper disable UnusedMember.Local

    /// <summary>
    /// Called when the Fsm Editor window is created
    /// NOTE: happens on playmode change and recompile!
    /// </summary>

    void OnEnable()
    {
        instance = this;

        if (fsmEditor == null)
        {
            fsmEditor = new FsmEditor();
        }

        fsmEditor.InitWindow(this);
        fsmEditor.OnEnable();
    }