public void StartSearchBroadCasting(delJoinServer connectToServer, delStartServer startServer)
 {
     delWhenServerFound       = connectToServer;
     delWhenServerMustStarted = startServer;
     StartBroadcastingSession();
     StartSearching();
 }
Пример #2
0
 // Method to be called by some other object (eg. a NetworkController) to start a broadcast search
 // It takes two delegates; the first for when this object finds a server that can be connected to,
 // the second for when this player is determined to start a server itself.
 public void StartSearchBroadCasting(delJoinServer connectToServer, delStartServer startServer)
 {
     // Set the delegate references, so other functions within this class can call it
     delWhenServerFound       = connectToServer;
     delWhenServerMustStarted = startServer;
     // Start a broadcasting session (this basically prepares the UDPClient)
     StartBroadcastingSession();
     // Start a search
     StartSearching();
 }
Пример #3
0
 // Method to be called by some other object (eg. a NetworkController) to start a broadcast search
 // It takes two delegates; the first for when this object finds a server that can be connected to,
 // the second for when this player is determined to start a server itself.
 public void StartSearchBroadCasting(delJoinServer connectToServer, delStartServer startServer)
 {
     // Set the delegate references, so other functions within this class can call it
     delWhenServerFound = connectToServer;
     delWhenServerMustStarted = startServer;
     // Start a broadcasting session (this basically prepares the UDPClient)
     StartBroadcastingSession();
     // Start a search
     StartSearching();
 }