Example #1
0
        void Start()
        {
            m_userInput = new MiraBTRemoteInput();

            bSessionActive       = false;
            bTexturesInitialized = false;
            InitializeTrackers();

            Debug.Log("STARTING ConnectToEditor");
            editorID         = -1;
            playerConnection = PlayerConnection.instance;
            playerConnection.RegisterConnection(EditorConnected);
            playerConnection.RegisterDisconnection(EditorDisconnected);
            playerConnection.Register(MiraConnectionMessageIds.fromEditorMiraSessionMsgId, HandleEditorMessage);
            //playerConnection.Register(MiraConnectionMessageIds.screenCaptureJPEGMsgID, ReceiveJPEGFrame);
        }
 private void Awake()
 {
     ValidateInstance();
     controllerType = ControllerType.PrismRemote;
     _userInput     = new MiraBTRemoteInput();
 }