Exemple #1
0
 static void ClearAllStatuses()
 {
     if (EditorUtility.DisplayDialog(
             string.Empty,
             Tr("Do you want to clear progress of every tutorial?"),
             Tr("Clear"),
             Tr("Cancel")))
     {
         GenesisHelper.GetAllTutorials((r) =>
         {
             var ids = r.Select(a => a.lessonId);
             foreach (var id in ids)
             {
                 GenesisHelper.LogTutorialStatusUpdate(id, " ");
             }
             Debug.Log("Lesson statuses cleared");
             // Refresh the window, if it's open.
             var wnd = TutorialManager.GetTutorialWindow();
             if (wnd)
             {
                 wnd.MarkAllTutorialsUncompleted();
             }
         });
     }
 }
Exemple #2
0
 static void PrintAllStatuses()
 {
     GenesisHelper.PrintAllTutorials();
 }