Property | Type | Description | |
---|---|---|---|
ballSlowdown | float | ||
diveSpeed | float | ||
player | GameObject |
Method | Description | |
---|---|---|
DivePressed ( ) : void |
Activates a dive action to occur.
|
|
OnCollisionEnter ( Collision col ) : void |
When the player collieds with the ball, decrease the speed of the ball.
|
|
StandUp ( ) : void |
Allows outside classes to reset standing parameters (specifically ResetAim)
|
|
Start ( ) : void |
Initializes all of the variables needed for this script.
|
|
Update ( ) : void |
Makes diving smother when a dive is detected. Animates the player diving.
|
public OnCollisionEnter ( Collision col ) : void | ||
col | Collision | |
return | void |