Example #1
0
 public MoveByCurveTween(AbstractCurve curve, object obj, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, Callback callback = null)
     : base(new CurveTweenSimulator(curve, obj, duration, function, TweenPerformer.GetShiftTypeBySpace(space)), duration, null, callback)
 {
 }
 public ShortestRotationTween(Rigidbody obj, Vector3 endValue, float duration, EaseType function)
     : base(
         obj, getAngles(obj.rotation.eulerAngles, endValue), duration, function,
         TweenPerformer.GetShortestRotationBySpace(TweenSpace.Global), TweenEndValueType.Shift, null)
 {
 }
 public ShortestRotationTween(Transform obj, Vector3 endValue, float duration, EaseType function, TweenSpace space)
     : base(
         obj, getAngles(space == TweenSpace.Global? obj.eulerAngles : obj.localEulerAngles, endValue), duration, function,
         TweenPerformer.GetShortestRotationBySpace(space), TweenEndValueType.Shift, null)
 {
 }
Example #4
0
 public MoveTween(object obj, Vector3 endValue, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(obj, endValue, duration, function, TweenPerformer.GetShiftTypeBySpace(space), endValueType, callback)
 {
 }