UnityEngine.Networking.NetworkLobbyPlayer.SendReadyToBeginMessage C# (CSharp) Method

SendReadyToBeginMessage() public method

This is used on clients to tell the server that this player is ready for the game to begin.

public SendReadyToBeginMessage ( ) : void
return void
        public void SendReadyToBeginMessage()
        {
            if (LogFilter.logDebug)
            {
                Debug.Log("NetworkLobbyPlayer SendReadyToBeginMessage");
            }
            NetworkLobbyManager singleton = NetworkManager.singleton as NetworkLobbyManager;
            if (singleton != null)
            {
                LobbyReadyToBeginMessage msg = new LobbyReadyToBeginMessage {
                    slotId = (byte) base.playerControllerId,
                    readyState = true
                };
                singleton.client.Send(0x2b, msg);
            }
        }