DoopelPonger
Public Member Functions | Public Attributes | List of all members
PiecesTravelToController Class Reference
Inheritance diagram for PiecesTravelToController:
Inheritance graph
[legend]
Collaboration diagram for PiecesTravelToController:
Collaboration graph
[legend]

Public Member Functions

void Awake ()
 Initialize the singleton object references. More...
 
void Init ()
 Initialize variables after the object has been returned from the object pooler. More...
 
void MovePieces (Vector3 startPosition, Transform targetTransform, TweenTo[] pieces)
 Start the process of moving pieces. More...
 

Public Attributes

float radius
 
float circleMoveTime
 
float circleJitter
 
float circleJitterTime
 
float rotationSpeedRange
 
float timeBeforeEndMovement
 
float endMovementTime
 
int playerNumber
 

Member Function Documentation

◆ Awake()

void PiecesTravelToController.Awake ( )

Initialize the singleton object references.

◆ Init()

void PiecesTravelToController.Init ( )

Initialize variables after the object has been returned from the object pooler.

◆ MovePieces()

void PiecesTravelToController.MovePieces ( Vector3  startPosition,
Transform  targetTransform,
TweenTo []  pieces 
)

Start the process of moving pieces.

Parameters
startPositionThe position the pieces should originate from.
targetTransformThe transform of the player that should have the pieces move to.
piecesThe pieces created from the ball.

Member Data Documentation

◆ circleJitter

float PiecesTravelToController.circleJitter

Each piece will move around slightly at the bigger radius, the jitter determines how much it will be offset from the desired position.

◆ circleJitterTime

float PiecesTravelToController.circleJitterTime

The amount of time the piece should stay in the larger radius before moving to the player.

◆ circleMoveTime

float PiecesTravelToController.circleMoveTime

The amount of time it takes to move the pieces to the bigger radius.

◆ endMovementTime

float PiecesTravelToController.endMovementTime

The amount of time it takes to move the pieces to the player.

◆ playerNumber

int PiecesTravelToController.playerNumber

The player number that the pieces should move to.

◆ radius

float PiecesTravelToController.radius

The new radius the peices should expand to.

◆ rotationSpeedRange

float PiecesTravelToController.rotationSpeedRange

Pieces will rotate slightly as it moves to the player. This is the range of rotation velocity.

◆ timeBeforeEndMovement

float PiecesTravelToController.timeBeforeEndMovement

The amount of time to stay in the larger radius before moving to the player.


The documentation for this class was generated from the following file: