Exemple #1
0
 /// <summary>
 /// Checks to see if it is ready to proceed to the game play state
 /// </summary>
 /// <param name="gameTime">XNA Game time</param>
 public override void Update()
 {
     if (State == LoadingState.ERROR)
     {
         ServerListState state = new ServerListState(ErrorMessage);
         ServiceManager.StateManager.ChangeState(state);
     }
     else if (State == LoadingState.READY)
     {
         ServiceManager.StateManager.ChangeState(futureGame);
     }
     else
     {
         form.Value   = Value;
         form.Message = Message;
     }
 }
 /// <summary>
 /// Checks to see if it is ready to proceed to the game play state
 /// </summary>
 /// <param name="gameTime">XNA Game time</param>
 public override void Update()
 {
     if (State == LoadingState.ERROR)
     {
         ServerListState state = new ServerListState(ErrorMessage);
         ServiceManager.StateManager.ChangeState(state);
     }
     else if (State == LoadingState.READY)
     {
         ServiceManager.StateManager.ChangeState(futureGame);
     }
     else
     {
         form.Value = Value;
         form.Message = Message;
     }
 }