IsConnected() public method

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