コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }
コード例 #3
0
ファイル: QuestManager.cs プロジェクト: xela10104/qk-pop-1
 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);
     }
 }