public static void MapClear(int mapId, int clearPoint = 1) { Map clearMap = userMaps.Find(map => map.id == (mapId) || map.id.Equals(mapId)); Map openMap = maps.Find(map => map.id == (mapId + 1) || map.id.Equals(mapId + 1)); if (clearMap != null) { clearMap.clearPoint = clearPoint; if (openMap != null) { userMaps.Add(openMap); } MapDatabase.AddMapClear(clearMap.id, openMap.id); } else { Debugging.LogWarning("클리어 할 맵을 찾지못함 >> " + mapId); } }