Property | Type | Description | |
---|---|---|---|
Ball | GameObject | ||
BlueSideCenter | GameObject | ||
BlueSideLeft | GameObject | ||
BlueSideRight | GameObject | ||
RedSideCenter | GameObject | ||
RedSideLeft | GameObject | ||
RedSideRight | GameObject |
Method | Description | |
---|---|---|
Start ( ) : void |
Used to initize variables
|
|
placeBallBSC ( ) : void |
Places the ball at the location of the Blue Side Center ball spawn.
|
|
placeBallBSL ( ) : void |
Places the ball at the location of the Blue Side Left ball spawn.
|
|
placeBallBSR ( ) : void |
Places the ball at the location of the Blue Side Right ball spawn.
|
|
placeBallRSC ( ) : void |
Places the ball at the location of the Red Side Center ball spawn.
|
|
placeBallRSL ( ) : void |
Places the ball at the location of the Red Side Left ball spawn.
|
|
placeBallRSR ( ) : void |
Places the ball at the location of the Red Side Right ball spawn.
|
|
resetToClosestPoint ( bool redTeamPositions ) : void |
Places ball at the location it is closest to
|
Method | Description | |
---|---|---|
StopBall ( ) : void |
Stops the ball, getting rid of all of the velocity, both directional and rotational. Used to make sure the ball doesn't keep moving after it is moved.
|
public resetToClosestPoint ( bool redTeamPositions ) : void | ||
redTeamPositions | bool | True if checking red positions, False if checking blue positions |
return | void |