Ejemplo n.º 1
0
 // Method to start this object searching for LAN Broadcast messages sent by players, used by the script itself
 private void StartSearching()
 {
     lstReceivedMessages.Clear();
     BeginAsyncReceive();
     fTimeSearchStarted = Time.time;
     currentState       = enuState.Searching;
     Debug.Log("Searching for other players...");
 }
Ejemplo n.º 2
0
 // Method to stop this object searching for LAN Broadcast messages sent by players, used by the script itself
 private void StopSearching()
 {
     currentState = enuState.NotActive;
     strMessage = "Search stopped.";
 }
Ejemplo n.º 3
0
 // Method to stop this object announcing this is a server, used by the script itself
 private void StopAnnouncing()
 {
     currentState = enuState.NotActive;
     strMessage = "Announcements stopped.";
 }
Ejemplo n.º 4
0
 // Method to start this object searching for LAN Broadcast messages sent by players, used by the script itself
 private void StartSearching()
 {
     lstReceivedMessages.Clear();
     fTimeSearchStarted = Time.time;
     BeginAsyncReceive();
     currentState = enuState.Searching;
     strMessage = "Searching for other players...";
 }
Ejemplo n.º 5
0
 // Method to start this object announcing this is a server, used by the script itself
 private void StartAnnouncing()
 {
     currentState = enuState.Announcing;
     strMessage = "Announcing we are a server...";
 }
Ejemplo n.º 6
0
 // Method to stop this object searching for LAN Broadcast messages sent by players, used by the script itself
 private void StopSearching()
 {
     currentState = enuState.NotActive;
     Debug.Log("Search stopped.");
 }
Ejemplo n.º 7
0
 // Method to stop this object announcing this is a server, used by the script itself
 private void StopAnnouncing()
 {
     currentState = enuState.NotActive;
     Debug.Log("Announcements stopped.");
 }
Ejemplo n.º 8
0
 // Method to start this object announcing this is a server, used by the script itself
 private void StartAnnouncing()
 {
     currentState = enuState.Announcing;
     Debug.Log("Announcing we are a server...");
 }
Ejemplo n.º 9
0
 // Method to stop this object searching for LAN Broadcast messages sent by players, used by the script itself
 private void StopSearching()
 {
     currentState = enuState.NotActive;
     strMessage   = "Search stopped.";
 }
Ejemplo n.º 10
0
 // Method to stop this object announcing this is a server, used by the script itself
 private void StopAnnouncing()
 {
     currentState = enuState.NotActive;
     strMessage   = "Announcements stopped.";
 }
Ejemplo n.º 11
0
 // Method to start this object announcing this is a server, used by the script itself
 private void StartAnnouncing()
 {
     currentState = enuState.Announcing;
     strMessage   = "Announcing we are a server...";
 }
 // Method to start this object searching for LAN Broadcast messages sent by players, used by the script itself
 private void StartSearching()
 {
     lstReceivedMessages.Clear();
     BeginAsyncReceive();
     fTimeSearchStarted = ((DateTime.Now.Ticks) / ((long) Math.Pow(10, 7)));
     currentState = enuState.Searching;
     strMessage = "Searching for other players...";
 }