void Awake() { database = QuestDatabase.Instance(questJSON); qlogmodel = GetComponent <QuestLogModel>(); qlogview = GetComponent <QuestLogView>(); qprogress = GameObject.Find("Data").GetComponentInChildren <QuestProgress>(); }
void Start() { _questLogModel = QuestLogModel.instance; _questLogView = GetComponent <QuestLogView>(); _questLogModel.questLogUI.SetActive(false); _questLogView.SetQuestParent(_questLogModel.questsParent); _playerController = PlayerController.instance; _inventoryController = InventoryController.instance; }