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!
Please. Can someone help me?
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?