2021. 7. 10. 17:34
Unity/Photon
API들
https://doc-api.photonengine.com/en/pun/v2/index.html
추가해야할것들
using Photon.Pun;
변경되는 함수
public class PhotonInit : Photon.PunBehaviour
->
public class PhotonInit : MonoBehaviourPunCallbacks
PhotonNetwork.ConnectUsingSettings(serverName);
PhotonNetwork.ConnectToBestCloudServer(serverName);
->
PhotonNetwork.ConnectUsingSettings();
PhotonNetwork.ConnectToBestCloudServer();
public override void OnPhotonRandomJoinFailed(object[] codeAndMsg)
{
}
->
public override void OnJoinRandomFailed(short returnCode, string message)
{
}
public override void OnPhotonCreateRoomFailed(object[] codeAndMsg)
{
}
->
public override void OnCreateRoomFailed(short returnCode, string message)
{
}
photonView.isMine
->
photonView.IsMine
PhotonTargets.All
->
RpcTarget.All
PhotonNetwork.PhotonServerSettings.ChatAppID
->
Photon.Pun.PhotonNetwork.PhotonServerSettings.AppSettings.AppIdChat
public override void OnReceivedRoomListUpdate()
{
RoomInfo[] rooms = PhotonNetwork.GetRoomList();
}
->
public override void OnRoomListUpdate(List<RoomInfo> roomList)
{
}
삭제된 함수
public override void OnConnectedToPhoton()
{
}
'Unity > Photon' 카테고리의 다른 글
자주 쓰는 유니티 포톤 코드 (0) | 2021.07.26 |
---|---|
포톤 보이스 (0) | 2021.07.10 |
포톤 챗 (0) | 2021.07.07 |