Example #1
0
    protected override void Start()
    {
        base.Start();

        _timerActived = true;

        missionTitle.text = quest.SelectedQuest.Name;

        for (int i = 0; i < tasksUI.Length; i++)
        {
            if (i < quest.SelectedQuest.tasks.Count)
            {
                tasksUI[i].UpdateName(quest.GetSelectedTask(i).name);
                tasksUI[i].UpdateCompletedMarker(quest.DoneTaskTracking[i]);
                tasksUI[i].gameObject.SetActive(true);
            }
            else
            {
                tasksUI[i].gameObject.SetActive(false);
            }
        }
    }