public TweenShiftScenarioItem(List <GameObject> targets, Vector3 destination, float duration, EaseType ease, TweenSpace tweenSpace, bool isInterruptable) : base(isInterruptable) { this.targets = targets; this.destination = destination; this.duration = duration; this.ease = ease; this.tweenSpace = tweenSpace; }
public static TweenType GetShortestRotationBySpace(TweenSpace space) { switch (space) { case TweenSpace.Local: return(TweenType.ShortestRotationLocal); default: return(TweenType.ShortestRotation); } }
public static TweenType GetShiftTypeBySpace(TweenSpace space) { switch (space) { case TweenSpace.Local: return(TweenType.MoveLocal); default: return(TweenType.Move); } }
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 SimulateScenarioItem ShiftBy(List <GameObject> goList, Vector3 shift, float duration, EaseType ease, TweenSpace space, Callback callback) { SimulateScenarioItem tweenObj = null; if (goList != null && goList.Count > 0) { tweenObj = new MoveTween(convertToObjects(goList), shift, duration, Ease[ease], space, TweenEndValueType.Shift, callback); tweenObj.Play(); } return(tweenObj); }
public TweenShiftScenarioItem(List <GameObject> targets, Vector3 destination, float duration, EaseType ease, TweenSpace tweenSpace) : this(targets, destination, duration, ease, tweenSpace, true) { }
public MoveTween(object obj, Vector3 endValue, float duration, EaseFunction ease, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null) : this(obj, endValue, duration, new EaseSimulateFunction(ease), space, endValueType, callback) { }
public static RotationTween Play(object obj, Vector3 shiftValue, float duration, EaseType easeType, TweenSpace space = TweenSpace.Global, Callback callback = null) { return(Play(obj, shiftValue, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), space, callback)); }
public TweenMoveToScenarioItem(GameObject target, Vector3 destination, float duration, EaseType ease, TweenSpace tweenSpace) : this(new List <GameObject>() { target }, destination, duration, ease, tweenSpace, true) { }
public RotationTween(object obj, Vector3 shiftValue, TweenSpace space = TweenSpace.Global, Callback callback = null) : this(obj, shiftValue, 0, new EaseSimulateFunction(TweenPerformer.Ease[EaseType.EndValue]), space, callback) { }
public RotationTween(object obj, Vector3 shiftValue, float duration, ISimulateFunction function, TweenSpace tweenSpace = TweenSpace.Global, Callback callback = null) : base(new QuaternionTweenSimulator(obj, shiftValue, duration, function, tweenSpace == TweenSpace.Global ? TweenType.Rotation : TweenType.RotationLocal), duration, null, callback) { this.shiftValue = shiftValue; }
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) { }
public MoveByCurveTween(AbstractCurve curve, object obj, float duration, EaseType easeType, TweenSpace space = TweenSpace.Global, Callback callback = null) : this(curve, obj, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), space, callback) { }
public static MoveTween Play(object obj, Vector3 endValue, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null) { return((MoveTween)(new MoveTween(obj, endValue, duration, function, space, endValueType, callback)).PlayAndReturnSelf()); }
public static MoveTween Play(object obj, Vector3 endValue, float duration, EaseType easeType, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null) { return(Play(obj, endValue, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), space, endValueType, callback)); }
public static MoveTween Play(object obj, Vector3 endValue, float duration, AnimationCurve curve, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null) { return(Play(obj, endValue, duration, new AnimationCurveSimulateFunction(curve), space, endValueType, callback)); }
public static MoveTween Play(object obj, Vector3 endValue, TweenSpace space = TweenSpace.Global) { return((MoveTween)(new MoveTween(obj, endValue, space)).PlayAndReturnSelf()); }
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) { }
public RotationTween(object obj, Vector3 shiftValue, float duration, EaseFunction ease, TweenSpace space = TweenSpace.Global, Callback callback = null) : this(obj, shiftValue, duration, new EaseSimulateFunction(ease), space, callback) { }
public static MoveByCurveTween Play(AbstractCurve curve, object obj, float duration, EaseType easeType, TweenSpace space = TweenSpace.Global) { return((MoveByCurveTween)(new MoveByCurveTween(curve, obj, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), space)).PlayAndReturnSelf()); }
public static RotationTween Play(object obj, Vector3 shiftValue, float duration, AnimationCurve curve, TweenSpace space = TweenSpace.Global, Callback callback = null) { return(Play(obj, shiftValue, duration, new AnimationCurveSimulateFunction(curve), space, callback)); }
private Vector3 convertPositionToPoints(GameObject go, Vector3 origin, TweenSpace context) { return(context == TweenSpace.Local ? go.GetPositionInGlobalPoints(origin) : origin); }
public static RotationTween Play(object obj, Vector3 shiftValue, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, Callback callback = null) { return((RotationTween)(new RotationTween(obj, shiftValue, duration, function, space, callback)).PlayAndReturnSelf()); }
public SimulateScenarioItem MoveTo(GameObject go, Vector3 destination, float duration, EaseType ease, TweenSpace space, Callback callback) { List <GameObject> goList = new List <GameObject>(); goList.Add(go); return(MoveTo(goList, destination, duration, ease, space, callback)); }
public TweenShiftScenarioItem(GameObject target, Vector3 destination, float duration, EaseType ease, TweenSpace tweenSpace, bool isInterruptable) : this(new List <GameObject>() { target }, destination, duration, ease, tweenSpace, isInterruptable) { }
public SimulateScenarioItem ShiftBy(GameObject go, Vector3 shift, float duration, EaseType ease, TweenSpace space, Callback callback) { List <GameObject> goList = new List <GameObject>(); goList.Add(go); return(ShiftBy(goList, shift, duration, ease, space, callback)); }
public SimulateScenarioItem ShiftBy(List <GameObject> goList, Vector3 shift, float duration, EaseType ease, TweenSpace space) { return(ShiftBy(goList, shift, duration, ease, space, null)); }
public MoveTween(object obj, Vector3 endValue, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null) : this(obj, endValue, 0, new EaseSimulateFunction(TweenPerformer.Ease[EaseType.EndValue]), space, endValueType, callback) { }