예제 #1
0
 // start is only called once.
 private void Start()
 {
     // in order to make sure that we only ever have 1 QuestController we do a check.
     if (FindObjectsOfType <QuestController>().Length > 1)
     {
         // if there is more than 1 QuestController destroy this specific one.
         Destroy(this.gameObject);
     }
     DontDestroyOnLoad(this.gameObject);
     SceneManager.sceneLoaded += Populate;
     questDatabase             = GetComponent <QuestDatabase>();
 }
예제 #2
0
 private void Awake()
 {
     questDatabase       = GetComponent <QuestDatabase>();
     characterController = FindObjectOfType <BattleSystem.CharacterController>();
     EventController.OnPendingQuestsComplete += PerformShowAlert;
 }
예제 #3
0
 private void Start()
 {
     questDatabase = GetComponent <QuestDatabase>();
 }