TestAreaController.cs 584 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class TestAreaController : MonoBehaviour {
  5. public DataTools.DataGame dataGame;
  6. public void SetQuest(int quest)
  7. {
  8. PanelQuestBehaviour.Instance.SetMainQuest(dataGame.GameData.Chapters[2].Quests[quest]);
  9. task = 0;
  10. }
  11. private int task = 0;
  12. public void SetTask()
  13. {
  14. PanelQuestBehaviour.Instance.SetMainTask(task);
  15. task++;
  16. }
  17. public void CompleteTask()
  18. {
  19. PanelQuestBehaviour.Instance.CompleteMainTask(task-1);
  20. }
  21. }