C# Class Possession, goalBall

Inheritance: MonoBehaviour
Mostra file Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Properties

Property Type Description
bluePlayerTag string
redPlayerTag string

Public Methods

Method 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 method

Gives possesion of the ball to the blue team.
public BlueTeamPossession ( ) : void
return void

GetNextHalfPossession() public method

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

HasPossessionOfBall() public method

Check who has posession of the ball.
public HasPossessionOfBall ( ) : Team,
return Team,

OnCollisionEnter() public method

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

RedTeamPossession() public method

Gives possesion of the ball to the red team.
public RedTeamPossession ( ) : void
return void

SetNextHalfPossession() public method

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

Property Details

bluePlayerTag public_oe property

public string bluePlayerTag
return string

redPlayerTag public_oe property

public string redPlayerTag
return string