Exemple #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;
			EditorApplication.playmodeStateChanged += OnPlayModeStateChanged;
			ErrorChecker.CheckForErrors ();
		}
Exemple #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 ();
		}