Example #1
0
 public void SDKManagerLongHomeKey()
 {
     //closepanel
     if (resetPanel.activeSelf)
     {
         resetPanel.SetActive(false);
         resetPanel.transform.Find("Panel").GetComponent <Canvas>().sortingOrder = 10001;
     }
     if (pvr_UnitySDKSensor != null)
     {
         if (isHasController)
         {
             if (Controller.UPvr_GetControllerState(0) == ControllerState.Connected ||
                 Controller.UPvr_GetControllerState(1) == ControllerState.Connected)
             {
                 pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(0, 1);
             }
             else
             {
                 pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(1, 1);
             }
         }
         else
         {
             pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(1, 1);
         }
     }
 }
Example #2
0
 public void SDKManagerLongHomeKey()
 {
     //closepanel
     resetPanel.SetActive(false);
     if (pvr_UnitySDKSensor != null)
     {
         if (isHasController)
         {
             if (Controller.UPvr_GetControllerState(0) == ControllerState.Connected ||
                 Controller.UPvr_GetControllerState(1) == ControllerState.Connected)
             {
                 pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(0, 1);
             }
             else
             {
                 pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(1, 1);
             }
         }
         else
         {
             pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(1, 1);
         }
     }
 }