private void Update() { // Call the update loop on the WordBoardCreator if (isCreatingBoards && wordBoardCreator != null) { string title = string.Format("Creating Board File {0}/{1}", totalFilesCreated, totalFilesToCreate); string info = string.Format("Category: {0}, Level: {1}", gameManagerReference.CategoryInfos[categoryIndex].name, categoryLevelIndex + 1); float progress = (float)totalFilesCreated / (float)totalFilesToCreate; bool cancelled = EditorUtility.DisplayCancelableProgressBar(title, info, progress); if (cancelled) { wordBoardCreator.AbortAll(); StopCreatingBoards(); Debug.Log("Board creation was stopped by the user"); } wordBoardCreator.Update(); } }
private void Update() { wordBoardCreator.Update(); }