public IEnumerator waitLoop(System.Action connectedAct) { while (!BTsocket.isConnectedBLE(Constants.bleMicroBit)) { yield return(0); } btSoc.subscribe(); disConnectedBtn.gameObject.SetActive(true); connectedAct(); //---------------------------- /*cnt = 0; * recvCnt = 0; * InvokeRepeating("testMethod", 2f, 1f);*/ }
public void gameStart() { BTsocket.subscribe(); SceneManager.LoadScene("loading"); }