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