public class NewBehaviourScript : MonoBehaviour
{
public InputField input;
void Start()
{
SetText(input);
}
private void SetText(InputField inputField)
{
int number = int.Parse(input.text);
Debug.Log(number);
}
}