[Edit]I have a trouble while using photon fusion in Unity Engine.
Hello? I received a recommend to use Photon Fusion last question.
[Solved]
*********************************************************************
- I solved this question but, I will left this for other people to know how to do.
- I add a new question.
*********************************************************************
if(PhotonNetwork.IsConnected) { Debug.Log("Connected'); }
This is a Photon Pun function. I want to do this function with Photon Fusion.
I tried follow this document and write like this:
SimulationBehaviour simulation; if(simulation.Runner.IsConnectedToServer) { Debug.Log("Is Connect"); }
but, it occur error.
How can I do? I think it is a very bagic but, I cannot find anykind of informations in anywhere...
*****************************************************************************
++) [New Question]
public NetworkRunner runner; if (!runner.IsConnectedToServer) { Debug.Log("Fail"); runner.Disconnect
I solved problem with above code. However, I have fall in another problem. I try to connect with server. But, I have no idea to write a right code.
PhotonNetwork.ConnectUsingSettings();
How to convert this code at Photon Fusion?
Answers
-
I am also having a hard time shifting from pun2 to fusion . for the above conversion you can use this:
StartGameResult result = await this.runner.JoinSessionLobby(SessionLobby.ClientServer);
if (result.Ok)
{
Debug.Log("Entered The Lobby");
}
else
{
Debug.Log("Joining lobby failed");
}
2 -
Thank you so much your anwer was really helpful!
0