예제 #1
0
    void Start()
    {
        BtConnector.moduleMAC("20:15:07:02:69:59");

        if (!BtConnector.isBluetoothEnabled())
        {
            BtConnector.askEnableBluetooth();
        }
        else
        {
            BtConnector.moduleMAC("20:15:07:02:69:59");
            BtConnector.connect();
        }


        photonView = GetComponent <PhotonView> ();
        messages   = new Queue <string> (messageCount);

        PhotonNetwork.logLevel = PhotonLogLevel.Full;
        PhotonNetwork.ConnectUsingSettings("1.0");
        StartCoroutine("UpdateConnectionString");
    }