Example #1
0
        private void HmdStatusEvent(NibiruEmulatorClientSocket.HmdStatusData data)
        {
            bool IsControllerConnect = data.controllerStatus == 1;

            Loom.QueueOnMainThread((param) => {
                NxrPlayerCtrl.Instance.debugInEditor = (bool)param;
            }, IsControllerConnect);
        }
        private void HmdStatusEvent(NibiruEmulatorClientSocket.HmdStatusData data)
        {
            bool IsControllerConnect = data.controllerStatus == 1;

            if (IsControllerConnect)
            {
                IsLeftControllerConenct  = data.controllerType == 0;
                IsRightControllerConenct = data.controllerType == 1;
            }
        }