Пример #1
0
 private void orderCancelClick()
 {
     //Debug.Log("OrderCancel button.");
     Destroy(GameObject.FindGameObjectWithTag("orderPopup"));
     updateTableData = callingButton.GetComponent <tableInfo>();
     updateTableData.waitingToOrder = false;
     colorMe.highlightSpecificButton(callingButton, Color.green);
     writeMe.writeToFile();
     player.playSound(2);
 }
Пример #2
0
 void onClick()
 {
     //read file
     string[] fileContents = writeMe.readInStrings();
     //populate table values
     writeMe.populateAllTables(fileContents);
     //identify problems
     determineProblemTables();
     //color em
     foreach (Button currentButton in tablesToHighlight)
     {
         //Debug.Log("foreach button");
         colorMe.highlightSpecificButton(currentButton, Color.red);
     }
 }