Пример #1
0
    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());
        }
    }
Пример #2
0
 public void SendFromServer()
 {
     server.Post(new RequestSaveAllScenes());
 }