void MessageFun(string messageKey, object param1, object param2)
 {
     if (string.Compare(messageKey, Hi5_Message.Hi5_MessageMessageKey.messageCalibrationResult) == 0)
     {
         if (param1 is CalibrationInterfaceResult)
         {
             CalibrationInterfaceResult result = param1 as CalibrationInterfaceResult;
             if (result.result == ECalibrationInterfaceResult.EBposFailed)
             {
             }
             else if (result.result == ECalibrationInterfaceResult.EBposSuccess)
             {
             }
             else if (result.result == ECalibrationInterfaceResult.EPposComplete)
             {
             }
         }
     }
 }
Exemplo n.º 2
0
        IEnumerator UpdateCalibrationProgress()
        {
            int calibrationProgress = 0;

            while (calibrationProgress < 100)
            {
                calibrationProgress = HI5_Calibration.GetCalibrationProgress(mPos);
                mPercent            = (float)calibrationProgress;
                yield return(null);
            }
            if (mPos == HI5_Pose.BPose)
            {
                if (HI5_Manager.GetGloveStatus().BposReceiveResult)
                {
                    if (HI5_Manager.GetGloveStatus().IsCalibrationBposSuccess)
                    {
                        CalibrationInterfaceResult result = new CalibrationInterfaceResult();
                        result.result = ECalibrationInterfaceResult.EBposSuccess;
                        Hi5_Message.GetInstance().DispenseMessage(Hi5_Message.Hi5_MessageMessageKey.messageCalibrationResult, (object)result);
                    }
                    else
                    {
                        CalibrationInterfaceResult result = new CalibrationInterfaceResult();
                        result.result = ECalibrationInterfaceResult.EBposFailed;
                        Hi5_Message.GetInstance().DispenseMessage(Hi5_Message.Hi5_MessageMessageKey.messageCalibrationResult, (object)result);
                    }
                }
                else
                {
                    yield return(null);
                }
            }
            else
            {
                CalibrationInterfaceResult result = new CalibrationInterfaceResult();
                result.result = ECalibrationInterfaceResult.EPposComplete;
                Hi5_Message.GetInstance().DispenseMessage(Hi5_Message.Hi5_MessageMessageKey.messageCalibrationResult, (object)result);
            }
        }