void OnGUI() { if (server == null) { return; } GUILayout.Label(server.IsConnected ? "Connected" : "Disconnected"); if (!server.IsConnected) { return; } if (GUILayout.Button("Save all scenes to file")) { server.Post(new RequestSaveAllScenes()); } }
public void SendFromServer() { server.Post(new RequestSaveAllScenes()); }