Пример #1
0
        public void Awake()
        {
            questNotifier = (QuestNotifier)target;
            quests        = QuestCollection.GetInstance().quests;

            if (questNotifier.targetSelections == null)
            {
                questNotifier.targetSelections = new List <Selection>();
                for (int i = 0; i < questNotifier.amountOfQuestsToChange; i++)
                {
                    Selection newSelection = new Selection
                    {
                        targetQuest   = quests[0],
                        desiredStatus = quests[0].status
                    };
                    questNotifier.targetSelections.Add(newSelection);
                }
            }

            if (questTitles == null)
            {
                questTitles = new List <string>();
                for (int i = 0; i < quests.Count; i++)
                {
                    questTitles.Add(quests[i].title);
                }
            }

            currentAmountOfQuestsToChange = questNotifier.amountOfQuestsToChange;
        }
Пример #2
0
 protected virtual void Start()
 {
     questNotifier = GetComponent <QuestNotifier>();
 }