private static void OnLeaveRoom() { myRoom.roomUsers.Clear(); myRoom = null; myUser.LeaveRoom(); }
private static void OnJoinRoom(NetworkRoom room) { myRoom = room; connected = true; Debug.Log("Room joined!"); }