Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using UnityEngine;
- public class Journal : MonoBehaviour
- {
- // This script will be used to track quests
- public QuestLog activeQuest;
- public List<QuestLog> notCompleted;
- public List<QuestLog> completed;
- public List<QuestLog> failed;
- private bool isQuestActive = false;
- private bool isQuestCompleted = false;
- private bool isQuestFailed = false;
- public void StartQuest(QuestLog log, QuestTask questTask)
- {
- activeQuest = log;
- completed = new List<QuestLog>();
- failed = new List<QuestLog>(failed.Count);
- if (activeQuest != null)
- {
- questTask = new QuestTask();
- }
- }
- public enum QuestType
- {
- bringItemBacktoNPC,
- killAnEnemy,
- runToSpecificNPC
- }
- private void Awake()
- {
- isQuestActive = true;
- }
- public struct TrackQuest
- {
- public string questName;
- public string questDescription;
- public string rarity;
- public string reward;
- public bool getActiveQuest;
- public bool isQuestCompleted;
- public bool isQuestFailed;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement