Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Photon OnReceivedRoomListUpdate, destroying the buttons (after a room no longer exists)

$
0
0
Hi guys, I am making an educational multiplayer game with Photon - I have a canvas when I instantiate a text everytime a room is created. The code looks like this >


Code (CSharp):
  1. public Transform panel_target; // panel with Grid Layout Group
  2.     public GameObject myText;
  3.     GameObject temp;
  4.  
  5.  
  6.     void OnReceivedRoomListUpdate() {
  7.         RoomInfo [] rooms = PhotonNetwork.GetRoomList();
  8.         foreach (RoomInfo room in rooms)
  9. {      
  10.             temp = (GameObject)Instantiate (myText);...
Photon OnReceivedRoomListUpdate, destroying the buttons (after a room no longer exists)

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>