Hello,
after the player puts in an "Input" how would I get what text/number they put in either through script or to run an action.
I have a menu title, and an input box to input some numbers, then a button to acknowledge. Once the button is pressed I want to read which numbers was put in the text/input box, afterwards I will run either a custom script or a PlayMaker state with the inputed value.
thanks
Comments
{
// Debug.Log (_element.GetType().Name); // for debug purposes only
if(_element.GetType().Name == "MenuCycle")
{
MenuCycle _cycle = (MenuCycle) _element;
Debug.Log ("Chosen option is " + _cycle.selected); // this is which option
Debug.Log ("The current text is " + _cycle.optionsArray [_cycle.selected]); // the text if needed...
Debug.Log ("kz cycle name: " + _cycle.name); // doesnt say...
Debug.Log ("kz : " + _cycle.label); // nope
Debug.Log ("kz : " + _cycle.title); // it says the cycle element name which is: kzCycle sweet
// This function is called whenever a clickable element has a click type of "Custom Script".
}
else if (_element.GetType().Name == "MenuButton")
{
MenuButton _button = (MenuButton) _element;
Debug.Log ("Button Title is: " + _button.title); // the element name
Debug.Log ("Button simulate value: " + _button.simulateInput); // says Button
Debug.Log ("Button name is: " + _button.name); // is blank
Debug.Log ("ButtonPressed int? : " + _buttonPressed); // shows int 1
Debug.Log ("Slot? : " + _slot); // shows slot 0
}
}