// void OnTriggerEnter(Collider c){ // Debug.Log ("enter the collider"); // } public void QuestListUpdate() { //Debug.Log ("in quest list"); for (int i = 0; i < conditionCollections.Length; i++) { if (conditionCollections[i].available == true && conditionCollections[i].complete == false && conditionCollections[i].obtained == false) { questList.AddTask(conditionCollections [i]); conditionCollections [i].obtained = true; } if (conditionCollections[i].complete == true && conditionCollections[i].obtained == true) { questList.DeleteTask(conditionCollections [i].description); } } }