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
Type | Name | Description |
---|---|---|
T | msg | |
System.Boolean | sendToReady | Use 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.NetworkIdentity | exclude | Add Identity to exclude here, useful when you want to send to all players except the owner |
Mirage.Channel | channelId |