//Update().
 //Written by Daniel Thomas and Ariel Quinan.
 //Updates the state of the program at the start of each frame. Associates the AddObjectFunction function from
 //the MenuFunctions script.
 void Update()
 {
     if (myDropdown.value != 0)
     {
         currentMenuFunctions.AddObjectFunction(prefabList[myDropdown.value - 1]);
         myDropdown.value = 0;
     }
 }