I am working on unity with smartfox integration for my multi player cards game. Now I am creating rooms to join to play the game. Room is created and user is joined in the room, the problem is now I have to call USER_ENTER_ROOM event to confirm that user is entered in the room and no room creation error occurred. But this event is not givin the Logs. I have tried this
public void OnUserEnterRoom(BaseEvent evt){
User user = (User)evt.Params["user"];
Room room = (Room)evt.Params["room"];
Debug.Log("User: " + user.Name + " has just joined Room: " + room.Name);
}
and I called this event in my awake function like this.
sfs.AddEventListener(SFSEvent.USER_ENTER_ROOM, OnUserEnterRoom);
According to my r&d it should work but its not.