private void SubmitWord(string arg0) { GameObject go = GameObject.Find("SpawnController"); SpawnController other = (SpawnController)go.GetComponent(typeof(SpawnController)); other.AttemptedKill(arg0); var input = gameObject.GetComponent <InputField>(); input.text = ""; input.ActivateInputField(); }