private void Init() { //Debug.Log("FsmComponentInspector.Init()"); fsmInspector = new FsmInspector(fsmComponent.Fsm, true); fsmInspector.OnEditButtonPressed += () => { FsmEditorWindow.OpenInEditor(fsmComponent); }; FsmEditor.OnFsmControlsChanged += (fsm) => Repaint(); FsmEditorSettings.LoadSettings(); PlayMakerFSM.OnSettingChanged = DoSettingsChanged; }
private void Init() { //Debug.Log("FsmComponentInspector.Init()"); fsmInspector = new FsmInspector(fsmComponent.Fsm) { UnityInspectorMode = true }; fsmInspector.OnEditButtonPressed += () => { FsmEditorWindow.OpenInEditor(fsmComponent); }; FsmEditorSettings.LoadSettings(); PlayMakerFSM.OnSettingChanged += DoSettingsChanged; }
private void Init() { //Debug.Log("PlayMakerGlobalsInspector.Init"); FsmEditorSettings.LoadSettings(); if (globals != null) { variables = FsmVariable.GetFsmVariableList(globals); foreach (var fsmVariable in variables) { fsmVariable.NamedVar.Init(); } } Repaint(); }
protected virtual void OnEnable() { FsmEditorSettings.LoadSettings(); this.justEnabled = true; }