void Start() { questManagerUI = GameObject.Find("QuestManagerUI"); if (questManagerUI) { qmUI = questManagerUI.GetComponent <QuestManagerUIController>(); } else { Debug.LogError("QuestManager script attached to the player could not find the 'QuestManagerUI' UI object!"); } _quest = new Quest(null, null, null, -1, null); currentQuests = new List <Quest> (); failedQuests = new List <Quest> (); completedQuests = new List <Quest> (); _questSaveManager = (QuestSaveManager)FindObjectOfType(typeof(QuestSaveManager)); }
void Start() { questManagerUI = GameObject.Find("QuestManagerUI"); if (questManagerUI) { qmUI = questManagerUI.GetComponent<QuestManagerUIController>(); } else { Debug.LogError("QuestManager script attached to the player could not find the 'QuestManagerUI' UI object!"); } _quest = new Quest (null, null, null, -1, null); currentQuests = new List<Quest> (); failedQuests = new List<Quest> (); completedQuests = new List<Quest> (); _questSaveManager = (QuestSaveManager)FindObjectOfType (typeof(QuestSaveManager)); }
void Start() { questManagerUI = GameObject.Find("QuestManagerUI"); if (questManagerUI) { qmUI = questManagerUI.GetComponent<QuestManagerUIController>(); questManagerUI.SetActive(false); } else { Debug.Error("ui","QuestManager script attached to the player could not find the 'QuestManagerUI' UI GameObject in the scene: " + Application.loadedLevelName); } _quest = new Quest (null, null, null, -1, null); //_questSaveManager = Object.FindObjectOfType<QuestSaveManager> (); _questSaveManager = QuestSaveManager.S; if (!_questSaveManager) { Debug.Error("ui","Could not find the 'QuestSaveManager' singleton in the scene: " + Application.loadedLevelName); } }