Exemplo n.º 1
0
 public void RegisterListener(UnityAction <Room> call)
 {
     if (m_roomEvent != null)
     {
         m_roomEvent.AddListener(call);
     }
 }
Exemplo n.º 2
0
 private static void AddEventListeners()
 {
     connectResponseEvent.AddListener(OnConnect);
     disconnectResponseEvent.AddListener(OnDisconnect);
     joinRoomResponseEvent.AddListener(OnJoinRoom);
     leaveRoomResponseEvent.AddListener(OnLeaveRoom);
     roomListResponseEvent.AddListener(OnRoomListReceived);
     customMessageResponseEvent.AddListener(OnCustomMessage);
 }
Exemplo n.º 3
0
 public void AddRoomEvent(UnityAction <RoomModel> call)
 {
     roomEvent.AddListener(call);
 }
Exemplo n.º 4
0
 public void AddExitRoomEvent(UnityAction <Room> call)
 {
     onExitRoom.AddListener(call);
 }
Exemplo n.º 5
0
 public void AddEnterNewRoomEvent(UnityAction <Room> call)
 {
     onEnterNewRoom.AddListener(call);
 }