Example #1
0
        /// <summary>
        /// Callback for when photon recieves the notification that the player has entered a room
        /// </summary>
        private void OnJoinedRoom()
        {
            Debug.Log($"PlayGen.Photon.Unity::Client::JoinedRoom");

            CurrentRoom?.Dispose();
            CurrentRoom = CreateClientRoom(_photonClientWrapper, _messageSerializationHandler, OnRoomInitialized);
            CurrentRoom.ExceptionEvent += OnException;
        }
Example #2
0
 /// <summary>
 /// Callback for when room is fully initialized
 /// </summary>
 /// <param name="room"></param>
 private void OnRoomInitialized(ClientRoom <TPlayer> room)
 {
     JoinedRoomEvent?.Invoke(CurrentRoom);
 }