C# Class Dive, goalBall

This script is in charge of making the player dive. This accomplishes moving the player down as well as rotating their position.
Inheritance: NetworkBehaviour
Show file Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Properties

Property Type Description
ballSlowdown float
diveSpeed float
player GameObject

Public Methods

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.

Method Details

DivePressed() public method

Activates a dive action to occur.
public DivePressed ( ) : void
return void

OnCollisionEnter() public method

When the player collieds with the ball, decrease the speed of the ball.
public OnCollisionEnter ( Collision col ) : void
col Collision
return void

StandUp() public method

Allows outside classes to reset standing parameters (specifically ResetAim)
public StandUp ( ) : void
return void

Start() public method

Initializes all of the variables needed for this script.
public Start ( ) : void
return void

Update() public method

Makes diving smother when a dive is detected. Animates the player diving.
public Update ( ) : void
return void

Property Details

ballSlowdown public property

public float ballSlowdown
return float

diveSpeed public property

public float diveSpeed
return float

player public property

public GameObject player
return GameObject