public void OnPointerClick(PointerEventData eventData) { // O vírus plague é destruído por click _anim.SetTrigger("hurt"); Vibrator.vibrate(new long[] { 20, 20, 50, 20, 50, 10 }, -1); onDefeated(); _isHit = true; }
/// <summary> /// Retira Item, quando não está vázio /// </summary> /// <param name="eventData"></param> public void OnPointerDown(PointerEventData eventData) { //print("Pointer down over Slot"); if (hasItem) { Vibrator.vibrate(15); } }
private void detonate() { SpriteRenderer spr = GetComponent <SpriteRenderer>(); spr.enabled = false; if (effectActive != null) { Instantiate(effectActive, transform.position, Quaternion.identity); Vibrator.vibrate(new long[] { 20, 100, 50, 50, 20, 10, 20, 10 }, -1); } }
public override void onCardboardTrigger() { //Log.i(TAG, "onCardboardTrigger"); if (isLookingAtObject()) { score++; overlayView.show3DToast("Found it! Look around for another one.\nScore = " + score); //hideObject(); } else { overlayView.show3DToast("Look around to find the object!"); } // Always give user feedback. vibrator.vibrate(50); }
// Use this for initialization void Awake() { Vibrator.vibrate(new long[] { 20, 5 }, -1); }
public void vibrate() { Vibrator.vibrate(new long[] { 20, 100, 50, 50, 20, 10, 20, 10 }, -1); }