예제 #1
0
        public override IEntity Clone()
        {
            EntityWarpBlock block = new EntityWarpBlock(Texture);
            IEntity         clone = block;

            base.Clone(ref clone);
            block          = (EntityWarpBlock)clone;
            block.Fire     = Fire;
            block.lastFire = lastFire;
            if (Command is CreateEnemyCommand)
            {
                block.Command = new CreateEnemyCommand(((CreateEnemyCommand)Command).Create, block);
            }
            else
            {
                block.Command = Command;
            }
            block.Shot = Shot?.Clone();
            return(block);
        }