Created
March 13, 2012 10:53
-
-
Save anchan828/2028108 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Example : MonoBehaviour | |
{ | |
long time = 5000; | |
void Start () | |
{ | |
AndroidJNI.AttachCurrentThread (); | |
AndroidJavaObject clazz = new AndroidJavaObject ("android.os.Vibrator"); | |
clazz.Call ("vibrate", new object[]{time}); | |
} | |
void DontCallMethod () | |
{ | |
Handheld.Vibrate (); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment