public override void Load() { Instance = this; SkinManager = new SkinManager(); UIStateMachine = new UIStateMachine(); UIStateMachine.Add(new EditorState("Editor")); _toolBarState = new BottomToolBarState("ToolbarBottom"); UIStateMachine.Add(_toolBarState); // UIStateMachine.Add(new TestState2("tstate2")); UIStateMachine.Add(new ColorChooser("ColorChooser")); }
public void AddState(UIState state) { UIStateMachine.Add(state); }