I have a multiplayer game, where I put a simple Canvas with two buttons, which lets the player choose their team upon joining the game.
This is handled by two functions JoinTeamA() and JoinTeamB(), in a script called NetworkingPlayers, attached to a GameObject called Networking.
I created my buttons, and clicked the + on the OnClick() list. I threw my Game Controller GameObject on it, but it doesn’t let me call the functions I want, instead only showing these options:
How can I make it show the functions of the NetworkingPlayers script?
Thanks in advance