示例#1
0
 // Update State
 public override GameState Update(Game1 game, float deltaTime)
 {
     // Update Menu UI
     menuUI.Update();
     // Check which buttons on menuUI is hovered
     menuUI.ButtonsHoverCheck();
     // Update commandManager's input
     commandManager.Update();
     // Return appropriate GameState or null, based on if button selected
     return(menuUI.ButtonsSelectCheck());
 }