I can't select Script Functions in Unity 4.6 UI

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 :slight_smile:

The functions:

  1. Must be public

  2. Must have 1 or no parameters of type (Bool, int, string, GameObject)

  3. Must have no return type

@ispeelgood it turns out my functions weren’t appearing beacuse they had yields in them. No coroutine’s allowed…