“hujiajun” 2 months ago
parent
commit
9cf3baa8d1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Assets/TaskManager.cs

+ 4 - 2
Assets/TaskManager.cs

@@ -63,8 +63,8 @@ public class TaskManager : MonoBehaviour
 
     public GameObject inputbt;
     private void Awake()
-    {
-       // PlayerPrefs.DeleteAll();
+    { 
+       // PlayerPrefs.DeleteAll();21312312
         StartCoroutine(InitGame());
     }
 
@@ -124,6 +124,7 @@ public class TaskManager : MonoBehaviour
             nowTaskIndex = -1;
             ntconfig = tconfigs[nowTaskCt];
 
+            nowTaskItem = ntconfig.TaskList[nowTaskIndex];
             nextTask();
             Main.SetActive(false);
             Sence.SetActive(true);
@@ -137,6 +138,7 @@ public class TaskManager : MonoBehaviour
         nowTaskCt = 1;
         nowTaskIndex = 8;
         ntconfig = tconfigs[nowTaskCt];
+        nowTaskItem = ntconfig.TaskList[nowTaskIndex];
         nextTask();
         Main.SetActive(false);
         Sence.SetActive(true);