public GameHandler(RenderContext rc, RenderCanvas rCanvas)
 {
     RCanvas = rCanvas;
     this.Rc = rc;
     this.gui = new Gui(Rc, RCanvas, this);
     this.GameState = new GameState(ref gui, this);
       //  DbConnection =new DbConnection(this);
 }
 public GameState(ref Gui g, GameHandler gameHandler)
 {
     Gui = g;
     GameHandler = gameHandler;
     _currentState = State.MainMenu;
     LastState = CurrentState;
     Gui.SetGui(_currentState);
 }