I'm developing a game with Unity and using C# as the language for the scripts. I want to use the Device Vibration in my Microsoft Phone which is easily available for Windows Phone Development in Visual Studio using the following:
And then calling the following method:
VibrationDevice testVibrationDevice = VibrationDevice.GetDefault(); testVibrationDevice.Vibrate(TimeSpan.FromSeconds(3));
The above works perfectly when I'm building a Windows Phone App from visual Studio. However i totally need to integrate the above functionality in my Unity game.
Any suggestions, workarounds, tips or even hacks would be really helpful. Thanks in advance.