![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A tweener that tweens position. More...
Public Member Functions | |
virtual void | TweenWithTime (TweenMode tweenMode, Transform target, Vector3 destination, float time, Action< Transform, Vector3 > callback) |
Tweens target transform to destination position over time. More... | |
virtual void | TweenWithRate (TweenMode tweenMode, Transform target, Vector3 destination, float speed, Action< Transform, Vector3 > callback) |
Tweens target transform to destination position with given rate (speed). More... | |
void | Stop () |
Stops the active tween. More... | |
![]() | |
void | TweenWithTime (TweenMode mode, T target, P destination, float time, Action< T, P > callback) |
Tweens target to destination over time. More... | |
void | TweenWithRate (TweenMode mode, T target, P destination, float rate, Action< T, P > callback) |
Tweens target to destination at rate. More... | |
void | Stop () |
Stops the active tween. More... | |
Protected Member Functions | |
virtual IEnumerator | DoEasedTween () |
Does the tween using an easing function. More... | |
float | BezierBlend (float t) |
float | Linear (float t) |
Protected Attributes | |
Vector3 | destination |
float | speed |
float | time |
Transform | target |
Vector3 | direction |
Action< Transform, Vector3 > | callback |
Func< float, float > | easingFunction |
Properties | |
bool | Active [get, protected set] |
Is tweener currently tweening. More... | |
bool | UseGameTime [get, set] |
If true use TimeManager.FrameTime false use Unitys Time.deltaTime More... | |
![]() | |
bool | Active [get] |
Is tweener currently tweening. More... | |
bool | UseGameTime [get, set] |
If true use TimeManager.FrameTime false use Unitys Time.deltaTime More... | |
A tweener that tweens position.
|
protected |
|
protectedvirtual |
Does the tween using an easing function.
Reimplemented in PlatformerPro.Tween.LocalPositionTweener.
|
protected |
void PlatformerPro.Tween.PositionTweener.Stop | ( | ) |
Stops the active tween.
|
virtual |
Tweens target transform to destination position with given rate (speed).
mode | How to tween. |
target | Target object. |
finalPosition | Final position. |
speed | How fast to move. |
callback | Callback. |
Not actually tweening
Reimplemented in PlatformerPro.Tween.LocalPositionTweener.
|
virtual |
Tweens target transform to destination position over time.
mode | how to tween. |
target | Target object. |
destination | Final position. |
time | Time to take to do the tween. |
callback | Called when tween completes. |
Not actually tweening
Reimplemented in PlatformerPro.Tween.LocalPositionTweener.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
getprotected set |
Is tweener currently tweening.
true
if active; otherwise, false
.
|
getset |
If true use TimeManager.FrameTime false use Unitys Time.deltaTime
true
if use game time; otherwise, false
.