Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (!pm.IsInLobby())
        {
            return;
        }
        else
        {
            LobbyInActive = true;
        }

        foreach (RoomInfo room in PhotonNetwork.GetRoomList())
        {
            int roomNo = 0;
            switch (room.name)
            {
            case "level1":
                roomNo = 0;
                break;

            case "level2":
                roomNo = 1;
                break;

            case "level3":
                roomNo = 2;
                break;

            case "level4":
                roomNo = 3;
                break;

            case "level5":
                roomNo = 4;
                break;

            default:
                break;
            }
        }
    }