// Use this for initialization void Start() { firstTimeSetup = false; questReady = false; qController = FindObjectOfType <QuestController> (); containingRoom = GetComponentInParent <RoomGeneration> (); setupDone = false; droneUp = false; qMarked = QuestController.activeEvents[Random.Range(1, QuestController.activeEvents.Count)]; }
public QuestEvent GetQuestByID(int eventID) { QuestEvent QE = new QuestEvent(); for (int i = 0; i < questEvents.Count; i++) { if (questEvents[i].eventID == eventID) { QE = questEvents[i]; break; } } return(QE); }