public void MakeEditorState() { List <MenuObject> objs = new List <MenuObject> (); objs.Add(new MenuText("New", Color.Gold, Color.Black, 30)); state = new SelectLevelScreenState(sfcGameWindow, objs); ((SelectLevelScreenState)state).fileSelectedHandler += EventEditorFileSelected; ((SelectLevelScreenState)state).menuExitHandler += EventToMenu; }
void MakeRunGameState() { state = new SelectLevelScreenState(sfcGameWindow, new List <MenuObject> ()); ((SelectLevelScreenState)state).fileSelectedHandler += EventRunFileSelected; ((SelectLevelScreenState)state).menuExitHandler += EventToMenu; }