Hi everybody !
I have a problem that broke my mind.
I’m creating a very simple FPS multiplayer game to learn UNet.
Everything works fine but I tried to implement the NetworkLobbyManager example.
I test it. So, I create a lobby and run the game for 1 player : me.
I have no error but the first Rpc Method is not working at all.
What I don’t understand, is that this method works fine with the simple NetworkManager.
Here is my code
void Start()
{
if(isLocalPlayer)
{
Setup();
}
}
void Setup()
{
CmdBroadCastNewPlayerSetup();
}
[Command]
void CmdBroadCastNewPlayerSetup()
{
RpcSetup();
}
[ClientRpc]
void RpcSetup()
{
Debug.Log("Start");
}
This code works with NetworkManager but not with the NetworkLobbyExample
Edit : If I put a Debug.Log in the Command, it works even with the NetworkLobbyManager