示例#1
0
 void Awake()
 {
     database  = QuestDatabase.Instance(questJSON);
     qlogmodel = GetComponent <QuestLogModel>();
     qlogview  = GetComponent <QuestLogView>();
     qprogress = GameObject.Find("Data").GetComponentInChildren <QuestProgress>();
 }
示例#2
0
    private void Awake()
    {
        if (instance != null)
        {
            Debug.LogWarning("More than one instance of QuestLog !");
        }

        instance = this;
    }
示例#3
0
 void Start()
 {
     _questLogModel = QuestLogModel.instance;
     _questLogView  = GetComponent <QuestLogView>();
     _questLogModel.questLogUI.SetActive(false);
     _questLogView.SetQuestParent(_questLogModel.questsParent);
     _playerController    = PlayerController.instance;
     _inventoryController = InventoryController.instance;
 }
示例#4
0
 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.");
         }
     }
 }
示例#5
0
 private void Awake()
 {
     qlogmodel = GetComponent <QuestLogModel>();
 }