示例#1
0
        IEnumerator LobbySequence()
        {
            OpenRelayClient.JoinEntry();
            while (true)
            {
                if (lobbyJoined)
                {
                    break;
                }
                yield return(new WaitForSeconds(0.5f));
            }
            var option = new OpenRelay.RoomOptions();

            OpenRelayClient.CreateOrJoinRoom("CycleCube", option, (byte)5);
            while (true)
            {
                if (roomCreated)
                {
                    break;
                }
                yield return(new WaitForSeconds(0.5f));
            }
            yield return(null);
        }
        //ConnectComplete

        private void Entry()
        {
            OpenRelayClient.JoinEntry();
        }