arthurdiniz0_outer-math/OuterMath Unity Project/Assets/PlayMaker/Actions/Device/DeviceVibrate.cs
// (c) Copyright HutongGames, LLC 2010-2020. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
	[ActionCategory(ActionCategory.Device)]
	[Tooltip("Causes the device to vibrate for half a second." +
             "\nNOTE: Unity's built in vibrate function is fairly limited. However there are alternatives available on the Asset Store...")]
	public class DeviceVibrate : FsmStateAction
	{
		public override void Reset()
		{}

		public override void OnEnter()
        {
#if (UNITY_IPHONE || UNITY_IOS || UNITY_ANDROID)			
			Handheld.Vibrate();
#endif
            Finish();
        }
	}
}