void Awake() { database = QuestDatabase.Instance(questJSON); qlogmodel = GetComponent <QuestLogModel>(); qlogview = GetComponent <QuestLogView>(); qprogress = GameObject.Find("Data").GetComponentInChildren <QuestProgress>(); }
private void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of QuestLog !"); } instance = this; }
void Start() { _questLogModel = QuestLogModel.instance; _questLogView = GetComponent <QuestLogView>(); _questLogModel.questLogUI.SetActive(false); _questLogView.SetQuestParent(_questLogModel.questsParent); _playerController = PlayerController.instance; _inventoryController = InventoryController.instance; }
private void Update() { if (qlogmodel == null) { Debug.LogWarning("Quest log lost. Trying to recover..."); qlogmodel = GameObject.Find("QuestLogModel").GetComponent <QuestLogModel>(); if (qlogmodel != null) { Debug.Log("We're good, Quest log recovered !"); } else { Debug.LogError("Quest log recovery failed. You have no purpose. Just like Ruf."); } } }
private void Awake() { qlogmodel = GetComponent <QuestLogModel>(); }