I've been stuck on this for a little while. I want to call an onClick action for a button from another script.
I.E. see the below capture. I want to call that onClick from another script.

I tried this.transform.GetChild(0).SendMessage("onClick", number); but I keep getting SendMessage onClick has no receiver! error.
Any idea what I am missing?
Thank you in advance :)