Ejemplo n.º 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)
 {
 }
Ejemplo n.º 2
0
 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)
 {
 }
Ejemplo n.º 3
0
 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)
 {
 }
Ejemplo n.º 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)
 {
 }