A generic class used to move one object to another. Event though it's supposed to be generic, it's only used by balls that missed a player.
More...
|
void | Awake () |
| Initalize the properties of the class. More...
|
|
void | Init () |
| Initializes variables after being object pooled. More...
|
|
Vector3 | GetUnitCircleDirection () |
|
void | ApplyRotation (float rotation) |
|
void | StartMove (TweenType tweenType, Transform targetTransform, float totalTime, int callbackId, System.Func< int, bool > finishedMoveCallback) |
| Triggers the start of the tweening. More...
|
|
void | StartMove (TweenType tweenType, Vector3 endPosition, float totalTime, int callbackId, System.Func< int, bool > finishedMoveCallback) |
| Triggers the start of the tweening. More...
|
|
void | FinishedMoving () |
| Force the tweening to be done. More...
|
|
void | FixedUpdate () |
| Update the position to the target position. More...
|
|
A generic class used to move one object to another. Event though it's supposed to be generic, it's only used by balls that missed a player.
◆ TweenType
The type of movement the object should take to get to the target.
Enumerator |
---|
LINEAR | |
SMOOTH_STEP | |
NONE | |
◆ ApplyRotation()
void TweenTo.ApplyRotation |
( |
float |
rotation | ) |
|
- Parameters
-
rotation | Set the rotation speed of the object. |
◆ Awake()
Initalize the properties of the class.
◆ FinishedMoving()
void TweenTo.FinishedMoving |
( |
| ) |
|
Force the tweening to be done.
◆ FixedUpdate()
void TweenTo.FixedUpdate |
( |
| ) |
|
Update the position to the target position.
◆ GetUnitCircleDirection()
Vector3 TweenTo.GetUnitCircleDirection |
( |
| ) |
|
- Returns
- The direction the parent transform is away from the child position.
◆ Init()
Initializes variables after being object pooled.
◆ StartMove() [1/2]
void TweenTo.StartMove |
( |
TweenType |
tweenType, |
|
|
Transform |
targetTransform, |
|
|
float |
totalTime, |
|
|
int |
callbackId, |
|
|
System.Func< int, bool > |
finishedMoveCallback |
|
) |
| |
Triggers the start of the tweening.
- Parameters
-
tweenType | How the object should move to the target position. |
targetTransform | The final position to move to. |
totalTime | How long it should take to get to the final position. |
callbackId | Id used to send with the finishedMoveCallback method to notify it has made it to the targetTransform. |
finishedMoveCallback | Function to call once the movement has finished. |
◆ StartMove() [2/2]
void TweenTo.StartMove |
( |
TweenType |
tweenType, |
|
|
Vector3 |
endPosition, |
|
|
float |
totalTime, |
|
|
int |
callbackId, |
|
|
System.Func< int, bool > |
finishedMoveCallback |
|
) |
| |
Triggers the start of the tweening.
- Parameters
-
tweenType | How the object should move to the target position. |
endPosition | The final position to move to. |
totalTime | How long it should take to get to the final position. |
callbackId | Id used to send with the finishedMoveCallback method to notify it has made it to the targetTransform. |
finishedMoveCallback | Function to call once the movement has finished. |
◆ childSprite
Transform TweenTo.childSprite |
The child transform that will be moved.
◆ endScale
The size the object should be at the end of the movement.
The documentation for this class was generated from the following file: