In my script I want to trigger a Click function of a button I thought I can do something like:
gameObject.GetComponent().Click();