Given this Scene (see picture).
How do I add an on click event to the Button_Login in the Start()
method of the MonoBehaviour
class connected to my camera. So that when it is clicked the button the method TryLogin(string username, string password)
is called.
I assume I have to get a hold of the button object but I cant find any examples of how to manipulate it as it does not exist in the namespace as Button_Login
and I can’t find any way to get the button object.