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

SendNotReadyToBeginMessage() public method

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

public SendNotReadyToBeginMessage ( ) : void
return void
        public void SendNotReadyToBeginMessage()
        {
            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 = false
                };
                singleton.client.Send(0x2b, msg);
            }
        }