사용자 설정
플레이나누 채팅 서비스는 기존 계정 서비스와 별개로 사용자를 설정해야 합니다.
기존에 플레이나누 계정 서비스를 사용하시는 경우 별도로 전달된 계정 정보를 활용하여 사용자를 설정합니다.
호출 정보
SetPlayer(string userId, string userName) {}
호출 상세 정보
파라미터 | 설명 | 타입 |
---|---|---|
userId | 사용자 아이디 | string |
userName | 사용자 이름 | string |
소스 코드
using UnityEngine;
using PlayNANOO.ChatServer;
using PlayNANOO.ChatServer.Models;
public class PlayNANOOChatExample : MonoBehaviour, IChatListener
{
ChatClient chatClient;
void Start()
{
chatClient = new ChatClient(this);
chatClient.SetPlayer("USER_ID", "USER_NAME");
}
}