public VictimUFO(MegaTile ParentMegaTile, Animation GroundAnimation, Animation StumpAnimation, Animation ExplodeAnimation, Animation TornadoAnimation, string SoundFileName, Level ParentLevel )
{
this.megatile = ParentMegaTile;
this.GroundAnimation = GroundAnimation;
this.StumpAnimation = StumpAnimation;
this.ExplodeAnimation = ExplodeAnimation;
this.TornadoAnimation = TornadoAnimation;
this.level = ParentLevel;
removeFromMegaTileOnDeath = true;
this.soundHit = SoundFileName;
state = State.Ground;
if (GroundAnimation.FrameWidth > GroundAnimation.FrameHeight)
{
squareDimensions = GroundAnimation.FrameWidth;
}
else
{
squareDimensions = GroundAnimation.FrameHeight;
}
squareDimensions *= 16;
PreLoadSounds();
PlaceInWorld();
}