This simple script tells the Game/App from Unity to shake/vibrate the Device if iOS/Android. If the device doesn't support vibrate, it'll simply do nothing!:
#if UNITY_IPHONE | UNITY_ANDROID
Handheld.Vibrate();
#endif
No comments:
Post a Comment