예제 #1
0
 public void DeactivateHaptic()
 {
     if (hapticView != null)
     {
         hapticView.Deactivate();
     }
 }
예제 #2
0
 public void SetHapticViewState()
 {
     Debug.Log("button is clicked");
     if (mHapticView != null)
     {
         if (mHapticView.IsActive())
         {
             mHapticView.Deactivate();
             Debug.Log("Haptic is deactivated");
             //hapticOnOffButton.GetComponent<Image>().sprite = hapticsOff;
             //hapticViewStateText.text = "Activate Haptics";
         }
         else
         {
             mHapticView.Activate();
             Debug.Log("Haptic is activated");
             //hapticOnOffButton.GetComponent<Image>().sprite = hapticsOn;
             //hapticViewStateText.text = "Deactivate Haptics";
         }
     }
 }
예제 #3
0
 void OnDestroy()
 {
     // EB: troubleshoot later!
     mHapticView.Deactivate();
 }
예제 #4
0
 void OnDestroy()
 {
     mHapticView.Deactivate();
 }
 void OnDisable()
 {
     mHapticView.Deactivate();
 }