Topic: Waiting for players to ready up in multiplayer
Dear UFE
We are wanting to add a UI interface so that when a person joins a room, they will have various options and then have to ready up. I have been looking into photon and most of this is coming together as expected however UFE's default behaviour is that if one player hosts a game, as soon as the second player has joined, both players automatically launch into the character select.
I have tried supressing this behaviour in the hostgamescreen.cs
protected virtual void OnPlayerConnectedToMatch(MultiplayerAPI.PlayerInformation player)
and commenting out circa line 64
// UFE.StartNetworkGame((float)UFE.config.gameGUI.screenFadeDuration, 1, false);
This does stop the game from launching partly however as soon as another person joins, I am getting a lot of errors.
It looks very much like there is other behaviour that I need to supress. Please can you advise where I should look for this?
Your help will be very much appreciated.