/// <summary>
 /// Allows the game to run logic such as updating the world,
 /// checking for collisions, gathering input, and playing audio.
 /// </summary>
 public void UpdateGame()
 {
     mHero.UpdateHero();
     if (mEnemy.UpdatePatrol(mHero))
     {
         mNumCaught++;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Allows the game to run logic such as updating the world,
 /// checking for collisions, gathering input, and playing audio.
 /// </summary>
 public void UpdateGame()
 {
     mHero.UpdateHero();
     mEnemy.UpdatePatrol();
 }