예제 #1
0
        public static void Notification(NotificationFeedback notificationFeedback)
        {
#if UNITY_IOS
            TapticManager.Notification(notificationFeedback);
#elif UNITY_ANDROID
            AndroidHapticManager.Notification(notificationFeedback);
#endif
        }
예제 #2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Enemy")
     {
         hitPoints--;
         if (hitPoints == 0)
         {
             roundManager.KillPlayer();
             audioSource.PlayOneShot(audioDeath);
             Instantiate(bloodSplatter, transform.position, Quaternion.identity);
             TapticManager.Notification(NotificationFeedback.Error);
         }
     }
 }
예제 #3
0
 //##################################################
 public static void NotificationSuccessTaptic()
 {
     if (SystemInfo.supportsVibration)
     {
         long duration = 25;
         if (isAndroid())
         {
             vibrator.Call("vibrate", duration);
         }
         else
         {
             TapticManager.NotificationFeedback feedback;
             feedback = TapticManager.NotificationFeedback.Success;
             TapticManager.Notification(feedback);
         }
     }
 }
예제 #4
0
 public void ShowFireWorks()
 {
     TapticManager.Notification(NotificationFeedback.Success);
     RoomConfigurations[selectedRoom].SearchCamera.transform.GetChild(2).gameObject.SetActive(true);
 }