Mike is actually wrong in this case. By using "UIEventListener.Get(InputField).onSubmit += OnSubmit;" you should pass a GameObject. But where your error is coming from im not sure at all as everything looks proper. Are you sure its coming from this line?