public void Update(GraphicsDevice graphicsDevice, GameTime gameTime, KeyboardState keyboardState, MouseState mouseState)
{
Player.InFocus = GameInstance.IsActive;
latestGameTime = gameTime;
//Update network
NetworkManager.Update(this);
//Update map
if (GameRunning && gameMap != null)
{
gameMap.Update(graphicsDevice, gameTime, keyboardState, mouseState);
}
//Update GUI
graphicsUI.Update(gameTime);
if (GameInstance.IsActive)
{
graphicsUI.Interact(new GameGUI.GUIInput(keyboardState, pastKeyboardState, mouseState, pastMouseState));
}
pastKeyboardState = keyboardState;
pastMouseState = mouseState;
}