public IEnumerator PacmanStops()
        {
            pacmanMovement.Stop();
            yield return(new WaitForSeconds(WAIT_TIME));

            Assert.AreEqual(0f, pacmanMovement.GetSpeed());
        }
Esempio n. 2
0
        /// <summary>
        /// Stops moving Pacman and the Ghosts.
        /// </summary>
        public void StopMovingEntities()
        {
            debugger.Info("stopping everything");

            foreach (Ghost ghost in ghosts)
            {
                ghost.StopMoving();
            }

            pacmanMovement.Stop();
        }