Пример #1
0
 void ShieldOn()
 {
     if (shield == null)
     {
         shield = new SpartanShield(Position, this, team: team);
     }
 }
Пример #2
0
 void ShieldOff()
 {
     if (shield != null)
     {
         Miasma.gameEntities.Remove(shield);
         shield = null;
     }
 }
Пример #3
0
 public override void ActionUpdate()
 {
     NormalMovement();
     ShieldOff();
     actTimer++;
     shootPattern(actTimer);
     if (actTimer > preShootTime + postShootTime)
     {
         acting = -1;
         shield = new SpartanShield(Position, this);
     }
 }