IsConnected() public method

public IsConnected ( ) : bool
return bool
Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (network.IsConnected())
     {
         connectionText.text = "Connected";
     }
     else
     {
         connectionText.text = "Disconnected";
     }
 }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (network.IsConnected())
     {
         OnSendButton();
         // connectionText.text = "Connected";
     }
     else
     {
         // connectionText.text = "Disconnected";
     }
 }