/// <summary> /// you can shake any combination of position, scale and eulers by passing in a bitmask of the types you want to shake. frameMod /// allows you to specify what frame count the shakes should occur on. for example, a frameMod of 3 would mean that only when /// frameCount % 3 == 0 will the shake occur /// </summary> public ShakeTweenProperty(Vector3 shakeMagnitude, GoShakeType shakeType, int frameMod = 1, bool useLocalProperties = false) : base(true) { _shakeMagnitude = shakeMagnitude; _shakeType = shakeType; _frameMod = frameMod; _useLocalProperties = useLocalProperties; }
/// <summary> /// you can shake any combination of position, scale and eulers by passing in a bitmask of the types you want to shake. frameMod /// allows you to specify what frame count the shakes should occur on. for example, a frameMod of 3 would mean that only when /// frameCount % 3 == 0 will the shake occur /// </summary> public ShakeTweenProperty( Vector3 shakeMagnitude, GoShakeType shakeType, int frameMod = 1, bool useLocalProperties = false ) : base( true ) { _shakeMagnitude = shakeMagnitude; _shakeType = shakeType; _frameMod = frameMod; _useLocalProperties = useLocalProperties; }
public GoTweenConfig shake(Vector3 shakeMagnitude, GoShakeType shakeType = GoShakeType.Position, int frameMod = 1, bool useLocalProperties = false) { ShakeTweenProperty item = new ShakeTweenProperty(shakeMagnitude, shakeType, frameMod, useLocalProperties); _tweenProperties.Add(item); return(this); }
public static GoTween shake(this Transform self, float duration, Vector3 shakeMagnitude, GoShakeType shakeType = GoShakeType.Position, int frameMod = 1, bool useLocalProperties = false) { return(Go.to(self, duration, new GoTweenConfig().shake(shakeMagnitude, shakeType, frameMod, useLocalProperties))); }
/// <summary> /// shake tween /// </summary> public GoTweenConfig shake( Vector3 shakeMagnitude, GoShakeType shakeType = GoShakeType.Position, int frameMod = 1, bool useLocalProperties = false ) { var prop = new ShakeTweenProperty( shakeMagnitude, shakeType, frameMod, useLocalProperties ); _tweenProperties.Add( prop ); return this; }
public static GoTween shake( this Transform self, float duration, Vector3 shakeMagnitude, GoShakeType shakeType = GoShakeType.Position, int frameMod = 1, bool useLocalProperties = false ) { return Go.to( self, duration, new GoTweenConfig().shake( shakeMagnitude, shakeType, frameMod, useLocalProperties ) ); }