private void lostNdock(List <Mem_ndock> ndock) { ndock.ForEach(delegate(Mem_ndock x) { int area_id = x.Area_id; if (x.Ship_id > 0) { Mem_ship mem_ship = Comm_UserDatas.Instance.User_ship.get_Item(x.Ship_id); mem_ship.SubHp(this.getShipDamage(mem_ship.Nowhp)); mem_ship.PortWithdraw(area_id); } Comm_UserDatas.Instance.User_ndock.Remove(x.Rid); }); }