using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
public class GameManager : MonoBehaviourPunCallbacks{
void Awake(){
PhotonNetwork.GameVersion = "1";
PhotonNetwork.ConnectUsingSettings();
}
public override void OnConnectedToMaster(){
Debug.Log("OnConnectedToMaster");
PhotonNetwork.JoinRandomRoom();
}
public override void OnJoinedRoom(){
Debug.Log("OnJoinedRoom");
}
public override void OnPhotonRandomJoinFailed(object[] codeAndMsg){
Debug.Log("CreateRoom");
PhotonNetwork.CreateRoom(null, new RoomOptions(){ MaxPlayers = 4 }, TypedLobby.Default);
}
}
мне в ответ
Assets\Scripts\GameManager.cs(24,26): error CS0115: 'GameManager.OnPhotonRandomJoinFailed(object[])': no suitable method found to override
если убрать метод OnPhotonRandomJoinFailed пока что и запустить, то предупреждение
PUN is in development mode (development build). As the 'dev region' is not empty (ru) it overrides the found best region. See PhotonServerSettings.
The 'dev region' (ru) was not found in the enabled regions, the first enabled region is picked (eu)
UnityEngine.Debug:LogWarning(Object)
Photon.Pun.PhotonNetwork:OnRegionsPinged(RegionHandler)
Подскажите что я делаю не так, вроде начинаю с самых простых примеров, делаю по видео, у человека получается, у меня ошибки...