Exemplo n.º 1
0
        /// <summary>
        /// Handles the event of a client reconnecting.
        /// </summary>
        public void handleClientReconnected(short clientID)
        {
            connectedClients.Add(clientID); //Add client back to list of connected clients

            if (NetworkIdentity.isServer)
            {
                ServerBehaviour.Instance.sendMessage(MessageFactory.createClientReconnectionEventMessage(clientID), clientID, true);
            }

            OnClientReconnected.Invoke(clientID); //Notify observers
        }