IEnumerator waitAndConnect(float wTime) { yield return(new WaitForSeconds(wTime)); net.Connect(); myUI.connectBT(net.Connected); }