Exemplo n.º 1
0
 //This function runs whenever a box is closed
 void BoxClosed(BoxDataCombo closedBox)
 {
     //We check if the closed box is our custom box with the TextField
     if (closedBox.boxData.id == "customInput")
     {
         //If it is, we retrieve the input data from the TextField before the box is destroyed
         customInput = closedBox.boxObject.GetComponentInChildren <InputField> ().text;
         //And set the body of the next box to show our input
         boxes [index + 1].body = "Thank you for filling out our short survey. You helped us a lot!\r\n \r\n The answer we received: <color=teal> \r\n" + customInput + "</color>";
     }
 }
Exemplo n.º 2
0
 void Test(BoxDataCombo combo)
 {
 }