Exemplo n.º 1
0
    //used to move to another scene--/\



    //appends to UID, up to 5 numbers--\/

    private void add_to_UID(int key_value)
    {
        string temp_string = referenced_variables_SEP.UID;

        if (temp_string.Length < 5)
        {
            temp_string = temp_string + key_value.ToString();
            referenced_variables_SEP.UID = temp_string;
            //Debug.Log ("UID = " + referenced_variables_SEP.UID);
        }
        else
        {
            Debug.Log("UID already has 5 numbers in it, clearing.");
            player.playSound(4);
            clear_UID();
            temp_string = "";
            temp_string = temp_string + key_value.ToString();
            referenced_variables_SEP.UID = temp_string;
            //Debug.Log ("UID = " + referenced_variables_SEP.UID);
        }
    }
Exemplo n.º 2
0
 private void onClick()
 {
     player.playSound(3);
 }
Exemplo n.º 3
0
 private void cancelButtonOnClick()
 {
     Destroy(GameObject.FindGameObjectWithTag("manager"));
     player.playSound(4);
 }
Exemplo n.º 4
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);
 }