예제 #1
0
    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);*/
    }
예제 #2
0
 public void gameStart()
 {
     BTsocket.subscribe();
     SceneManager.LoadScene("loading");
 }