I am trying to Simulate a Mouse click on an NGUI Button with a Keyboard Input.
I have try the UIKeyBinding script and this line bellow but the UIPlayAnimation and fonction doesn't execute, only the sound play.
I would like to know what I'm doing wrong. Thank!
if(Input.GetKeyUp(KeyCode.Escape))
buttonGameObject.SendMessage("OnClick", SendMessageOptions.DontRequireReceiver);