| | |
| | | isLoading = true; |
| | | } |
| | | |
| | | public void ReportComplete(int mapId, int lineId) |
| | | public void ReportComplete(int mapId, int lineId ,bool record) |
| | | { |
| | | mapIdRecord = mapId; |
| | | lineIdRecord = lineId; |
| | | if (record) |
| | | { |
| | | mapIdRecord = mapId; |
| | | lineIdRecord = lineId; |
| | | } |
| | | |
| | | |
| | | isLoading = false; |
| | | StageLoadTimeOutCatcher.Stop(); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | public void Complete(int mapId, int lineId) |
| | | public void Complete(int mapId, int lineId, bool record) |
| | | { |
| | | StageLoad.Instance.ReportComplete(mapId, lineId); |
| | | StageLoad.Instance.ReportComplete(mapId, lineId, record); |
| | | } |
| | | |
| | | private void Update() |
| | |
| | | progressBuf += currentTask.weight; |
| | | currentTask.End(); |
| | | if (tasks.Count == 0) |
| | | { |
| | | Complete(currentTask.command.toMapId, currentTask.command.toLineId); |
| | | {
|
| | | Complete(currentTask.command.toMapId, currentTask.command.toLineId, currentTask.command.needLoadResource);
|
| | | } |
| | | |
| | | currentTask = null; |