Свойство | Type | Description | |
---|---|---|---|
ThrowDirection | GameObject | ||
aim | GameObject | ||
aimSpeed | float | ||
ball | GameObject | ||
maxHighAngle | float | ||
maxLeftAngle | float | ||
maxLowAngle | float | ||
maxRightAngle | float | ||
pickupDistance | float | ||
throwForce | float |
Méthode | Description | |
---|---|---|
Aim ( float Horizontal, float Vertical ) : void |
Changes where the player is looking based on the provided values.
|
|
ApplyForceToBall ( Vector3 Force ) : void |
Throws the ball from a given player at a given position.
|
|
CatchBall ( ) : void |
Makes the calls to Catch the ball.
|
|
ChangeBallHold ( bool held ) : void |
Changes whos has the ball in a given game.
|
|
ChargeBall ( ) : void |
Makes the calls to charge the ball.
|
|
Drop ( ) : void |
Detect when the ball is dropped.
|
|
FPSAim ( float xAim, float yAim ) : void |
Classic first person shooter aiming that allows the palyers to look around and not have their view reset to the origonal position.
|
|
FixedUpdate ( ) : void |
Increments the value of the charging variable.
|
|
ResetAim ( ) : void |
Resets the aim to the initial aim on a button click.
|
|
Start ( ) : void |
This function initializes all of the variables needed for the script.
|
|
ThrowBall ( ) : void |
Makes the call to throw the ball. Differentiates calls depending on whether the player is hosing or a client.
|
|
Update ( ) : void |
Detects the distance between the player and the ball and determines if the player is in range to pick up the ball. DEBUGGING: can be used to change the player controls when the M key is pressed.
|
|
stiffAim ( float xAim, float yAim ) : void |
Stiff aim is when the player uses the control stick to change the direction of the ball from the center of their initial view. When the control stick is released the aim will center.
|
Méthode | Description | |
---|---|---|
CmdBallPickup ( bool held ) : void | ||
CmdBallThrow ( Vector3 pForce ) : void | ||
DropIfHolding ( bool drop ) : void |
If the player is holding the ball and it needs to be dropped it will drop it.
|
|
TransmitBallPickup ( bool held ) : void | ||
TransmitBallThrow ( Vector3 pForce ) : void | ||
delayControl ( ) : bool |
Delays the control to prevent multiple messages being sent to the server too quickly
|
public Aim ( float Horizontal, float Vertical ) : void | ||
Horizontal | float | |
Vertical | float | |
Résultat | void |
public ApplyForceToBall ( Vector3 Force ) : void | ||
Force | Vector3 | |
Résultat | void |
public FPSAim ( float xAim, float yAim ) : void | ||
xAim | float | |
yAim | float | |
Résultat | void |
public stiffAim ( float xAim, float yAim ) : void | ||
xAim | float | |
yAim | float | |
Résultat | void |