Ejemplo n.º 1
0
		protected override void OnEnable ()
		{
			base.OnEnable ();
			FsmEditor.instance = this;
			variableEditor = new VariableEditor ();
			if (mainToolbar == null) {
				mainToolbar = new MainToolbar ();			
			}
			if (shortcutEditor == null) {
				shortcutEditor = new ShortcutEditor ();

			}
			centerView = true;
			#if UNITY_2017_3_OR_NEWER
			EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
			#else
			EditorApplication.playmodeStateChanged += OnPlayModeStateChanged;
			#endif
			ErrorChecker.CheckForErrors ();
		}
Ejemplo n.º 2
0
		protected override void OnEnable ()
		{
			base.OnEnable ();
			FsmEditor.instance = this;
			variableEditor = new VariableEditor ();
			if (mainToolbar == null) {
				mainToolbar= new MainToolbar();			
			}
			centerView = true;
			EditorApplication.playmodeStateChanged += OnPlayModeStateChanged;
			ErrorChecker.CheckForErrors ();
		}