Beispiel #1
0
        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);
        }
Beispiel #2
0
 public virtual void Update(GameTime theGametime)
 {
     mSafeArea.Update(theGametime);
 }