Skip to main content

Class LobbyReady

Inheritance
System.Object
Syntax
public class LobbyReady : MonoBehaviour

Fields

Server

Declaration
public NetworkServer Server

Players

Declaration
public Dictionary<NetworkIdentity, ReadyCheck> Players

Methods

SetAllClientsNotReady()

Declaration
public void SetAllClientsNotReady()

SendToReady<T>(T, Boolean, NetworkIdentity, Channel)

Send a message to players that are ready on check, or not ready if sendToReady fakse

Declaration
public void SendToReady<T>(T msg, bool sendToReady = true, NetworkIdentity exclude = null, Channel channelId = Channel.Reliable)
Parameters
TypeNameDescription
Tmsg
System.BooleansendToReadyUse to send message no not ready players instead, not this doesn't check server for players with out character, only players with PlayerReadyCheck on their character
Mirage.NetworkIdentityexcludeAdd Identity to exclude here, useful when you want to send to all players except the owner
Mirage.ChannelchannelId