Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Plugin: How modify the properties of a room to be created?

$
0
0
In my plugin, I need to change some properties of rooms in his creation.
I'm making the changes I need, but these changes are not visible on the client. Look!
      public override void OnCreateGame(ICreateGameCallInfo info)
{
SerializableGameState gameState = new SerializableGameState();
gameState.IsOpen = false;
gameState.IsVisible = false;
if(PluginHost.SetGameState(gameState))
{
info.Continue();
}
else
{
info.Fail("Fail at set new state on room");
}
}
After the room created on the client, we perform a simple check on the Start () component, just to let me know the value of the variables (PhotonNetwork.room.isOpen). But the variables are not suffering changing from plugin! Why??

Please. Can someone help me?

Viewing all articles
Browse latest Browse all 1557

Latest Images

Trending Articles



Latest Images