Example #1
0
File: Enemy.cs Project: Kasyene/PBL
 public override void Update(GameTime time)
 {
     if (!isDead)
     {
         CheckIfDead();
         if (!GameServices.GetService <GameObject>().GetComponent <Player>().timeStop)
         {
             audioComponent.Update(time);
             base.Update(time);
             lastAttack += (time.ElapsedGameTime.TotalMilliseconds / 1000.0d);
             EnemyBehaviour();
         }
     }
 }