public override void Update(GameTime theGametime) { switch (mCurrentState) { case State.Start: { UpdateReadyTimer(theGametime); break; } case State.Playing: { UpdatePlaying(theGametime); break; } case State.PlayerOneScored: { UpdateReadyTimer(theGametime); break; } case State.PlayerTwoScored: { UpdateReadyTimer(theGametime); break; } } mPlayerOneScore.mText = mScoreOne.ToString(); mPlayerTwoScore.mText = mScoreTwo.ToString(); mSafeArea.Update(theGametime); base.Update(theGametime); }
public virtual void Update(GameTime theGametime) { mSafeArea.Update(theGametime); }