예제 #1
0
        // 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)];
        }
예제 #2
0
        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);
        }