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
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Свойство Type Description
ballSlowdown float
diveSpeed float
player GameObject

Méthodes publiques

Méthode 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 méthode

Activates a dive action to occur.
public DivePressed ( ) : void
Résultat void

OnCollisionEnter() public méthode

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

StandUp() public méthode

Allows outside classes to reset standing parameters (specifically ResetAim)
public StandUp ( ) : void
Résultat void

Start() public méthode

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

Update() public méthode

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

Property Details

ballSlowdown public_oe property

public float ballSlowdown
Résultat float

diveSpeed public_oe property

public float diveSpeed
Résultat float

player public_oe property

public GameObject player
Résultat GameObject