|
@@ -61,10 +61,9 @@ public class TaskManager : MonoBehaviour
|
|
|
public int nowTaskCt;
|
|
|
public GameObject main_click;
|
|
|
|
|
|
-
|
|
|
+ public GameObject inputbt;
|
|
|
private void Awake()
|
|
|
{
|
|
|
-
|
|
|
StartCoroutine(InitGame());
|
|
|
}
|
|
|
|
|
@@ -226,7 +225,8 @@ public class TaskManager : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
dialogueText.GetComponent<Button>().enabled = ti.isTextNext;
|
|
|
-
|
|
|
+
|
|
|
+ inputbt.SetActive(false);
|
|
|
nongwu.SetActive(ti.isnongwu);
|
|
|
HtmlBG.SetActive(ti.type!=TaskConfig.TaskType.ARTask);
|
|
|
shibie.SetActive(false);
|
|
@@ -355,6 +355,7 @@ public class TaskManager : MonoBehaviour
|
|
|
{
|
|
|
ar.PauseCamera();
|
|
|
}
|
|
|
+ inputbt.SetActive(true);
|
|
|
ar_2img.SetActive(false);
|
|
|
ar_1img.SetActive(false);
|
|
|
Main.SetActive(false);
|
|
@@ -420,6 +421,11 @@ public class TaskManager : MonoBehaviour
|
|
|
}
|
|
|
public void nextTask()
|
|
|
{
|
|
|
+ if(nowTaskItem.type == TaskConfig.TaskType.InputTask)
|
|
|
+ {
|
|
|
+ Inputgo.GetComponent<InputField>().text = "";
|
|
|
+ }
|
|
|
+
|
|
|
if(!allimg.activeSelf||(allimg.activeSelf&& nowTaskItem.isClose)|| nowTaskItem.type== TaskConfig.TaskType.ChooseTask)
|
|
|
{
|
|
|
if (nowTaskIndex + 1 >= ntconfig.TaskList.Count)
|