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