Hello who help me? android input

Hello i need help with input button for my chat …here is my script what not work

  public Button send;

if (!Input.GetButtonDown(send.name))

The Input.GetButtonDown method you’re trying to use is for physical buttons like on a gamepad, not for UI buttons.

You have two options: set up an OnClick listener in the Button’s inspector, or add one in code. Just Google unity “Unity UI button tutorial” and you should be able to find a quick example of how to do this.