I dont understand how it works

i write this code,
public override void OnRoomListUpdate(List<RoomInfo> roomList)
    {
        print("Room List UPDATE");
        foreach (Transform oldItem in _roomsListContent)
        {
            Destroy(oldItem.gameObject);
        }
        for (int i = 0; i < roomList.Count; i++)
        {
            Instantiate(_roomListPrefab).GetComponent<RoomListItem>().SetUp(roomList[i]);
        }
    }

but it doesnt run, in documentation i found nothing

Comments

  • Hi @Niek352,

    Thank you for choosing Photon!

    You can take a look at code in Asteroids demo or this snippet.
  • JohnTube wrote: »
    Hi @Niek352,

    Thank you for choosing Photon!

    You can take a look at code in Asteroids demo or this snippet.

    Thanks for answer, but i found a bug, i doesnot connect to lobby, i try to connect to the room immediately
Sign In or Register to comment.