Свойство | Тип | Описание | |
---|---|---|---|
bluePlayerTag | string | ||
redPlayerTag | string |
Метод | Описание | |
---|---|---|
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
|
public OnCollisionEnter ( Collision col ) : void | ||
col | Collision | |
Результат | void |
public SetNextHalfPossession ( Team, team ) : void | ||
team | Team, | Team that should get the ball |
Результат | void |