using UnityEngine;
using LitMotion.Adapters;
namespace LitMotion
{
public static partial class LMotion
{
///
/// API for creating Punch motions.
///
public static class Punch
{
///
/// Create a builder for building Punch motion.
///
/// Start value
/// Vibration strength
/// Duration
/// Created motion builder
public static MotionBuilder Create(float startValue, float strength, float duration)
{
return Create(startValue, strength, duration)
.WithOptions(PunchOptions.Default);
}
///
/// Create a builder for building Punch motion.
///
/// Start value
/// Vibration strength
/// Duration
/// Created motion builder
public static MotionBuilder Create(Vector2 startValue, Vector2 strength, float duration)
{
return Create(startValue, strength, duration)
.WithOptions(PunchOptions.Default);
}
///
/// Create a builder for building Punch motion.
///
/// Start value
/// Vibration strength
/// Duration
/// Created motion builder
public static MotionBuilder Create(Vector3 startValue, Vector3 strength, float duration)
{
return Create(startValue, strength, duration)
.WithOptions(PunchOptions.Default);
}
}
}
}