Ejemplo n.º 1
0
        public void TestSubtractLife()
        {
            new SubtractLife();
            var player = new Player();

            GameTrigger.OnEnemyReachGoal();
            AdvanceTimeAndUpdateEntities();
            Assert.AreEqual(0, player.LivesLeft);
        }
Ejemplo n.º 2
0
 public override void HasReachedExit()
 {
     PlaySound(GameSounds.CreepExit);
     GameTrigger.OnEnemyReachGoal();
     base.HasReachedExit();
 }