IsConnected() public method

public IsConnected ( ) : bool
return bool
コード例 #1
0
ファイル: UIRoot.cs プロジェクト: chenbk85/CGSFII
 // Update is called once per frame
 void Update()
 {
     if (network.IsConnected())
     {
         connectionText.text = "Connected";
     }
     else
     {
         connectionText.text = "Disconnected";
     }
 }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     if (network.IsConnected())
     {
         OnSendButton();
         // connectionText.text = "Connected";
     }
     else
     {
         // connectionText.text = "Disconnected";
     }
 }