Пример #1
0
        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();
                }
            }
        }
Пример #2
0
 public void OnCreatedRoom()
 {
     if (IsScreenVisible())
     {
         UICreateRoom.HideScreen();
         UIRoom.ShowScreen();
     }
 }