private void Update() { if (MapDataThreadInfoQueue.Count > 0) { for (int i = 0; i < MapDataThreadInfoQueue.Count; i++) { MapThreadInfo <MapData> threadInfo = MapDataThreadInfoQueue.Dequeue(); threadInfo.CallBack(threadInfo.parameter); } } if (MeshDataThreadInfoQueue.Count > 0) { for (int i = 0; i < MeshDataThreadInfoQueue.Count; i++) { MapThreadInfo <MeshData> threadInfo = MeshDataThreadInfoQueue.Dequeue(); threadInfo.CallBack(threadInfo.parameter); } } }