Example #1
0
    protected void OnEnable()
    {
        broadcastWait = new WaitForSeconds(broadcastInterval);

        if (udpMessage == null)
        {
            InitMessage();
            socketer.StartClient();
        }
        StartCoroutine(BroadcastIpCo());
    }
Example #2
0
 public void ConnectToServer(string address)
 {
     socketer.Host = address;
     socketer.StartClient();
 }