// Checks if there is anything entered into the input field. void LockInput(InputField input) { PlayerManagerScript playerManagerScript = (PlayerManagerScript)playerManager.GetComponent(typeof(PlayerManagerScript)); playerManagerScript.ReceiveIDInput(transform.parent.gameObject, input.text); }