using System.Collections; using System.Collections.Generic; using UnityEngine; public class TestAreaController : MonoBehaviour { public DataTools.DataGame dataGame; public void SetQuest(int quest) { PanelQuestBehaviour.Instance.SetMainQuest(dataGame.GameData.Chapters[2].Quests[quest]); task = 0; } private int task = 0; public void SetTask() { PanelQuestBehaviour.Instance.SetMainTask(task); task++; } public void CompleteTask() { PanelQuestBehaviour.Instance.CompleteMainTask(task-1); } }