Question by
lloladin · Sep 24, 2015 at 11:37 AM ·
c#unity 5networking
unity NetworkingLobbyManager problem
so my question is how do you start the game from the lobby bc i tryed to make a custom LobbyPlayer script and call the function SendReadyMessage() the game starts but the player never spawns no idea whats going on i would expect that the NetWorkingLobbyManager OnPlayerReady Function would spawn the player but i gues not so how do you spawn the player once evryone in the lobby are ready?
Heres the code for LobbyManager
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class CustomNetWorkLobbyManager : NetworkLobbyManager
{
#region Host
public void Host()
{
StartHost();
}
#endregion
}
And the LobbyPlayer
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class CusomNetWorkLobbyPlayer : NetworkLobbyPlayer {
public void Start()
{
SendReadyToBeginMessage();
}
}
any help is greatly apreciated
Comment