public void PrintList() { string result = ""; string input = ""; if ((InputCtrl != null)) { input = InputCtrl.text; if (InputCtrl.gameObject.GetComponent <InputHandler>() != null) { if (InputCtrl.gameObject.GetComponent <InputHandler>().currentInputMode == InputHandler.InputAnvil)//limit value to Y/N { if (input.Length >= 1) { string lastChar = input.Substring(input.Length - 1); if (lastChar.ToUpper() == "Y") { input = "Yes"; InputCtrl.text = "Y"; } else { input = "No"; InputCtrl.text = "N"; } } else { input = "No"; InputCtrl.text = "N"; } } } } for (int i = 0; i < ptr; i++) { if (i == ptr - 1) { result = result + txtToDisplay[i] + " " + input + "\n"; } else { result = result + txtToDisplay[i] + "\n"; } } DirectSet(result); if (useDragon) { Dragons.MoveScroll(); } }
public void PrintList() { string result = ""; for (int i = 0; i < ptr; i++) { result = result + txtToDisplay[i] + "\n"; } DirectSet(result); if (useDragon) { Dragons.MoveScroll(); } }
public void PrintList() { string result = ""; for (int i = 0; i < ptr; i++) { result = result + txtToDisplay[i] + "\n"; } NewUIOUt.text = result; if (useDragon) { Dragons.MoveScroll(); } }