/// <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++; } }
/// <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(); }