IsConnected() public method

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