“hujiajun” 2 mēneši atpakaļ
vecāks
revīzija
9cf3baa8d1
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  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);