void Update() { if (IsScreenVisible()) { if (PhotonNetwork.connected) { if (PhotonNetwork.inRoom) { UILobby.HideScreen(); UIRoom.ShowScreen(); } else if (PhotonNetwork.insideLobby) { UpdateRoomList(PhotonNetwork.GetRoomList()); } } else { UIDialog.Show("Disconnected From Photon"); UILobby.HideScreen(); UIConnect.ShowScreen(); } } }
public void OnCreatedRoom() { if (IsScreenVisible()) { UICreateRoom.HideScreen(); UIRoom.ShowScreen(); } }