C# Class Possession, goalBall

Inheritance: MonoBehaviour
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Свойство Type Description
bluePlayerTag string
redPlayerTag string

Méthodes publiques

Méthode Description
BlueTeamPossession ( ) : void

Gives possesion of the ball to the blue team.

GetNextHalfPossession ( ) : Team,

Retrieves who should start with the ball next half

HasPossessionOfBall ( ) : Team,

Check who has posession of the ball.

OnCollisionEnter ( Collision col ) : void

Detects when a red or blue player collides with the ball and sets the possesion variable accordingly.

RedTeamPossession ( ) : void

Gives possesion of the ball to the red team.

SetNextHalfPossession ( Team, team ) : void

Set the team who should start with the ball next half

Method Details

BlueTeamPossession() public méthode

Gives possesion of the ball to the blue team.
public BlueTeamPossession ( ) : void
Résultat void

GetNextHalfPossession() public méthode

Retrieves who should start with the ball next half
public GetNextHalfPossession ( ) : Team,
Résultat Team,

HasPossessionOfBall() public méthode

Check who has posession of the ball.
public HasPossessionOfBall ( ) : Team,
Résultat Team,

OnCollisionEnter() public méthode

Detects when a red or blue player collides with the ball and sets the possesion variable accordingly.
public OnCollisionEnter ( Collision col ) : void
col Collision
Résultat void

RedTeamPossession() public méthode

Gives possesion of the ball to the red team.
public RedTeamPossession ( ) : void
Résultat void

SetNextHalfPossession() public méthode

Set the team who should start with the ball next half
public SetNextHalfPossession ( Team, team ) : void
team Team, Team that should get the ball
Résultat void

Property Details

bluePlayerTag public_oe property

public string bluePlayerTag
Résultat string

redPlayerTag public_oe property

public string redPlayerTag
Résultat string